Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-08-2011, 02:41 AM
furry_mougle furry_mougle is offline
big heart
furry_mougle's Avatar
Join Date: Aug 2011
Posts: 42
furry_mougle is an unknown quantity at this point
Serverside substring

how would I pass temp.tag serverside? it only registers clientside

edit: mark got it

PHP Code:
function onActionServerSide(cmd) {
  if (
cmd == "tag") {
    
player.guild temp.tag;
  }
  if (
cmd == "emptytag"){
    
player.guild "";
  }
}

//#CLIENTSIDE

function onPlayerChats(){
temp.tag player.chat.substring("/tag ".length());
  if (
player.chat.starts("/tag ") && player.guild == "" ) {
    
triggerserver("gui",this.name,"tag"); // triggers params tag and sets player guild
    
player.chat "Tag set to: " temp.tag;
  } else if(
player.chat == "/tag" && player.guild != "" ){
    
triggerserver("gui",this.name,"emptytag");
    
player.chat "";
  }

__________________
Quote:
Originally Posted by ffcmike View Post
But make sure to change beer.png to Orange Juice.
pay bills to play graal

Last edited by furry_mougle; 09-08-2011 at 03:13 AM..
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.