Butterfield
Member
Hey! I'm trying to create a timer for my boss. Right now I am using a code I found on the forum but I think using "os.time" is not the right way to go when creating a timer.
To me "os.time" sounds like it is using the clients time and not the server. Is there any other way or is this the way to go?
Saw some posts about "GetGameTime" but I can't figure out how it works...
Thanks in advance! --Butterz
To me "os.time" sounds like it is using the clients time and not the server. Is there any other way or is this the way to go?
Saw some posts about "GetGameTime" but I can't figure out how it works...
Thanks in advance! --Butterz
Code:
function MovedToLocation1(event, delay, pCall, creature, player)
creature:RemoveEvents()
creature:RemoveFlag(59,2)
wait(8) -- Calls the wait function below
creature:RegisterEvent(NiklasSpell2, 100, 0)
end
Code:
function wait(seconds)
local _start = os.time()
local _end = _start+seconds
while (_end ~= os.time()) do
end
end