[IMPLEMENTED] Extension of onDrop JS event

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:

Extension of onDrop JS event

Post by Xuri »

Currently the onDrop JS event only allows two arguments; pDropper and iDropped (who drops, the item dropped). I'd like to see this event extended to include a third argument - objDroppedOn - to allow the creation of scripts dealing with dropping items on other objects (items specifically, seeing as there already is an onDropItemOnNpc event). An example would be dropping runes directly onto a runebook and have it added to the book. That is not currently possible to script.

The onDrop event should also run for objDroppedOn.
-= 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 »

*bump* ;)
-= Ho Eyo He Hum =-
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Looking into this it sounds like you are asking for an onDropItemOnItem function that works the same way onDropItemOnNpc does (fires for both dropped and dropper, and returns values to determine if the item should bounce, original code should run, etc).
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 »

Yep! :)
-= Ho Eyo He Hum =-
Post Reply