All pastes #939756 Raw Edit

Anonym

public text v1 · immutable
·published 2008-03-12 15:33 UTC
rendered paste body

bool ItemUse_item_demoniac_scryer(Player *player, Item* _Item, SpellCastTargets const& targets)
{
    Item* item = NULL;
    uint16 dest;

    if (player->GetQuestStatus(10838) == QUEST_STATUS_INCOMPLETE)
    { 
            uint8 msg = player->CanStoreNewItem(NULL_BAG, NULL_SLOT, dest, 31607, 1, false);
            if(msg == EQUIP_ERR_OK)
            {
                item = player->StoreNewItem(dest, 31607, 1, true);
                player->SendNewItem(item, 1, true, false);    
            }

        }
    }
    return false;
}