EDIT: Solved by Evan in under 10 minutes of my posting!
[13/05/2013 09:51:27] LuaScriptInterface::luaDoTeleportThing(). Thing not found
What is the problem?
[13/05/2013 09:51:27] LuaScriptInterface::luaDoTeleportThing(). Thing not found
What is the problem?
Code:
function event(cid)
areaa = {x=335, y=1031, z=8}
areab = {x=340, y=1032, z=8}
local players = {}
for x = areaa.x, areab.x do
for y = areaa.y, areab.y do
for z = areaa.z, areab.z do
if(isPlayer(getTopCreature({x = x, y = y, z = z}).uid)) then
table.insert(players, getTopCreature({x = x, y = y, z = z}).uid)
end
end
end
end
for i = 1, 1 do
pos1 = {x=338, y=1038, z=8}
doTeleportThing(players[i], pos1)
end
end
Last edited: