aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiscover- <amort11@hotmail.com>2011-12-25 01:21:09 +0100
committerDiscover- <amort11@hotmail.com>2011-12-25 01:21:09 +0100
commit275aa8a7d851b69f6dc01dda99ab914dd7805b64 (patch)
tree0de70b4136f0b22fd2acef003577a454c8db96fb /src
parent173fb48fe2ed2dd63782a93629c4c4da22ccb9d4 (diff)
DB/Miscellaneous: Implement humans transforming into worgens at night inside Pyrewood Village.
And yet again some silly typo's, sorry guys. Closes #3062
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Kalimdor/desolace.cpp8
-rw-r--r--src/server/scripts/Outland/netherstorm.cpp12
2 files changed, 8 insertions, 12 deletions
diff --git a/src/server/scripts/Kalimdor/desolace.cpp b/src/server/scripts/Kalimdor/desolace.cpp
index 5cc32657f2f..3d023b93dc2 100644
--- a/src/server/scripts/Kalimdor/desolace.cpp
+++ b/src/server/scripts/Kalimdor/desolace.cpp
@@ -186,10 +186,10 @@ class go_iruxos : public GameObjectScript
public:
go_iruxos() : GameObjectScript("go_iruxos") { }
- bool OnGossipHello(Player* player, GameObject* /*go*/)
+ bool OnGossipHello(Player* player, GameObject* go)
{
- if (player->GetQuestStatus(5381) == QUEST_STATUS_INCOMPLETE)
- player->SummonCreature(11876, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000);
+ if (player->GetQuestStatus(QUEST_HAND_IRUXOS) == QUEST_STATUS_INCOMPLETE)
+ player->SummonCreature(NPC_DEMON_SPIRIT, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), 0.0f, TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 10000);
return true;
}
@@ -285,7 +285,7 @@ class go_demon_portal : public GameObjectScript
{
if (player->GetQuestStatus(QUEST_PORTAL_OF_THE_LEGION) == QUEST_STATUS_INCOMPLETE)
{
- if (Creature* guardian = player->SummonCreature(NPC_DEMON_GUARDIAN, GO->GetPositionX(), GO->GetPositionY(), GO->GetPositionZ(), 0.0f, TEMPSUMMON_DEAD_DESPAWN, 0))
+ if (Creature* guardian = player->SummonCreature(NPC_DEMON_GUARDIAN, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), 0.0f, TEMPSUMMON_DEAD_DESPAWN, 0))
guardian->AI()->AttackStart(player);
}
diff --git a/src/server/scripts/Outland/netherstorm.cpp b/src/server/scripts/Outland/netherstorm.cpp
index f892169f7ae..e5ee8d19c59 100644
--- a/src/server/scripts/Outland/netherstorm.cpp
+++ b/src/server/scripts/Outland/netherstorm.cpp
@@ -1066,16 +1066,12 @@ class go_captain_tyralius_prison : public GameObjectScript
{
if (Creature* tyralius = go->FindNearestCreature(NPC_CAPTAIN_TYRALIUS, 1.0f))
{
- if (tyralius)
- {
- go->UseDoorOrButton();
+ go->UseDoorOrButton();
- if (player)
- player->KilledMonsterCredit(NPC_CAPTAIN_TYRALIUS, 0);
+ player->KilledMonsterCredit(NPC_CAPTAIN_TYRALIUS, 0);
- tyralius->AI()->Talk(SAY_FREE);
- tyralius->ForcedDespawn(8000);
- }
+ tyralius->AI()->Talk(SAY_FREE);
+ tyralius->ForcedDespawn(8000);
}
return true;
}