Merge branch '1.x'
This commit is contained in:
commit
506df780cc
3 changed files with 12 additions and 1 deletions
|
|
@ -12820,6 +12820,8 @@ void Player::MoveItemFromInventory(uint8 bag, uint8 slot, bool update)
|
|||
it->RemoveFromWorld();
|
||||
it->DestroyForPlayer(this);
|
||||
}
|
||||
|
||||
sScriptMgr->OnAfterPlayerMoveItemFromInventory(this,it,bag,slot,update);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1328,6 +1328,11 @@ void ScriptMgr::OnAfterPlayerSetVisibleItemSlot(Player* player, uint8 slot, Item
|
|||
FOREACH_SCRIPT(PlayerScript)->OnAfterSetVisibleItemSlot(player, slot,item);
|
||||
}
|
||||
|
||||
void ScriptMgr::OnAfterPlayerMoveItemFromInventory(Player* player, Item* it, uint8 bag, uint8 slot, bool update)
|
||||
{
|
||||
FOREACH_SCRIPT(PlayerScript)->OnAfterMoveItemFromInventory(player, it, bag, slot, update);
|
||||
}
|
||||
|
||||
// Guild
|
||||
void ScriptMgr::OnGuildAddMember(Guild* guild, Player* player, uint8& plRank)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -788,6 +788,9 @@ class PlayerScript : public ScriptObject
|
|||
|
||||
// To change behaviour of set visible item slot
|
||||
virtual void OnAfterSetVisibleItemSlot(Player* /*player*/, uint8 /*slot*/, Item* /*item*/) { }
|
||||
|
||||
// After an item has been moved from inventory
|
||||
virtual void OnAfterMoveItemFromInventory(Player* /*player*/, Item* /*it*/,uint8 /*bag*/, uint8 /*slot*/, bool /*update*/) { }
|
||||
};
|
||||
|
||||
class GuildScript : public ScriptObject
|
||||
|
|
@ -1084,7 +1087,8 @@ class ScriptMgr
|
|||
void OnGossipSelect(Player* player, uint32 menu_id, uint32 sender, uint32 action);
|
||||
void OnGossipSelectCode(Player* player, uint32 menu_id, uint32 sender, uint32 action, const char* code);
|
||||
void OnPlayerBeingCharmed(Player* player, Unit* charmer, uint32 oldFactionId, uint32 newFactionId);
|
||||
void OnAfterPlayerSetVisibleItemSlot(Player* player, uint8 /*slot*/, Item *item);
|
||||
void OnAfterPlayerSetVisibleItemSlot(Player* player, uint8 slot, Item *item);
|
||||
void OnAfterPlayerMoveItemFromInventory(Player* player, Item* it, uint8 bag, uint8 slot, bool update);
|
||||
|
||||
public: /* GuildScript */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue