Skip to content

Commit

Permalink
Shift-proof Caedarva Mire
Browse files Browse the repository at this point in the history
  • Loading branch information
Frankie-hz committed May 13, 2024
1 parent 8dff08a commit 4788b17
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
36 changes: 14 additions & 22 deletions scripts/zones/Caedarva_Mire/IDs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,37 +45,29 @@ zones[xi.zone.CAEDARVA_MIRE] =
},
mob =
{
AYNU_KAYSEY = GetFirstID('Aynu-kaysey'),
CAEDARVA_TOAD = GetFirstID('Caedarva_Toad'),
CHIGOES =
{
['Wild_Karakul'] = GetTableOfIDs('Chigoe', 5),
['Mosshorn'] = GetTableOfIDs('Chigoe', 5, 5),
},
PEALLAIDH_PH =
{
[17100870] = 17101143, -- 333.885 -9.646 -447.557
[17100871] = 17101143, -- 309.638 -8.548 -447.557
[17100872] = 17101143, -- 307.320 -10.088 -451.786
[17100873] = 17101143, -- 295.122 -12.271 -414.418
[17100874] = 17101143, -- 287.607 -16.220 -387.671
[17100875] = 17101143, -- 315.793 -16.336 -402.407
[17100876] = 17101143, -- 321.809 -16.843 -373.780
},
AYNU_KAYSEY = 17101099,
CAEDARVA_TOAD = 17101145,
JAZARAAT = 17101146,
LAMIA_NO27 = 17101148,
MOSHDAHN = 17101149,
KHIMAIRA = 17101197,
VERDELET = 17101198,
TYGER = 17101199,
MAHJLAEF_THE_PAINTORN = 17101200,
EXPERIMENTAL_LAMIA = 17101201,
EXPERIMENTAL_LAMIA = GetFirstID('Experimental_Lamia'),
JAZARAAT = GetFirstID('Jazaraat'),
KHIMAIRA = GetFirstID('Khimaira'),
LAMIA_NO27 = GetFirstID('Lamia_No27'),
MAHJLAEF_THE_PAINTORN = GetFirstID('Mahjlaef_the_Paintorn'),
MOSHDAHN = GetFirstID('Moshdahn'),
PEALLAIDH = GetFirstID('Peallaidh'),
PEALLAIDH_PH_OFFSET = GetFirstID('Wild_Karakul'), -- These are 270IDs away. Use offset in case of weird shift.
TYGER = GetFirstID('Tyger'),
VERDELET = GetFirstID('Verdelet'),
},
npc =
{
LOGGING = GetTableOfIDs('Logging_Point'),
RUNIC_PORTAL_AZOUPH = 17101319,
RUNIC_PORTAL_DVUCCA = 17101322,
RUNIC_PORTAL_AZOUPH = GetFirstID('Runic_Portal_Azouph'),
RUNIC_PORTAL_DVUCCA = GetFirstID('Runic_Portal_Dvucca'),
},
}

Expand Down
13 changes: 12 additions & 1 deletion scripts/zones/Caedarva_Mire/mobs/Wild_Karakul.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,22 @@ local ID = zones[xi.zone.CAEDARVA_MIRE]
-----------------------------------
local entity = {}

local peallaidhPHTable =
{
[ID.mob.PEALLAIDH_PH_OFFSET] = ID.mob.PEALLAIDH, -- 333.885 -9.646 -447.557
[ID.mob.PEALLAIDH_PH_OFFSET + 1] = ID.mob.PEALLAIDH, -- 309.638 -8.548 -447.557
[ID.mob.PEALLAIDH_PH_OFFSET + 2] = ID.mob.PEALLAIDH, -- 307.320 -10.088 -451.786
[ID.mob.PEALLAIDH_PH_OFFSET + 3] = ID.mob.PEALLAIDH, -- 295.122 -12.271 -414.418
[ID.mob.PEALLAIDH_PH_OFFSET + 4] = ID.mob.PEALLAIDH, -- 287.607 -16.220 -387.671
[ID.mob.PEALLAIDH_PH_OFFSET + 5] = ID.mob.PEALLAIDH, -- 315.793 -16.336 -402.407
[ID.mob.PEALLAIDH_PH_OFFSET + 6] = ID.mob.PEALLAIDH, -- 321.809 -16.843 -373.780
}

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

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

return entity

0 comments on commit 4788b17

Please sign in to comment.