*world_script_texts cleanup (that was a great way to kill an hour).. The Storm King's Vengeance (Quest) by manuel

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-10 20:07:55 -07:00
parent b287288888
commit 3441e4ef39
2 changed files with 845 additions and 801 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -168,6 +168,44 @@ CreatureAI* GetAI_npc_captured_rageclaw(Creature* pCreature)
return new npc_captured_rageclawAI (pCreature);
}
/*####
## npc_gymer
####*/
#define GOSSIP_ITEM_G "I'm ready, Gymer. Let's go!"
enum
{
QUEST_STORM_KING_VENGEANCE = 12919,
SPELL_GYMER = 55568
};
bool GossipHello_npc_gymer(Player *pPlayer, Creature *pCreature)
{
if (pCreature->isQuestGiver())
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
pPlayer->SEND_GOSSIP_MENU(pCreature->GetNpcTextId(), pCreature->GetGUID());
if (pPlayer->GetQuestStatus(QUEST_STORM_KING_VENGEANCE) == QUEST_STATUS_INCOMPLETE)
{
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_G, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
pPlayer->SEND_GOSSIP_MENU(13640, pCreature->GetGUID());
}
return true;
}
bool GossipSelect_npc_gymer(Player *pPlayer, Creature *pCreature, uint32 uiSender, uint32 uiAction)
{
if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
{
pPlayer->CLOSE_GOSSIP_MENU();
pPlayer->CastSpell(pPlayer, SPELL_GYMER, true);
}
return true;
}
void AddSC_zuldrak()
{
Script *newscript;
@@ -181,4 +219,10 @@ void AddSC_zuldrak()
newscript->Name="npc_captured_rageclaw";
newscript->GetAI = &GetAI_npc_captured_rageclaw;
newscript->RegisterSelf();
newscript = new Script;
newscript->Name = "npc_gymer";
newscript->pGossipHello = &GossipHello_npc_gymer;
newscript->pGossipSelect = &GossipSelect_npc_gymer;
newscript->RegisterSelf();
}