Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.