
12-06-2010, 08:50 PM
|
|
Finger lickin' good.
|
 |
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
|
|
|
I don't think mouse events or mouse location are synced serverside (I could be wrong).
Depending on what type of npc it is, you can just catch the mouse event on the clientside and then send a triggeraction to the server.
for level npcs, use triggerAction(x, y, ...)
for dbnpcs, or npcs placed with putnpc(), use triggerServer("npc", this.name, ...);
edit: If you just want the NPC to change its image, use setImg(), but if you want to place an image at the mouse's location, you need to send the mousex and mousey to the serverside. |
|
|
|