Last active
June 23, 2017 01:46
-
-
Save sirikfoll/74353225e081cf8c8e63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp | |
index f3accdf..9aad8c3 100644 | |
--- a/src/server/scripts/World/go_scripts.cpp | |
+++ b/src/server/scripts/World/go_scripts.cpp | |
@@ -50,6 +50,7 @@ EndContentData */ | |
#include "Spell.h" | |
#include "Player.h" | |
#include "WorldSession.h" | |
+#include "AchievementMgr.h" | |
/*###### | |
## go_cat_figurine | |
@@ -1196,6 +1197,22 @@ public: | |
} | |
}; | |
+class go_ribbon_pole : public GameObjectScript | |
+{ | |
+public: | |
+ go_ribbon_pole() : GameObjectScript("go_ribbon_pole") { } | |
+ | |
+ bool OnGossipHello(Player* player, GameObject* /*go*/) override | |
+ { | |
+ if (player && player->HasAura(58933)) | |
+ { | |
+ AchievementEntry const* achievementEntry = sAchievementMgr->GetAchievement(271); | |
+ Creature* target = GetClosestCreatureWithEntry(player, 17066, 5.0f); | |
+ | |
+ if (!target) | |
+ return; | |
+ | |
+ player->CastSpell(target, 29726); | |
+ player->CompletedAchievement(achievementEntry); | |
+ } | |
+ return true; | |
+ } | |
+}; | |
+ | |
void AddSC_go_scripts() | |
{ | |
new go_cat_figurine(); | |
@@ -1231,4 +1248,5 @@ void AddSC_go_scripts() | |
new go_veil_skith_cage(); | |
new go_frostblade_shrine(); | |
new go_midsummer_bonfire(); | |
+ new go_ribbon_pole(); | |
} |
Author
sirikfoll
commented
Jun 23, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment