Skip to content

Commit

Permalink
[S023] Implement items 39878(Mysterious Egg) and 44717(Disgusting Jar)
Browse files Browse the repository at this point in the history
author: Wowka321
  • Loading branch information
Limur authored and rsa committed Jul 22, 2010
1 parent f50795a commit 1852f67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/game/Item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,21 @@ void Item::UpdateDuration(Player* owner, uint32 diff)

if (GetUInt32Value(ITEM_FIELD_DURATION)<=diff)
{
uint32 itemId = this->GetEntry();

owner->DestroyItem(GetBagSlot(), GetSlot(), true);

if (itemId == 39878) //Mysterious Egg
{
if (Item* Item = owner->StoreNewItemInInventorySlot(39883, 1))
owner->SendNewItem(Item, 1, true, false);
}

if (itemId == 44717) //Disgusting Jar
{
if (Item* Item = owner->StoreNewItemInInventorySlot(44718, 1))
owner->SendNewItem(Item, 1, true, false);
}
return;
}

Expand Down

0 comments on commit 1852f67

Please sign in to comment.