aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/FULL/world_scripts_full.sql1
-rw-r--r--sql/updates/6988_world_scriptname.sql2
-rw-r--r--src/bindings/scripts/scripts/world/go_scripts.cpp26
3 files changed, 29 insertions, 0 deletions
diff --git a/sql/FULL/world_scripts_full.sql b/sql/FULL/world_scripts_full.sql
index ac0797d568b..82a565476e8 100644
--- a/sql/FULL/world_scripts_full.sql
+++ b/sql/FULL/world_scripts_full.sql
@@ -47,6 +47,7 @@ UPDATE `gameobject_template` SET `ScriptName`='go_acherus_soul_prison' WHERE `en
UPDATE `gameobject_template` SET `ScriptName`='go_shrine_of_the_birds' WHERE `entry` IN (185547,185553,185551);
UPDATE `gameobject_template` SET `ScriptName`='go_matrix_punchograph' WHERE `entry` IN (142345,142475,142476,142696);
UPDATE `gameobject_template` SET `ScriptName`='go_jotunheim_cage' WHERE `entry`=192135;
+UPDATE `gameobject_template` SET `scriptname` = 'go_inconspicuous_landmark' WHERE `entry`=142189;
/* GUARD */
diff --git a/sql/updates/6988_world_scriptname.sql b/sql/updates/6988_world_scriptname.sql
new file mode 100644
index 00000000000..c7b221e853a
--- /dev/null
+++ b/sql/updates/6988_world_scriptname.sql
@@ -0,0 +1,2 @@
+UPDATE `gameobject_template` SET `scriptname` = 'go_inconspicuous_landmark' WHERE `entry`=142189;
+
diff --git a/src/bindings/scripts/scripts/world/go_scripts.cpp b/src/bindings/scripts/scripts/world/go_scripts.cpp
index cbcff3f0220..76c80140029 100644
--- a/src/bindings/scripts/scripts/world/go_scripts.cpp
+++ b/src/bindings/scripts/scripts/world/go_scripts.cpp
@@ -676,6 +676,27 @@ bool GOHello_go_table_theka(Player* pPlayer, GameObject* pGO)
return true;
}
+/*######
+ * ## go_inconspicuous_landmark
+ * ######*/
+
+enum eInconspicuousLandmark
+{
+ SPELL_SUMMON_PIRATES_TREASURE_AND_TRIGGER_MOB = 11462,
+ ITEM_CUERGOS_KEY = 9275,
+};
+
+bool GOHello_go_inconspicuous_landmark(Player *pPlayer, GameObject* pGO)
+{
+ if (pPlayer->HasItemCount(ITEM_CUERGOS_KEY,1))
+ return false;
+
+ pPlayer->CastSpell(pPlayer,SPELL_SUMMON_PIRATES_TREASURE_AND_TRIGGER_MOB,true);
+
+ return true;
+}
+
+
void AddSC_go_scripts()
{
Script *newscript;
@@ -820,4 +841,9 @@ void AddSC_go_scripts()
newscript->Name = "go_table_theka";
newscript->pGOHello = &GOHello_go_table_theka;
newscript->RegisterSelf();
+
+ newscript = new Script;
+ newscript->Name = "go_inconspicuous_landmark";
+ newscript->pGOHello = &GOHello_go_inconspicuous_landmark;
+ newscript->RegisterSelf();
}