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;
}
}