daily pastebin goal
46%
SHARE
TWEET

item_scripts

NeonixHD Dec 9th, 2018 (edited) 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*#####
  2. # item_murloc_egg
  3. #####*/
  4.  
  5. class item_murloc_egg : public ItemScript
  6. {
  7. public:
  8.     item_murloc_egg() : ItemScript("item_murloc_egg") { }
  9.  
  10.     bool OnExpire(Player* player, ItemTemplate const* /*pItemProto*/) override
  11.     {
  12.         ItemPosCountVec dest;
  13.         uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 70112, 1); // Cracked Murloc Egg
  14.         if (msg == EQUIP_ERR_OK)
  15.             player->StoreNewItem(dest, 70112, true, GenerateItemRandomPropertyId(70112));
  16.  
  17.         return true;
  18.     }
  19. };
  20.  
  21. /*#####
  22. # item_perfect_murloc_egg
  23. #####*/
  24.  
  25. class item_perfect_murloc_egg : public ItemScript
  26. {
  27. public:
  28.     item_perfect_murloc_egg() : ItemScript("item_perfect_murloc_egg") { }
  29.  
  30.     bool OnExpire(Player* player, ItemTemplate const* /*pItemProto*/) override
  31.     {
  32.         ItemPosCountVec dest;
  33.         uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 70608, 1); // Cracked Perfect Murloc Egg
  34.         if (msg == EQUIP_ERR_OK)
  35.             player->StoreNewItem(dest, 70608, true, GenerateItemRandomPropertyId(70608));
  36.  
  37.         return true;
  38.     }
  39. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top