Page 1 of 1

Extension of onDrop JS event

Posted: Mon Feb 06, 2006 9:27 am
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.

Posted: Fri Aug 18, 2006 10:45 pm
by Xuri
*bump* ;)

Posted: Mon Jan 19, 2009 9:10 am
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).

Posted: Mon Jan 19, 2009 1:02 pm
by Xuri
Yep! :)