rendered paste bodycase 43723:
{
if(m_caster->GetTypeId()!=TYPEID_PLAYER)
return;
if( unitTarget && unitTarget->GetTypeId()==TYPEID_UNIT && unitTarget->isDead() && unitTarget->GetEntry()==19973)
{
Player* player = ((Player*)m_caster;
if ((player->GetItemCount(31672, false, 0) >= 2) && (player->GetItemCount(31673, false, 0) >= 1));
{
player->DestroyItemCount(31672, 2, true);
player->DestroyItemCount(31673, 1, true);
ItemPosCountVec dest;
uint8 msg = player->CanStoreNewItem( NULL_BAG, NULL_SLOT, dest, 43753, 1, &no_space );
if( msg != EQUIP_ERR_OK )
{
player->StoreNewItem(dest, 43753, true);
if( msg == EQUIP_ERR_INVENTORY_FULL ) // convert to possible store amount
num_to_add -= no_space;
}
else
{
player->SendEquipError( msg, NULL, NULL );
return;
}
}
}
}