Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core/Scripts: New ItemScript trigger, OnItemRemove #11666

Merged
merged 1 commit into from Mar 9, 2014
Merged

Core/Scripts: New ItemScript trigger, OnItemRemove #11666

merged 1 commit into from Mar 9, 2014

Conversation

kontownik
Copy link
Contributor

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

@kontownik
Copy link
Contributor Author

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 added a commit that referenced this pull request Mar 9, 2014
Core/Scripts: Introduce ItemScript::OnItemRemove, called when an Item is actually destroyed.
@Warpten Warpten merged commit 96e0a7d into TrinityCore:master Mar 9, 2014
raczman pushed a commit to raczman/TrinityCore that referenced this pull request Apr 20, 2014
Core/Scripts: Introduce ItemScript::OnItemRemove, called when an Item is actually destroyed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants