mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
[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
(cherry picked from commit 1c8486e1a8)
This commit is contained in:
6
sql/updates/world/2015_03_31_00_world.sql
Normal file
6
sql/updates/world/2015_03_31_00_world.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Fix for quest ID 5561, Kodo Roundup
|
||||
-- Add the missing link between npc_text and gossip_menu_id :
|
||||
DELETE FROM `gossip_menu` WHERE `entry`=3650 AND `text_id`=4449;
|
||||
INSERT INTO `gossip_menu` (`entry`, `text_id`) VALUES (3650, 4449);
|
||||
-- Link the npc_text from gossip_menu:
|
||||
UPDATE `creature_template` SET `gossip_menu_id`=3650 WHERE `entry`=11627;
|
||||
@@ -85,12 +85,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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user