Thread: Mouse Script!
View Single Post
  #2  
Old 09-20-2002, 06:24 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
actionleftmouse is sent whenever the player clicks on the NPC.

You'd have to use the event "mousedown". It is triggered when any button was pressed, no matter where you pressed it.

Your script would have to look like that:

NPC Code:

if (playertouchsme) {
toweapons Test;
}
if (mousedown && leftmousebutton) {
putnpc block.gif,test.txt,mousex,mousey;
}



That should work.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]