View Single Post
  #1  
Old 11-25-2011, 09:17 PM
MysticalDragon MysticalDragon is offline
Global Administration
MysticalDragon's Avatar
Join Date: Oct 2002
Location: Lynn Ma
Posts: 883
MysticalDragon is a jewel in the roughMysticalDragon is a jewel in the rough
Send a message via AIM to MysticalDragon Send a message via MSN to MysticalDragon
What Am I doing Wrong?(Triggers)

At first I tried to Just trigger to clientside, so that didn't work. But for some reason I can't get my triggers to work at all for a class NPC(Tried both Clientside and serverside triggers). Is it Era's NC being stupid?
PHP Code:
function onCreated()
{
 
showcharacter();
 
setshape(1,16,16);
}
function 
onActionServerSide()
{
 if (
params[0] == "getVars"){
   echo(
"Triggered to Server? what about Client?");
   
temp.data findplayer("MysticalDragon");
   
clientEcho(temp.data);
  }
}
function 
clientEcho(temp.data)
{
 
triggerClient("gui"name"echo"temp.data);
}
//#CLIENTSIDE
function onCreated()
{
 
setshape(1,16,16);
}
function 
onPlayertouchsme()
{
  echo(
"Echo Test::getVars");
  
triggerServer("gui"name"getVars");
}
function 
onActionClientSide()
{
  switch (
params[0])
  {
    case 
"echo":
       echo(
"Echo Test" SPC params[1]);
     break;
  }

__________________
~Delteria Support
~Playerworld Support
~PWA Chief
http://support.toonslab.com
[email protected]



Reply With Quote