-----------------------------------
-- Area: Carpenters' Landing
--   NM: Orctrap
-- !pos 180.087 -5.484 -532.799 2
-----------------------------------
local ID = zones[xi.zone.CARPENTERS_LANDING]
-----------------------------------
---@type TMobEntity
local entity = {}

entity.phList =
{
    [ID.mob.ORCTRAP - 1] = ID.mob.ORCTRAP, -- 181.819 -5.887 -524.872
}

entity.spawnPoints =
{
    { x = 181.074, y = -5.068, z = -555.737 },
    { x = 178.748, y = -5.863, z = -546.921 },
    { x = 176.721, y = -5.672, z = -537.420 },
    { x = 173.654, y = -5.440, z = -524.019 },
    { x = 172.705, y = -6.989, z = -511.832 },
    { x = 163.763, y = -8.363, z = -511.010 },
    { x = 151.941, y = -7.748, z = -518.589 },
    { x = 148.944, y = -9.235, z = -529.042 },
    { x = 161.918, y = -5.590, z = -532.219 },
    { x = 163.666, y = -5.566, z = -547.622 },
    { x = 163.812, y = -6.010, z = -562.407 },
    { x = 150.334, y = -7.799, z = -569.064 },
    { x = 144.089, y = -5.213, z = -558.133 },
    { x = 137.052, y = -9.105, z = -547.091 },
    { x = 127.259, y = -8.540, z = -549.758 },
    { x = 126.959, y = -5.853, z = -562.760 },
    { x = 134.721, y = -7.024, z = -569.841 },
    { x = 139.833, y = -9.229, z = -575.526 },
    { x = 129.847, y = -7.358, z = -582.050 },
    { x = 118.745, y = -5.128, z = -582.544 },
    { x = 112.675, y = -6.123, z = -574.210 },
    { x = 115.540, y = -5.978, z = -561.725 },
    { x = 111.511, y = -6.951, z = -552.205 },
    { x = 103.035, y = -5.152, z = -556.371 },
    { x = 95.280,  y = -5.276, z = -562.397 },
    { x = 93.110,  y = -6.669, z = -549.745 },
    { x = 96.130,  y = -8.346, z = -544.888 },
    { x = 129.581, y = -7.781, z = -588.180 },
    { x = 115.876, y = -5.460, z = -586.387 },
    { x = 114.257, y = -5.913, z = -598.335 },
    { x = 115.034, y = -7.826, z = -608.715 },
    { x = 103.883, y = -7.184, z = -608.870 },
    { x = 99.231,  y = -5.380, z = -595.511 },
    { x = 89.111,  y = -6.283, z = -605.517 },
    { x = 74.510,  y = -7.215, z = -606.091 },
    { x = 71.349,  y = -7.935, z = -594.507 },
    { x = 78.668,  y = -5.044, z = -580.871 },
    { x = 79.683,  y = -5.683, z = -570.357 },
    { x = 67.521,  y = -7.250, z = -574.496 },
    { x = 55.183,  y = -5.286, z = -557.978 },
    { x = 64.133,  y = -8.694, z = -544.070 },
    { x = 78.979,  y = -6.000, z = -556.341 },
    { x = 91.609,  y = -6.222, z = -552.088 },
    { x = 81.873,  y = -5.138, z = -542.754 },
    { x = 70.790,  y = -6.853, z = -539.554 },
    { x = 70.148,  y = -8.429, z = -527.044 },
    { x = 86.146,  y = -6.743, z = -526.943 },
    { x = 87.834,  y = -7.597, z = -520.502 },
    { x = 76.962,  y = -5.935, z = -514.680 },
    { x = 102.059, y = -5.104, z = -559.392 },
}

entity.onMobDeath = function(mob, player, optParams)
    xi.hunts.checkHunt(mob, player, 167)
    xi.magian.onMobDeath(mob, player, optParams, set{ 70 })
end

return entity
