| coolman87 |
07-10-2009 08:09 AM |
Help please :[
okay so basically im trying to make a script and yeah i know theres alot of things that can be done to format better but i simplified it alot to try and find the problem, anyway i got the idea from zack on npulse and its just a "stamp" npc where you say /stamp account message and itll put a message by the player and follow them around.
so i put this in the weapon. I put an echo script and couldnt get it to echo so its not triggering but i dont know why.
PHP Code:
function onActionServerside() { if (params[0]=="stamp") { echo(params[0],params[1],params[2]); findPlayer(params[1]).x=temp.x+1.5; findPlayer(params[1]).y=temp.y+1.5; serverr.stamp=params[2]; with (putnpc2(temp.x, temp.y, "join soren_stamp;")) { this.follow_account = params[0]; } } } //#CLEINTSIDE function onPlayerChats() { t=player.chat.tokenize(); if (t[0]=="/stamp") { triggerServer("gui",name,"stamp",t[1],t[2]); } }
// and this in the class
function onCreated() { this.chat=serverr.stamp; settimer(.05); } function onTimeout() { this.chat=serverr.stamp; warpto(this.follow_account); settimer(.05); }
|