aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortkrokli <tkrokli@hotmail.com>2015-04-03 17:10:44 +0200
committertkrokli <tkrokli@hotmail.com>2015-04-04 15:57:06 +0200
commit1c8486e1a84c2d1ed4355d680418a3a2e73e37dd (patch)
tree6add721423246fd68284acccaff6f2dc0817affd /src
parent2dc97e3f3db69bf7799341db5bcc7604558c90b8 (diff)
[Quest] Kodo Roundup
by @pete318, closes #12811 Fixes the remaining bugs in the "Kodo Roundup" quest in Desolace: - removes combat status from creature 11627, Tamed Kodo - sets normal walking speed as the creature's follow speed - makes the Tamed Kodo stop at Scrabblescrew's Camp - enables quest objective count 0/5 -> 5/5, quest complete - SQL (by @tkrokli) links the missing gossip text in the DB
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Kalimdor/zone_desolace.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/scripts/Kalimdor/zone_desolace.cpp b/src/server/scripts/Kalimdor/zone_desolace.cpp
index d5ff4c45d09..bb17de4fd6a 100644
--- a/src/server/scripts/Kalimdor/zone_desolace.cpp
+++ b/src/server/scripts/Kalimdor/zone_desolace.cpp
@@ -88,12 +88,20 @@ public:
DoCast(me, SPELL_KODO_KOMBO_DESPAWN_BUFF, true);
me->UpdateEntry(NPC_TAMED_KODO);
+ me->CombatStop();
+ me->DeleteThreatList();
+ me->SetSpeed(MOVE_RUN, 0.6f, true);
me->GetMotionMaster()->MoveFollow(caster, PET_FOLLOW_DIST, me->GetFollowAngle());
+ me->setActive(true);
}
}
else if (spell->Id == SPELL_KODO_KOMBO_GOSSIP)
{
me->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
+ me->SetHomePosition(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation());
+ me->GetMotionMaster()->Clear();
+ me->GetMotionMaster()->MoveIdle();
+ me->setActive(false);
me->DespawnOrUnsummon(60000);
}
}