diff options
author | Brian <runningnak3d@gmail.com> | 2010-01-13 00:39:05 -0700 |
---|---|---|
committer | Brian <runningnak3d@gmail.com> | 2010-01-13 00:39:05 -0700 |
commit | 93e6fcfc1be367206c4a85c4c233d763481eacd3 (patch) | |
tree | 53b72d76ab54453addf4a719a32c99622059d08d /src | |
parent | 6aea9f7a0a2dba13dac30ae2f13c18d52b98cc79 (diff) |
* 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
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings/scripts/scripts/world/go_scripts.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
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(); } |