Seu problema no OTX
---------->
[6/5/2018 17:16:2] [Error - Action Interface]
[6/5/2018 17:16:2] data/actions/scripts/other/teleport.lua:onUse
[6/5/2018 17:16:2] Description:
[6/5/2018 17:16:2] attempt to index a number value
[6/5/2018 17:16:2] stack traceback:
[6/5/2018 17:16:2] [C]: in function 'doTileQueryAdd'
[6/5/2018 17:16:2] data/actions/scripts/other/teleport.lua:13: in function <data/actions/scripts/other/teleport.lua:4>
[6/5/2018 17:16:42] [Error - Action Interface]
[6/5/2018 17:16:42] data/actions/scripts/other/teleport.lua:onUse
[6/5/2018 17:16:42] Description:
[6/5/2018 17:16:42] attempt to index a number value
[6/5/2018 17:16:42] stack traceback:
[6/5/2018 17:16:42] [C]: in function 'doTileQueryAdd'
[6/5/2018 17:16:42] data/actions/scripts/other/teleport.lua:13: in function <data/actions/scripts/other/teleport.lua:4>
>>>>>>>>
eu usei este script
local UP_FLOORS = {1386, 3678, 5543, 8599, 10035}
local DRAW_WELL = 1369
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == DRAW_WELL and item.actionid ~= 100) then
return false
end
fromPosition.stackpos = STACKPOS_GROUND
if(isInArray(UP_FLOORS, item.itemid)) then
fromPosition.z = fromPosition.z - 1
fromPosition.y = fromPosition.y + 1
if(doTileQueryAdd(cid, fromPosition, 4, false) ~= RETURNVALUE_NOERROR) then
fromPosition.y = fromPosition.y - 2
end
else
fromPosition.z = fromPosition.z + 1
end
if(doTileQueryAdd(cid, fromPosition, 4, false) ~= RETURNVALUE_NOERROR) then
return false
end
local pos, dir = getCreaturePosition(cid), SOUTH
if(pos.x < fromPosition.x) then
dir = EAST
elseif(pos.x == fromPosition.x) then
if(pos.y == fromPosition.y) then
dir = getCreatureLookDirection(cid)
elseif(pos.y > fromPosition.y) then
dir = NORTH
end
elseif(pos.x > fromPosition.x) then
dir = WEST
end
doTeleportThing(cid, fromPosition, false)
doCreatureSetLookDirection(cid, dir)
return true
end
>>>
Dont Up
Suas imagens