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
How i can fix that
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