Page 1 of 1

[fixed] OnRemoveScript - item_amount parameter

Posted: Thu Apr 03, 2008 10:18 am
by itec
PoLDocs wrote:program onremovescript(character, container, item, item_amount, movetype)
Item_amount parameter is missing here, instead it sends movetype in place of item_amount.

Since the script runs before the item is actually dragged, item.amount would return the original stack amount, not the amount that is being dragged.


[Core: 097 2008-02-26, if I'm not mistaken Luth fixed this now -- Nando]

Re: [fixed?] OnRemoveScript - item_amount parameter

Posted: Tue Dec 30, 2008 10:39 am
by MuadDib

Code: Select all

10-29 Luth:
        Fixed:   OnRemoveScript and OnInsertScript now called with all appropriate parameters
                   program onremovescript(character, container, item, item_amount, movetype)
                   program oninsertscript(character, container, movetype, inserttype, adding_item, existing_stack, amount_to_add)