aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKudlaty <none@none>2009-08-20 22:18:41 +0200
committerKudlaty <none@none>2009-08-20 22:18:41 +0200
commita63b457b3cfe5f1ceecd42c1fb15866d9981a6fb (patch)
tree24c02c198026422d6da66dc1d22f6204ca3f8e50 /src
parent2035948f6351c37942f034881dd0cd4c427283bf (diff)
Script for quest 12969. Script by Gyullo
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/northrend/storm_peaks.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/northrend/storm_peaks.cpp b/src/bindings/scripts/scripts/northrend/storm_peaks.cpp
index 698cec1a6f9..f8e4780147a 100644
--- a/src/bindings/scripts/scripts/northrend/storm_peaks.cpp
+++ b/src/bindings/scripts/scripts/northrend/storm_peaks.cpp
@@ -18,6 +18,57 @@
#include "precompiled.h"
/*######
+## npc_agnetta_tyrsdottar
+######*/
+
+#define SAY_AGGRO -1571003
+#define GOSSIP_AGNETTA "Skip the warmup, sister... or are you too scared to face soemeone your own size?"
+
+enum
+{
+ QUEST_ITS_THAT_YOUR_GOBLIN = 12969,
+ FACTION_HOSTILE_AT1 = 45
+};
+
+
+struct TRINITY_DLL_DECL npc_agnetta_tyrsdottarAI : public ScriptedAI
+{
+ npc_agnetta_tyrsdottarAI(Creature* pCreature) : ScriptedAI(pCreature) { }
+
+ void Reset()
+ {
+ me->RestoreFaction();
+ }
+};
+
+CreatureAI* GetAI_npc_agnetta_tyrsdottar(Creature* pCreature)
+{
+ return new npc_agnetta_tyrsdottarAI(pCreature);
+}
+
+bool GossipHello_npc_agnetta_tyrsdottar(Player* pPlayer, Creature* pCreature)
+{
+ if (pPlayer->GetQuestStatus(QUEST_ITS_THAT_YOUR_GOBLIN) == QUEST_STATUS_INCOMPLETE)
+ pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_AGNETTA, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
+
+ pPlayer->SEND_GOSSIP_MENU(13691, pCreature->GetGUID());
+ return true;
+}
+
+bool GossipSelect_npc_agnetta_tyrsdottar(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction )
+{
+ if (uiAction == GOSSIP_ACTION_INFO_DEF+1)
+ {
+ DoScriptText(SAY_AGGRO, pCreature);
+ pPlayer->CLOSE_GOSSIP_MENU();
+ pCreature->setFaction(FACTION_HOSTILE_AT1);
+ pCreature->AI()->AttackStart(pPlayer);
+ }
+
+ return true;
+}
+
+/*######
## npc_frostborn_scout
######*/
@@ -69,6 +120,13 @@ void AddSC_storm_peaks()
Script* newscript;
newscript = new Script;
+ newscript->Name = "npc_agnetta_tyrsdottar";
+ newscript->GetAI = &GetAI_npc_agnetta_tyrsdottar;
+ newscript->pGossipHello = &GossipHello_npc_agnetta_tyrsdottar;
+ newscript->pGossipSelect = &GossipSelect_npc_agnetta_tyrsdottar;
+ newscript->RegisterSelf();
+
+ newscript = new Script;
newscript->Name = "npc_frostborn_scout";
newscript->pGossipHello = &GossipHello_npc_frostborn_scout;
newscript->pGossipSelect = &GossipSelect_npc_frostborn_scout;