Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*#####
- # item_murloc_egg
- #####*/
- class item_murloc_egg : public ItemScript
- {
- public:
- item_murloc_egg() : ItemScript("item_murloc_egg") { }
- bool OnExpire(Player* player, ItemTemplate const* /*pItemProto*/) override
- {
- ItemPosCountVec dest;
- uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 70112, 1); // Cracked Murloc Egg
- if (msg == EQUIP_ERR_OK)
- player->StoreNewItem(dest, 70112, true, GenerateItemRandomPropertyId(70112));
- return true;
- }
- };
- /*#####
- # item_perfect_murloc_egg
- #####*/
- class item_perfect_murloc_egg : public ItemScript
- {
- public:
- item_perfect_murloc_egg() : ItemScript("item_perfect_murloc_egg") { }
- bool OnExpire(Player* player, ItemTemplate const* /*pItemProto*/) override
- {
- ItemPosCountVec dest;
- uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 70608, 1); // Cracked Perfect Murloc Egg
- if (msg == EQUIP_ERR_OK)
- player->StoreNewItem(dest, 70608, true, GenerateItemRandomPropertyId(70608));
- return true;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement