Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cleanup] Shift-proof the rest of the "J", "H", "I" zones #5676

Merged
merged 4 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions scripts/zones/Halvung/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ zones[xi.zone.HALVUNG] =
mob =
{
BIG_BOMB = GetFirstID('Big_Bomb'),
GURFURLUR_THE_MENACING = 17031592,
DEXTROSE = 17031598,
REACTON = 17031599,
ACHAMOTH = 17031600,
GURFURLUR_THE_MENACING = GetFirstID('Gurfurlur_the_Menacing'),
DEXTROSE = GetFirstID('Dextrose'),
REACTON = GetFirstID('Reacton'),
ACHAMOTH = GetFirstID('Achamoth'),
},
npc =
{
LEVER_AB_DOOR = 17031669,
LEVER_CD_DOOR = 17031673,
LEVER_EF_DOOR = 17031677,
LEVER_GH_DOOR = 17031681,
LEVER_IJ_DOOR = 17031685,
LEVER_AB_DOOR = GetFirstID('_1qf'),
LEVER_CD_DOOR = GetFirstID('_1qh'),
LEVER_EF_DOOR = GetFirstID('_1qj'),
LEVER_GH_DOOR = GetFirstID('_1ql'),
LEVER_IJ_DOOR = GetFirstID('_1qn'),
MINING = GetTableOfIDs('Mining_Point'),
},
}
Expand Down
48 changes: 11 additions & 37 deletions scripts/zones/Ifrits_Cauldron/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,46 +42,20 @@ zones[xi.zone.IFRITS_CAULDRON] =
},
mob =
{
TYRANNIC_TUNNOK_PH =
{
[17616996] = 17616999,
[17617000] = 17616999,
[17617001] = 17616999,
},
LINDWURM_PH =
{
[17617007] = 17617013,
[17617008] = 17617013,
[17617011] = 17617013,
[17617012] = 17617013,
[17617031] = 17617013,
[17617032] = 17617013,
},
FORESEER_ORAMIX_PH =
{
[17617055] = 17617062,
[17617066] = 17617062,
[17617069] = 17617062,
},
VOUIVRE_PH =
{
[17617117] = 17617130,
[17617118] = 17617130,
[17617121] = 17617130,
[17617122] = 17617130,
[17617125] = 17617130,
[17617129] = 17617130,
},
PIRATES_COVE_NMS = 17616897,
ASH_DRAGON = 17617147,
MIMIC = 17617157,
BOMB_QUEEN = 17617158,
TARASQUE = 17617164,
CAILLEACH_BHEUR = 17617165,
TYRANNIC_TUNNOK = GetFirstID('Tyrannic_Tunnok'),
LINDWURM = GetFirstID('Lindwurm'),
FORESEER_ORAMIX = GetFirstID('Foreseer_Oramix'),
VOUIVRE = GetFirstID('Vouivre'),
PIRATES_COVE_NMS = GetFirstID('Salamander'),
ASH_DRAGON = GetFirstID('Ash_Dragon'),
MIMIC = GetFirstID('Mimic'),
BOMB_QUEEN = GetFirstID('Bomb_Queen'),
TARASQUE = GetFirstID('Tarasque'),
CAILLEACH_BHEUR = GetFirstID('Cailleach_Bheur'),
},
npc =
{
FLAME_SPOUT_OFFSET = 17617205,
FLAME_SPOUT_OFFSET = GetFirstID('Flame_Spout'),
TREASURE_COFFER = GetFirstID('Treasure_Coffer'),
MINING = GetTableOfIDs('Mining_Point'),
},
Expand Down
12 changes: 11 additions & 1 deletion scripts/zones/Ifrits_Cauldron/mobs/Eotyrannus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@ local ID = zones[xi.zone.IFRITS_CAULDRON]
-----------------------------------
local entity = {}

local lindwurmPHTable =
{
[ID.mob.LINDWURM - 6] = ID.mob.LINDWURM,
[ID.mob.LINDWURM - 5] = ID.mob.LINDWURM,
[ID.mob.LINDWURM - 2] = ID.mob.LINDWURM,
[ID.mob.LINDWURM - 1] = ID.mob.LINDWURM,
[ID.mob.LINDWURM + 18] = ID.mob.LINDWURM,
[ID.mob.LINDWURM + 19] = ID.mob.LINDWURM,
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 758, 1, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.LINDWURM_PH, 5, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, lindwurmPHTable, 5, 3600) -- 1 hour
end

return entity
9 changes: 8 additions & 1 deletion scripts/zones/Ifrits_Cauldron/mobs/Goblin_Alchemist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ local ID = zones[xi.zone.IFRITS_CAULDRON]
-----------------------------------
local entity = {}

local foreseerPHTable =
{
[ID.mob.FORESEER_ORAMIX - 7] = ID.mob.FORESEER_ORAMIX,
[ID.mob.FORESEER_ORAMIX + 4] = ID.mob.FORESEER_ORAMIX,
[ID.mob.FORESEER_ORAMIX + 7] = ID.mob.FORESEER_ORAMIX,
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 757, 1, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.FORESEER_ORAMIX_PH, 5, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, foreseerPHTable, 5, 3600) -- 1 hour
end

return entity
12 changes: 11 additions & 1 deletion scripts/zones/Ifrits_Cauldron/mobs/Hurricane_Wyvern.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@ local ID = zones[xi.zone.IFRITS_CAULDRON]
-----------------------------------
local entity = {}

local vouivrePHTable =
{
[ID.mob.VOUIVRE - 13] = ID.mob.VOUIVRE,
[ID.mob.VOUIVRE - 12] = ID.mob.VOUIVRE,
[ID.mob.VOUIVRE - 9] = ID.mob.VOUIVRE,
[ID.mob.VOUIVRE - 8] = ID.mob.VOUIVRE,
[ID.mob.VOUIVRE - 5] = ID.mob.VOUIVRE,
[ID.mob.VOUIVRE - 1] = ID.mob.VOUIVRE,
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 762, 1, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.VOUIVRE_PH, 5, 7200) -- 2 hours
xi.mob.phOnDespawn(mob, vouivrePHTable, 5, 7200) -- 2 hours
end

return entity
9 changes: 8 additions & 1 deletion scripts/zones/Ifrits_Cauldron/mobs/Sulfur_Scorpion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ local ID = zones[xi.zone.IFRITS_CAULDRON]
-----------------------------------
local entity = {}

local tyrannicPHTable =
{
[ID.mob.TYRANNIC_TUNNOK - 3] = ID.mob.TYRANNIC_TUNNOK,
[ID.mob.TYRANNIC_TUNNOK + 1] = ID.mob.TYRANNIC_TUNNOK,
[ID.mob.TYRANNIC_TUNNOK + 2] = ID.mob.TYRANNIC_TUNNOK,
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 759, 2, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.TYRANNIC_TUNNOK_PH, 5, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, tyrannicPHTable, 5, 3600) -- 1 hour
end

