Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*######
- ## npc_raelorasz (9253)
- ######*/
- enum
- {
- QUEST_THE_CELL =11943,
- ITEM_CELL =35671,
- SPELL_CELL =46764
- };
- #define GOSSIP_LOST_CELL "I've lost my Cell."
- bool GossipHello_npc_raelorasz(Player* pPlayer, Creature* pCreature)
- {
- if (pPlayer->GetQuestRewardStatus(QUEST_THE_CELL) && !pPlayer->HasItemCount(ITEM_CELL, 1, true))
- pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_LOST_CELL, GOSSIP_SENDER_MAIN,GOSSIP_OPTION_GOSSIP);
- return true;
- }
- bool GossipSelect_npc_raelorasz(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
- {
- if (uiAction == GOSSIP_OPTION_GOSSIP)
- {
- pPlayer->CLOSE_GOSSIP_MENU();
- pPlayer->CastSpell(pPlayer,SPELL_CELL,true);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement