fix(Scripts/ZulAman): Move Harrison Jones spawn to DB (#20491)

Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
This commit is contained in:
Andrew
2024-11-09 19:18:14 -03:00
committed by GitHub
parent 80a9af02d6
commit 82d43ee52a
2 changed files with 4 additions and 20 deletions

View File

@@ -0,0 +1,4 @@
--
DELETE FROM `creature` WHERE `guid` = 320 AND `id1` = 24358;
INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES
(320, 24358, 0, 0, 568, 0, 0, 1, 1, 0, 121.36404, 1674.9835, 42.10491, 1.553343057632446289, 608400, 0, 0, 4890, 0, 2, 1, 0, 0, 'npc_harrison_jones', 50375, 2, NULL);

View File

@@ -93,7 +93,6 @@ public:
ObjectGuid AshlisBagGUID;
ObjectGuid KrazsPackageGUID;
ObjectGuid StrangeGongGUID;
ObjectGuid HarrisonJonesGUID;
ObjectGuid HexLordGateGUID;
ObjectGuid ZulJinGateGUID;
@@ -129,25 +128,6 @@ public:
m_auiEncounter[DATA_GONGEVENT] = NOT_STARTED;
}
void OnPlayerEnter(Player* /*player*/) override
{
if (!HarrisonJonesGUID)
instance->SummonCreature(NPC_HARRISON_JONES, HarrisonJonesLoc);
}
void OnCreatureCreate(Creature* creature) override
{
switch (creature->GetEntry())
{
case NPC_HARRISON_JONES:
HarrisonJonesGUID = creature->GetGUID();
break;
default:
break;
}
InstanceScript::OnCreatureCreate(creature);
}
void OnGameObjectCreate(GameObject* go) override
{
switch (go->GetEntry())