• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

LuaScriptInterface::luaDoTeleportThing(). Thing not found

Status
Not open for further replies.

Cadyan

Well-Known Member
Joined
Mar 30, 2008
Messages
844
Reaction score
63
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?
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:
Status
Not open for further replies.
Back
Top