• 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!

Movements

GOD Esteve

New Member
Joined
May 18, 2011
Messages
87
Reaction score
1
Hello guys, im using TFS 0.3.7 and try to do this to movements, but not work.
The erro its:

[6/4/2015 10:24:21] [Error - MoveEvents Interface]
[6/4/2015 10:24:21] Description:
[6/4/2015 10:24:21] (luaGetThingFromPosition) Tile not found

Script
Code:
function onStepIn(cid, item, position, fromPosition)
local room = { -- room with demons
fromX = 156,
fromY = 65,
fromZ = 7,
--------------
toX = 178,
toY = 91,
toZ = 5
}
exit = {x=175, y=84, z=7}

if getPlayerGuildName(cid) ~= "" then
for x = room.fromX, room.toX do
for y = room.fromY, room.toY do
for z = room.fromZ, room.toZ do

end
end
end

local pos = {x=x, y=y, z=z,stackpos = 253}
local thing = getThingfromPos(pos)
if thing.itemid > 0 then
if isPlayer(thing.uid) == TRUE then
doTeleportThing(thing, exit, false)
end
end
end


How i can fix that
 
I change and stay like that correct?

Code:
function onStepIn(cid, item, position, fromPosition)
local room = { -- room with demons
fromX = 156,
fromY = 65,
fromZ = 7,
--------------
toX = 178,
toY = 91,
toZ = 5
}
exit = {x=175, y=84, z=7}

if getPlayerGuildName(cid) ~= "" then
for x = room.fromX, room.toX do
for y = room.fromY, room.toY do
for z = room.fromZ, room.toZ do

end
end
end

local thing = getTopCreature({x=x,y=y,z=z}).uid
if isPlayer(thing) then
doTeleportThing(thing, exit, false)
end

Don`t send erro message ate console, but don`t teleport the player too
 
Back
Top