Thread: script help..=X
View Single Post
  #1  
Old 03-12-2003, 04:57 AM
ShadowDarkstar ShadowDarkstar is offline
Registered User
ShadowDarkstar's Avatar
Join Date: Feb 2003
Location: Montreal
Posts: 42
ShadowDarkstar is on a distinguished road
script help..=X

NPC Code:

// NPC made by Ajira
if (actionmove){
x=strtofloat(#p(0));
y=strtofloat(#p(1));
}
//#CLIENTSIDE
if (mousedown && mousex in |x,x+2| && mousey in |y,y+3|){
timeout=.05;
this.click=1;
}
if (mouseup && this.click==1){
triggeraction x,y,move,#v(mousex),#v(mousey);
hideimg 201;
this.click=0;
timeout=0;
}
if (timeout && this.click==1){
showimg 201,#f,mousex,mousey;
changeimgcolors 201,1,1,1,0.99;
timeout=.05;
}



well, this is a script im making so you can move stuff with mouse, but, I can only move it once, then it won't move again
maybe some help =/
oh and, the actionmove is serverside because the x and y of the npc changes for all players
plz help =X
Reply With Quote