[x] I have searched existing issues to see if the issue has already been opened, and I have checked the commit log to see if the issue has been resolved since my server was last updated.
OS / platform the server is running (if known)
Windows10
Branch affected by issue
base
Steps to reproduce
Find the ??? for JoF or Ix'DRK (or go to it with a command).
Mark time down when ??? disappears.
Find it again.
Mark down time when it disappears.
For JoF ???, the time varies dramatically, from 2:34 (a single in-game hour) to pretty much any other multiple of in-game hours.
For Ix'DRK, the duration is almost correct, but it always an in-game hour that's a multiple of 12.
local vanadielHour = VanadielHour()
local qmDrk = GetNPCByID(ID.npc.QM_IXAERN_DRK) -- Ix'aern drk
local s = math.random(6, 12) -- wait time till change to next spawn pos, random 15~30 mins.
-- Jailer of Faith spawn randomiser
if vanadielHour % s == 0 then
local qmFaith = GetNPCByID(ID.npc.QM_JAILER_OF_FAITH) -- Jailer of Faith
qmFaith:hideNPC(60) -- Hide it for 60 seconds
qmFaith:setPos(unpack(ID.npc.QM_JAILER_OF_FAITH_POS[math.random(1, 5)])) -- Set the new position
end
So for every in-game hour divisible by the numbers 6-12 (which includes 0, 14, 16, 18, 20, 21), it has a chance to move the JoF ???.
Expected behavior
JoF ??? should vanish exactly 30 minutes after it reappears (which is exactly one minute after it disappears). There are some reports on the wiki of 15 minutes as well, so it's possible it's either exactly 15 or exactly 30 minutes (random), but I haven't observed the 15 minutes.
For Ix'DRK ???, it should be exactly 30 minutes after it re-appears (which is exactly 30 seconds after it disappears).
I affirm:
OS / platform the server is running (if known)
Windows10
Branch affected by issue
base
Steps to reproduce
The code really raises some eyebrows: https://github.com/LandSandBoat/server/blob/base/scripts/zones/The_Garden_of_RuHmet/Zone.lua#L88
So for every in-game hour divisible by the numbers 6-12 (which includes 0, 14, 16, 18, 20, 21), it has a chance to move the JoF ???.
Expected behavior