return entity
16 changes: 4 additions & 12 deletions scripts/zones/Inner_Horutoto_Ruins/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,9 @@ zones[xi.zone.INNER_HORUTOTO_RUINS] =
},
mob =
{
SLENDLIX_SPINDLETHUMB_PH =
{
[17563758] = 17563785, -- -238.315 -0.002 -179.249
},
NOCUOUS_WEAPON_PH =
{
[17563798] = 17563801, -- -236.855 0.476 -51.263
[17563799] = 17563801, -- -237.426 0.5 -23.412
[17563800] = 17563801, -- -230.732 -0.025 -52.324
},
MAGICKED_BONES = GetFirstID('Magicked_Bones'),
SLENDLIX_SPINDLETHUMB = GetFirstID('Slendlix_Spindlethumb'),
NOCUOUS_WEAPON = GetFirstID('Nocuous_Weapon'),
MAGICKED_BONES = GetFirstID('Magicked_Bones'),
--[[
-2 Goblin Thug
-1 Goblin Weaver
Expand All @@ -55,7 +47,7 @@ zones[xi.zone.INNER_HORUTOTO_RUINS] =
},
npc =
{
PORTAL_CIRCLE_BASE = 17563862,
PORTAL_CIRCLE_BASE = GetFirstID('_5cm'),
TREASURE_CHEST = GetFirstID('Treasure_Chest'),
},
}
Expand Down
9 changes: 8 additions & 1 deletion scripts/zones/Inner_Horutoto_Ruins/mobs/Boggart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ local ID = zones[xi.zone.INNER_HORUTOTO_RUINS]
-----------------------------------
local entity = {}

local nocuousPHTable =
{
[ID.mob.NOCUOUS_WEAPON - 3] = ID.mob.NOCUOUS_WEAPON, -- -236.855 0.476 -51.263
[ID.mob.NOCUOUS_WEAPON - 2] = ID.mob.NOCUOUS_WEAPON, -- -237.426 0.5 -23.412
[ID.mob.NOCUOUS_WEAPON - 1] = ID.mob.NOCUOUS_WEAPON, -- -230.732 -0.025 -52.324
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 650, 1, xi.regime.type.GROUNDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.NOCUOUS_WEAPON_PH, 5, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, nocuousPHTable, 5, 3600) -- 1 hour
end

return entity
7 changes: 6 additions & 1 deletion scripts/zones/Inner_Horutoto_Ruins/mobs/Goblin_Leecher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ local ID = zones[xi.zone.INNER_HORUTOTO_RUINS]
-----------------------------------
local entity = {}

local slendlixPHTable =
{
[ID.mob.SLENDLIX_SPINDLETHUMB - 27] = ID.mob.SLENDLIX_SPINDLETHUMB, -- -238.315 -0.002 -179.249
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.SLENDLIX_SPINDLETHUMB_PH, 10, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, slendlixPHTable, 10, 3600) -- 1 hour
end

return entity
28 changes: 7 additions & 21 deletions scripts/zones/Jugner_Forest/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,13 @@ zones[xi.zone.JUGNER_FOREST] =

mob =
{
PANZER_PERCIVAL_PH =
{
[17203581] = 17203585, -- 535.504 -1.517 152.171 (southeast)
[17203637] = 17203642, -- 239.541 -0.365 559.722 (northwest)
},

SUPPLESPINE_MUJWUJ_PH =
{
[17203437] = 17203475,
},

FRADUBIO_PH =
{
[17203447] = 17203448,
},

KING_ARTHRO = 17203216,
FRAELISSA = 17203447,
FRADUBIO = 17203448,
METEORMAULER = 17203414,
PANZER_PERCIVAL = GetTableOfIDs('Panzer_Percival'), -- 2 NMs
SUPPLESPINE_MUJWUJ = GetFirstID('Supplespine_Mujwuj'),
KING_ARTHRO = GetFirstID('King_Arthro'),
FRAELISSA = GetFirstID('Fraelissa'),
FRADUBIO = GetFirstID('Fradubio'),
METEORMAULER = GetFirstID('Meteormauler_Zhagtegg'),
CERNUNNOS = GetFirstID('Cernunnos'),

VOIDWALKER =
{
Expand Down Expand Up @@ -104,7 +91,6 @@ zones[xi.zone.JUGNER_FOREST] =
}
},

CERNUNNOS = 17203677,
},

npc =
Expand Down
7 changes: 6 additions & 1 deletion scripts/zones/Jugner_Forest/mobs/Fraelissa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ local ID = zones[xi.zone.JUGNER_FOREST]
-----------------------------------
local entity = {}

local fradubioPHTable =
{
[ID.mob.FRADUBIO - 1] = ID.mob.FRADUBIO,
}

