[fixed] OnRemoveScript - item_amount parameter

Bug Reports relating to the 097 core are moved to this forum once solved.

Moderator: POL Developer

Locked
User avatar
itec
Novice Poster
Posts: 42
Joined: Thu Feb 09, 2006 11:48 pm
Location: Finland

[fixed] OnRemoveScript - item_amount parameter

Post 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]
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: [fixed?] OnRemoveScript - item_amount parameter

Post 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)
Locked