Jfrye
Mapper, trying to learn scripting
Code:
local light = 1479
local spawnpos = {x=477, y=557, z=7}
function onTime()
for i = 1, #t do
if getWorldTime() < 1435 > 0600 then
doTransformItem(light, 1480)
end
return true
end
end
Using this code, I am trying to transform a light from id 1479, to id 1480 at a certain tibia time. I tried using this https://otland.net/threads/light-up-the-streets-at-night.197060/ but that script isnt working on my server. So I thought I would try my own, and it seems like I have no idea what I am doing. Ive tried searching the right way to use getWorldTime(), and havent had much luck. Any help is appreciated, but it would also be nice if an explanation could be included.