Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Scripts: Implement Ji Firepaw trigger in wu song village.
Browse files Browse the repository at this point in the history
  • Loading branch information
AriDEV3 committed Nov 23, 2023
1 parent 67867f7 commit c61a9b3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sql/updates/world/2023_11_23_world_02.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
DELETE FROM `creature_text` WHERE `entry`=54568;
INSERT INTO `creature_text` (`entry`, `text`, `type`, `probability`) VALUES
(54568, 'Take that monkeybutt!', 12, 100);

DELETE FROM `areatrigger_scripts` WHERE `entry`=7749;
INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES
(7749, 'at_wu_song_village');
30 changes: 30 additions & 0 deletions src/server/scripts/World/areatrigger_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,35 @@ EndContentData */
#include "ScriptedCreature.h"
#include "Player.h"

enum WuSongVillage
{
QUEST_JI_OF_THE_HUOJIN = 29522,
NPC_JI_FIREPAW = 54568
};
//7749
class AreaTrigger_at_wu_song_village : AreaTriggerScript
{
public:
AreaTrigger_at_wu_song_village() : AreaTriggerScript("at_wu_song_village") { }

bool OnTrigger(Player* player, AreaTriggerEntry const* /*trigger*/) OVERRIDE
{
if (player->GetQuestStatus(QUEST_JI_OF_THE_HUOJIN) == QUEST_STATUS_COMPLETE)
{
if (!player->GetAura(116219))
{
if (Creature* ji = player->FindNearestCreature(NPC_JI_FIREPAW, 15.0f, true))
{
ji->CastSpell(player, 116219);
ji->AI()->Talk(0);
return true;
}
}
}
return false;
}
};

enum fusPond
{
QUEST_AYSA_OF_THE_TUSHUI = 29410,
Expand Down Expand Up @@ -551,6 +580,7 @@ class AreaTrigger_at_frostgrips_hollow : public AreaTriggerScript

void AddSC_areatrigger_scripts()
{
new AreaTrigger_at_wu_song_village();
new AreaTrigger_at_fus_pond();
new AreaTrigger_at_pool_of_reflection();
new AreaTrigger_at_the_dawning_valley();
Expand Down

0 comments on commit c61a9b3

Please sign in to comment.