local updateRegen = function(mob)
local hour = VanadielHour()
if hour >= 4 and hour < 20 then
Expand Down Expand Up @@ -33,7 +38,7 @@ end

entity.onMobDespawn = function(mob)
UpdateNMSpawnPoint(mob:getID())
if not xi.mob.phOnDespawn(mob, ID.mob.FRADUBIO_PH, 10, 75600) then -- 21 hour minimum
if not xi.mob.phOnDespawn(mob, fradubioPHTable, 10, 75600) then -- 21 hour minimum
mob:setRespawnTime(math.random(3600, 4500)) -- 60 to 75 minutes
end
end
Expand Down
7 changes: 6 additions & 1 deletion scripts/zones/Jugner_Forest/mobs/Orcish_Grunt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ local ID = zones[xi.zone.JUGNER_FOREST]
-----------------------------------
local entity = {}

local supplespinePHTable =
{
[ID.mob.SUPPLESPINE_MUJWUJ - 38] = ID.mob.SUPPLESPINE_MUJWUJ,
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.SUPPLESPINE_MUJWUJ_PH, 10, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, supplespinePHTable, 10, 3600) -- 1 hour
end

return entity
8 changes: 7 additions & 1 deletion scripts/zones/Jugner_Forest/mobs/Stag_Beetle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,19 @@ local ID = zones[xi.zone.JUGNER_FOREST]
-----------------------------------
local entity = {}

local panzerPHTable =
{
[ID.mob.PANZER_PERCIVAL[1] - 4] = ID.mob.PANZER_PERCIVAL[1], -- 535.504 -1.517 152.171 (southeast)
[ID.mob.PANZER_PERCIVAL[2] - 5] = ID.mob.PANZER_PERCIVAL[2], -- 239.541 -0.365 559.722 (northwest)
}

entity.onMobDeath = function(mob, player, optParams)
xi.regime.checkRegime(player, mob, 12, 1, xi.regime.type.FIELDS)
xi.regime.checkRegime(player, mob, 13, 2, xi.regime.type.FIELDS)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.PANZER_PERCIVAL_PH, 10, 1) -- No minimum respawn
xi.mob.phOnDespawn(mob, panzerPHTable, 10, 1) -- No minimum respawn
end

return entity
10 changes: 3 additions & 7 deletions scripts/zones/Jugner_Forest_[S]/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,9 @@ zones[xi.zone.JUGNER_FOREST_S] =

mob =
{
DRUMSKULL_ZOGDREGG_PH =
{
[17113380] = 17113381, -- 195.578 -0.556 -347.699
},

FINGERFILCHER_DRADZAD = 17113462,
COBRACLAW_BUCHZVOTCH = 17113464,
DRUMSKULL_ZOGDREGG = GetFirstID('Drumskull_Zogdregg'),
FINGERFILCHER_DRADZAD = GetFirstID('Fingerfilcher_Dradzad'),
COBRACLAW_BUCHZVOTCH = GetFirstID('Cobraclaw_Buchzvotch'),

VOIDWALKER =
{
Expand Down
7 changes: 6 additions & 1 deletion scripts/zones/Jugner_Forest_[S]/mobs/Orcish_Veteran.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ local ID = zones[xi.zone.JUGNER_FOREST_S]
-----------------------------------
local entity = {}

local drumskillPHTable =
{
[ID.mob.DRUMSKULL_ZOGDREGG - 1] = ID.mob.DRUMSKULL_ZOGDREGG, -- 195.578 -0.556 -347.699
}

entity.onMobDeath = function(mob, player, optParams)
end

entity.onMobDespawn = function(mob)
xi.mob.phOnDespawn(mob, ID.mob.DRUMSKULL_ZOGDREGG_PH, 10, 3600) -- 1 hour
xi.mob.phOnDespawn(mob, drumskillPHTable, 10, 3600) -- 1 hour
end

return entity
Loading