mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-03 07:37:11 +01:00
Added script for GO 183146. By McBitter.
--HG-- branch : trunk
This commit is contained in:
1
sql/updates/1247_world.sql
Normal file
1
sql/updates/1247_world.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE `gameobject_template` SET `ScriptName` = 'go_jump_a_tron' WHERE `entry` = 183146;
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user