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

Commit

Permalink
Scripts: Add aysa's outro talk in quest 'A New Friend'
Browse files Browse the repository at this point in the history
  • Loading branch information
AriDEV3 committed Nov 26, 2023
1 parent e40854f commit dd93147
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/updates/world/2023_11_26_world_02.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DELETE FROM `creature_text` WHERE `entry`=54975;
INSERT INTO `creature_text` (`entry`, `text`, `type`, `probability`, `sound`) VALUES
(54975, 'I have to admit, that looked pretty fun!', 12, 100, 27394);
17 changes: 17 additions & 0 deletions src/server/scripts/Pandaria/zone_wandering_island.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,23 @@ class npc_shu_pool_of_reflection : public CreatureScript
UpdatePlayerList();
if (players.empty())
{
if (Creature* aysa = me->FindNearestCreature(54975, 60.0f, true))
{
std::list<Player*> playerList;
GetPlayerListInGrid(playerList, aysa, 60.0f);

for (auto&& player : playerList)
{
if (player->GetQuestStatus(29679) == QUEST_STATUS_COMPLETE)
{
if (!player->GetAura(128588)) // Aysa gz trigger aura
{
player->CastSpell(player, 128588);
aysa->AI()->Talk(0);
}
}
}
}
running = false;
events.CancelEvent(EVENT_ROTATE_POSITION);
events.CancelEvent(EVENT_SUMMON_WATER_SPOUT);
Expand Down

0 comments on commit dd93147

Please sign in to comment.