aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/scripts/eastern_kingdoms/ghostlands.cpp20
-rw-r--r--src/scripts/world/go_scripts.cpp12
2 files changed, 8 insertions, 24 deletions
diff --git a/src/scripts/eastern_kingdoms/ghostlands.cpp b/src/scripts/eastern_kingdoms/ghostlands.cpp
index 1d8dce43605..67e4e764959 100644
--- a/src/scripts/eastern_kingdoms/ghostlands.cpp
+++ b/src/scripts/eastern_kingdoms/ghostlands.cpp
@@ -116,21 +116,6 @@ bool GossipSelect_npc_rathis_tomber(Player* pPlayer, Creature* pCreature, uint32
return true;
}
-/*#####
-## go_gilded_brazier (Paladin First Trail quest (9678))
-#####*/
-
-bool GOHello_gilded_brazier(Player* pPlayer, GameObject* /*pGo*/)
-{
- if (pPlayer->GetQuestStatus(9678) == QUEST_STATUS_INCOMPLETE)
- {
- Creature *Stillblade = pPlayer->SummonCreature(17716, 8106.11, -7542.06, 151.775, 3.02598, TEMPSUMMON_DEAD_DESPAWN, 60000);
- if (Stillblade)
- Stillblade->AI()->AttackStart(pPlayer);
- }
- return true;
-};
-
/*######
## npc_ranger_lilatha
######*/
@@ -258,11 +243,6 @@ void AddSC_ghostlands()
newscript->RegisterSelf();
newscript = new Script;
- newscript->Name = "go_gilded_brazier";
- newscript->pGOHello = &GOHello_gilded_brazier;
- newscript->RegisterSelf();
-
- newscript = new Script;
newscript->Name = "npc_ranger_lilatha";
newscript->GetAI = &GetAI_npc_ranger_lilathaAI;
newscript->pQuestAccept = &QuestAccept_npc_ranger_lilatha;
diff --git a/src/scripts/world/go_scripts.cpp b/src/scripts/world/go_scripts.cpp
index 65d5f250539..e14311f9d31 100644
--- a/src/scripts/world/go_scripts.cpp
+++ b/src/scripts/world/go_scripts.cpp
@@ -138,7 +138,7 @@ bool GOHello_go_field_repair_bot_74A(Player *pPlayer, GameObject * /*pGO*/)
}
/*######
-## go_gilded_brazier
+## go_gilded_brazier (Paladin First Trail quest (9678))
######*/
enum eGildedBrazier
@@ -149,9 +149,13 @@ enum eGildedBrazier
bool GOHello_go_gilded_brazier(Player *pPlayer, GameObject *pGO)
{
if (pGO->GetGoType() == GAMEOBJECT_TYPE_GOOBER)
- if (Creature* pCreature = pPlayer->SummonCreature(NPC_STILLBLADE, 8087.632, -7542.740, 151.568, 0.122, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 5000))
- pCreature->AI()->AttackStart(pPlayer);
-
+ {
+ if (pPlayer->GetQuestStatus(9678) == QUEST_STATUS_INCOMPLETE)
+ {
+ if (Creature* Stillblade = pPlayer->SummonCreature(NPC_STILLBLADE, 8106.11, -7542.06, 151.775, 3.02598, TEMPSUMMON_DEAD_DESPAWN, 60000))
+ Stillblade->AI()->AttackStart(pPlayer);
+ }
+ }
return true;
}