[IMPLEMENTED] New JS-event: onCharDoubleClick

If Wishes were UOX Coders, we'd be done by now ;P Post your wishes/suggestions for UOX3 changes/improvements here.
Post Reply
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

New JS-event: onCharDoubleClick

Post by Xuri »

I'd like to see a new JS event added, for when a player doubleclicks a character. Adding a check for this event near the top of void handleCharDoubleClick() in cPlayerAction.cpp would give scripters the ability to override the mount/dismount-code, and would allow for custom paperdolls for anything from normal player characters to all kinds of NPCs.

The event could be named onCharDoubleClick, and would override the hardcoded stuff completely if a return false is provided in the script. With a return true, both script and code would run.
Last edited by Xuri on Sun Jul 02, 2006 11:08 pm, edited 1 time in total.
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

I went ahead and did this one myself, will be committing it to CVS after ensuring that it works as it should, possibly after having added one or two more JS events while I'm at it =)
-= Ho Eyo He Hum =-
Post Reply