Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(DB/Script) fix quest 9410 a spirit guide #17925

Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
abfb4a8
fix(DB/Creature): Grunda Bronzewing is now mounted
Dr-Arayashiki Apr 2, 2023
05f81a0
Update Fix-Grunda Bronzewing in Honor Hold is not riding on a golden …
Dr-Arayashiki Apr 2, 2023
df63c2d
Rename Fix-Grunda Bronzewing in Honor Hold is not riding on a golden …
Dr-Arayashiki Apr 2, 2023
53a18ee
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 2, 2023
84a09b1
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 2, 2023
ffa2483
Delete Fix-Grunda.sql
Dr-Arayashiki Apr 2, 2023
d2996ba
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 3, 2023
64ae8b6
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 5, 2023
770964c
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 5, 2023
587c85b
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 6, 2023
07a67e4
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 6, 2023
52fb1d7
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Apr 7, 2023
8aa2669
Merge branch 'azerothcore:master' into master
Dr-Arayashiki May 2, 2023
1bdf2fa
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Nov 23, 2023
63bf415
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Nov 23, 2023
bd8eba0
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Nov 26, 2023
c34eb30
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Dec 1, 2023
3faf1b3
Merge branch 'azerothcore:master' into master
Dr-Arayashiki Dec 2, 2023
f9aa6fe
Update zone_hellfire_peninsula.cpp
Dr-Arayashiki Dec 2, 2023
95ca310
fix_quest_9410.sql
Dr-Arayashiki Dec 3, 2023
d81351e
Update zone_hellfire_peninsula.cpp
Dr-Arayashiki Dec 3, 2023
d2133c7
Update src/server/scripts/Outland/zone_hellfire_peninsula.cpp
Nyeriah Dec 3, 2023
d478675
Update src/server/scripts/Outland/zone_hellfire_peninsula.cpp
Nyeriah Dec 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions data/sql/updates/pending_db_world/fix_quest_9410.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- add a time to script_waypoint
DELETE FROM `script_waypoint` WHERE `entry`=17077 AND `pointid` IN (50, 51, 52, 53);
INSERT INTO `script_waypoint` (`entry`, `pointid`, `location_x`, `location_y`, `location_z`, `waittime`, `point_comment`) VALUES
(17077, 50, 519.146, 3886.7, 190.128, 8000, 'RYGA_MOVEMENT_TO_WOLF'),
(17077, 51, 519.146, 3886.7, 190.128, 13000, 'RYGA_TIME_MOVEMENT_TO_WOLF'),
(17077, 52, 519.146, 3886.7, 190.128, 5000, 'RYGA_TIME_RETURN_SPAWN'),
(17077, 53, 519.146, 3886.7, 190.128, 50000, 'DESPAWN_WOLF');
59 changes: 51 additions & 8 deletions src/server/scripts/Outland/zone_hellfire_peninsula.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ enum AncestralWolf
{
EMOTE_WOLF_LIFT_HEAD = 0,
EMOTE_WOLF_HOWL = 1,
SAY_WOLF_WELCOME = 2,
SPELL_ANCESTRAL_WOLF_BUFF = 29981,
SAY_WOLF_WELCOME = 0,
SPELL_GUIDED_BY_THE_SPIRITS = 29938,
NPC_RYGA = 17123
};

Expand All @@ -173,18 +173,19 @@ class npc_ancestral_wolf : public CreatureScript
npc_ancestral_wolfAI(Creature* creature) : npc_escortAI(creature)
{
if (creature->GetOwner() && creature->GetOwner()->GetTypeId() == TYPEID_PLAYER)
Start(false, true, creature->GetOwner()->GetGUID());
Start(false, false, creature->GetOwner()->GetGUID());
creature->SetSpeed(MOVE_WALK, 1.5f);
DoCast(GUIDED_BY_THE_SPIRITS);
Nyeriah marked this conversation as resolved.
Show resolved Hide resolved
Reset();
}

void Reset() override
{
ryga = nullptr;
me->CastSpell(me, SPELL_ANCESTRAL_WOLF_BUFF, false);
me->SetReactState(REACT_PASSIVE);
}

void MoveInLineOfSight(Unit* who) override

{
if (!ryga && who->GetEntry() == NPC_RYGA && me->IsWithinDistInMap(who, 15.0f))
if (Creature* temp = who->ToCreature())
Expand All @@ -195,7 +196,6 @@ class npc_ancestral_wolf : public CreatureScript

void WaypointReached(uint32 waypointId) override
{
me->CastSpell(me, SPELL_ANCESTRAL_WOLF_BUFF, false);
switch (waypointId)
{
case 0:
Expand All @@ -205,8 +205,51 @@ class npc_ancestral_wolf : public CreatureScript
Talk(EMOTE_WOLF_HOWL);
break;
case 50:
if (ryga && ryga->IsAlive() && !ryga->IsInCombat())
ryga->AI()->Talk(SAY_WOLF_WELCOME);
if (Creature* ryga = me->FindNearestCreature(NPC_RYGA, 70))
{
if (ryga->IsAlive() && !ryga->IsInCombat())
{
ryga->SetWalk(true);
ryga->SetSpeed(MOVE_WALK, 1.0f);
ryga->GetMotionMaster()->MovePoint(0, 515.877991f, 3885.67627f, 190.470535f, true);
Reset();
}
}
break;
case 51:
if (Creature* ryga = me->FindNearestCreature(NPC_RYGA, 70))
{
if (ryga->IsAlive() && !ryga->IsInCombat())
{
ryga->SetFacingTo(0.2602f);
ryga->SetStandState(UNIT_STAND_STATE_KNEEL);
ryga->AI()->Talk(SAY_WOLF_WELCOME);
Reset();
}
}
break;
case 52:
if (Creature* ryga = me->FindNearestCreature(NPC_RYGA, 70))
{
if (ryga->IsAlive() && !ryga->IsInCombat())
{
ryga->SetStandState(UNIT_STAND_STATE_STAND);
ryga->SetWalk(true);
ryga->SetSpeed(MOVE_WALK, 1.0f);
ryga->GetMotionMaster()->MovePoint(0, 504.59201f, 3882.12988f, 192.156006f, true);
Reset();
}
}
break;
case 53:
if (Creature* ryga = me->FindNearestCreature(NPC_RYGA, 70))
{
if (ryga->IsAlive() && !ryga->IsInCombat())
{
ryga->SetFacingTo(5.79449f);
Reset();
}
}
break;
}
}
Expand Down
Loading