Thread: Help please :[
View Single Post
  #7  
Old 07-11-2009, 11:41 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by coolman87 View Post
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.

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);
}
check bolded
Reply With Quote