OTcreator
Active Member
- Joined
- Feb 14, 2022
- Messages
- 426
- Solutions
- 1
- Reaction score
- 44
Hi!
I have problem with rewrite this script to TFS 1.4.2.
On 0.3.7 all working perfect.
This is globalevent.
I have problem with rewrite this script to TFS 1.4.2.
On 0.3.7 all working perfect.
This is globalevent.
Lua:
local teleport = {x = 607, y = 873, z = 4}
function onThink(interval, lastExecution)
for _, cid in ipairs(getPlayersOnline()) do
if isInRange(getPlayerPosition(cid), {x = 598, y = 872, z = 5}, {x = 615, y = 897, z = 10}) and getPlayerLevel(cid) > 200 then
doTeleportThing(cid, teleport)
doPlayerSendCancel(cid, "Teleported!")
end
end
return true
end