Skip to content

Commit

Permalink
NM Olgoi-Khorkhoi's first spawn fix (LandSandBoat#4652)
Browse files Browse the repository at this point in the history
* Fixes spawntype and despawn cords

Changes spawntype to 0 for spawning and updates death location to spawn from when respawn initiates.

* NM spawning adjustments

coding first spawn within zone.lua to remove magic number within IDs.lua and keep 128 spawntype.
  • Loading branch information
Aeltorian authored Nov 5, 2023
1 parent 7385b2e commit 3d2548d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/zones/North_Gustaberg_[S]/Zone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ local ID = zones[xi.zone.NORTH_GUSTABERG_S]
local zoneObject = {}

zoneObject.onInitialize = function(zone)
local olgoikhorkhoi = zone:queryEntitiesByName('Olgoi-Khorkhoi')[1]
-- UpdatSpawnPoint(OLGOI_KHORKHOI:getID()) TODO: need rows in nm_spawn_points.sql
olgoikhorkhoi:setRespawnTime(math.random(3600, 5400))

xi.helm.initZone(zone, xi.helm.type.MINING)
xi.voidwalker.zoneOnInit(zone)
end
Expand Down
1 change: 1 addition & 0 deletions scripts/zones/North_Gustaberg_[S]/mobs/Olgoi-Khorkhoi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ end

entity.onMobDespawn = function(mob)
-- Sets to respawn between 90 to 120 minutes
-- UpdateNMSpawnPoint(mob:getID()) TODO: need rows in nm_spawn_points.sql
mob:setRespawnTime(math.random(5400, 7200))
end

Expand Down

0 comments on commit 3d2548d

Please sign in to comment.