DB/GameObject: Convert & update support for Jump-a-tron 4000 to DB script

Closes #24668

(cherry picked from commit 6b9a14ca94)
This commit is contained in:
Killyana
2020-05-21 02:05:44 +02:00
committed by Shauren
parent a4016b9767
commit 876d9f52ec
2 changed files with 4 additions and 29 deletions

View File

@@ -0,0 +1,4 @@
--
DELETE FROM `event_scripts` WHERE `id`=12275;
INSERT INTO `event_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES
(12275,0,15,33382,3,0,0,0,0,0);

View File

@@ -151,34 +151,6 @@ public:
}
};
/*#####
## go_jump_a_tron
######*/
class go_jump_a_tron : public GameObjectScript
{
public:
go_jump_a_tron() : GameObjectScript("go_jump_a_tron") { }
struct go_jump_a_tronAI : public GameObjectAI
{
go_jump_a_tronAI(GameObject* go) : GameObjectAI(go) { }
bool GossipHello(Player* player) override
{
if (player->GetQuestStatus(10111) == QUEST_STATUS_INCOMPLETE)
player->CastSpell(player, 33382, true);
return true;
}
};
GameObjectAI* GetAI(GameObject* go) const override
{
return new go_jump_a_tronAI(go);
}
};
/*######
## go_ethereum_prison
######*/
@@ -1732,7 +1704,6 @@ void AddSC_go_scripts()
new go_southfury_moonstone();
new go_tablet_of_madness();
new go_tablet_of_the_seven();
new go_jump_a_tron();
new go_ethereum_prison();
new go_ethereum_stasis();
new go_resonite_cask();