Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void OnPlayerLootItem(Player* player, Item* item, uint32 /*count*/, ObjectGuid /*lootguid*/) override
- {
- if (sPlayerbotsMgr.GetPlayerbotAI(player))
- return;
- if (!sT->GetUseCollectionSystem() || !item || typeid(*item) != typeid(Item))
- return;
- if (item->GetTemplate()->Bonding == ItemBondingType::BIND_WHEN_PICKED_UP || item->IsSoulBound())
- {
- AddToDatabase(player, item);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment