Chille9

transmog_scripts.cpp

Apr 27th, 2026
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. void OnPlayerLootItem(Player* player, Item* item, uint32 /*count*/, ObjectGuid /*lootguid*/) override
  2. {
  3. if (sPlayerbotsMgr.GetPlayerbotAI(player))
  4. return;
  5.  
  6. if (!sT->GetUseCollectionSystem() || !item || typeid(*item) != typeid(Item))
  7. return;
  8. if (item->GetTemplate()->Bonding == ItemBondingType::BIND_WHEN_PICKED_UP || item->IsSoulBound())
  9. {
  10. AddToDatabase(player, item);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment