Added script for GO 183146. By McBitter.

--HG--
branch : trunk
This commit is contained in:
raczman
2009-03-23 18:07:58 +01:00
parent f703449242
commit 380cffe5bf
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1 @@
UPDATE `gameobject_template` SET `ScriptName` = 'go_jump_a_tron' WHERE `entry` = 183146;

View File

@@ -158,6 +158,18 @@ bool GOHello_go_teleporter(Player *player, GameObject* _GO)
return false;
}
/*#####
## go_jump_a_tron
######*/
bool GOHello_go_jump_a_tron(Player *player, GameObject* _GO)
{
if (player->GetQuestStatus(10111) == QUEST_STATUS_INCOMPLETE)
player->CastSpell(player,33382,true);
return true;
}
void AddSC_go_scripts()
{
Script *newscript;
@@ -206,5 +218,10 @@ void AddSC_go_scripts()
newscript->Name="go_teleporter";
newscript->pGOHello = &GOHello_go_teleporter;
newscript->RegisterSelf();
newscript = new Script;
newscript->Name="go_jump_a_tron";
newscript->pGOHello = &GOHello_go_jump_a_tron;
newscript->RegisterSelf();
}