* 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
This commit is contained in:
Brian
2010-01-13 00:39:05 -07:00
parent 6aea9f7a0a
commit 93e6fcfc1b
3 changed files with 29 additions and 0 deletions
@@ -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();
}