[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 » Thu Apr 03, 2008 10:18 am

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: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: [fixed?] OnRemoveScript - item_amount parameter

Post by MuadDib » Tue Dec 30, 2008 10:39 am

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