From 93e6fcfc1be367206c4a85c4c233d763481eacd3 Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 13 Jan 2010 00:39:05 -0700 Subject: * Added GO script for Inconspicuous Landmark (142189) needed for quest 2882 * Thanks manuel for the help! * Needs additional DB data for quest to work. --HG-- branch : trunk --- src/bindings/scripts/scripts/world/go_scripts.cpp | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/bindings/scripts') 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(); } -- cgit v1.2.3