
12-07-2010, 05:56 AM
|
|
Developer
|
Join Date: Oct 2010
Posts: 12
|
|
Quote:
Originally Posted by salesman
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.
|
I'll try that, thanks. |
|
|
|