Core/Scripts: New ItemScript trigger, OnItemRemove #11666

Merged
merged 1 commit into from Mar 9, 2014

2 participants

@kontownik

Added new hook for ItemScript OnRemove(Player* player, Item* item). That will allow script action when item is thrown out of player inventory.

@Warpten
TrinityCore member

Why not use OnExpire?

@kontownik

Test it for yourself, OnExpire don't catch this action - coz OnExpire it's for time-limited items.

Thats OnExpire item example - > http://www.wowhead.com/item=39878/mysterious-egg

@Warpten Warpten merged commit 96e0a7d into TrinityCore:master Mar 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment