Item_amount parameter is missing here, instead it sends movetype in place of item_amount.PoLDocs wrote:program onremovescript(character, container, item, item_amount, movetype)
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]