* 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:
@@ -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 */
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
UPDATE `gameobject_template` SET `scriptname` = 'go_inconspicuous_landmark' WHERE `entry`=142189;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user