-----------------------------------
-- Area: Batallia Downs (105)
--  Mob: Ahtu
-----------------------------------
---@type TMobEntity
local entity = {}

entity.spawnPoints =
{
    { x = 187.811, y = 15.258, z = -554.714 },
    { x = 153.233, y = 15.274, z = -564.497 },
    { x = 201.635, y = 14.924, z = -608.449 },
    { x = 168.093, y = 15.499, z = -555.480 },
    { x = 189.646, y = 15.166, z = -578.424 },
    { x = 199.856, y = 16.319, z = -570.404 },
    { x = 189.844, y = 16.234, z = -564.700 },
    { x = 186.115, y = 15.078, z = -553.249 },
    { x = 150.896, y = 14.703, z = -565.171 },
    { x = 203.870, y = 15.700, z = -557.609 },
    { x = 195.724, y = 15.838, z = -597.907 },
    { x = 166.177, y = 15.644, z = -556.457 },
    { x = 195.920, y = 16.069, z = -565.406 },
    { x = 193.351, y = 15.933, z = -568.880 },
    { x = 190.451, y = 13.551, z = -548.165 },
    { x = 194.527, y = 15.387, z = -596.378 },
    { x = 160.200, y = 14.591, z = -549.950 },
    { x = 198.436, y = 15.438, z = -605.457 },
    { x = 173.137, y = 15.631, z = -553.695 },
    { x = 202.757, y = 15.890, z = -588.093 },
    { x = 196.516, y = 16.585, z = -573.894 },
    { x = 175.824, y = 16.106, z = -555.718 },
    { x = 165.060, y = 16.052, z = -560.051 },
    { x = 200.564, y = 16.861, z = -579.849 },
    { x = 195.866, y = 16.257, z = -569.787 },
    { x = 152.336, y = 15.084, z = -562.751 },
    { x = 170.390, y = 16.199, z = -559.143 },
    { x = 193.821, y = 15.145, z = -597.985 },
    { x = 207.204, y = 15.202, z = -590.641 },
    { x = 175.762, y = 15.467, z = -553.146 },
    { x = 209.733, y = 14.889, z = -574.641 },
    { x = 202.297, y = 16.530, z = -580.384 },
    { x = 194.409, y = 14.392, z = -610.378 },
    { x = 191.136, y = 13.799, z = -604.305 },
    { x = 208.925, y = 14.654, z = -578.323 },
    { x = 200.014, y = 15.997, z = -562.382 },
    { x = 183.225, y = 13.952, z = -548.821 },
    { x = 147.519, y = 13.864, z = -565.245 },
    { x = 175.263, y = 16.518, z = -564.309 },
    { x = 202.442, y = 15.879, z = -592.165 },
    { x = 198.292, y = 14.485, z = -549.447 },
    { x = 173.373, y = 16.117, z = -557.049 },
    { x = 150.019, y = 14.463, z = -565.780 },
    { x = 185.610, y = 13.268, z = -580.257 },
    { x = 200.347, y = 16.915, z = -580.354 },
    { x = 157.483, y = 15.700, z = -557.492 },
    { x = 153.286, y = 15.240, z = -557.928 },
    { x = 184.153, y = 15.569, z = -554.597 },
    { x = 196.809, y = 16.000, z = -562.844 },
    { x = 189.593, y = 14.085, z = -586.743 },
}

entity.onMobInitialize = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(math.random(7200, 14400)) -- 2-4 hours
end

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

entity.onMobDespawn = function(mob)
    xi.mob.updateNMSpawnPoint(mob)
    mob:setRespawnTime(math.random(7200, 14400)) -- 2-4 hours
end

return entity
