christiandb
Member
Code:
local text = "Sorry you can't be teleported."
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 10070 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
doTransformItem(getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).uid, 1385)
else
doPlayerSendCancel(cid, text)
end
end
I get this error:
Code:
[20/11/2008 15:58:37] Lua Script Error: [MoveEvents Interface]
[20/11/2008 15:58:37] data/movements/scripts/Paradox/CreateStair.lua:onStepIn
[20/11/2008 15:58:37] luaGetThingFromPos(). Tile not found
Coördinates all are fine.
I tried this too:
Code:
local text = "Sorry you can't be teleported."
function onStepIn(cid, item, position, fromPosition)
if item.actionid == 10070 and getThingfromPos({x=32478, y=31906, z=7, stackpos=1}).itemid == 2782 and getThingfromPos({x=32478, y=31902, z=7, stackpos=1}).itemid == 1304 then
doTransformItem(10069, 1385)
else
doPlayerSendCancel(cid, text)
end
end
description:
It's a script of the paradox tower (the lowest floor). The script is supposed to check the sqm at the door if the grass growed there and then check if the stone is a stone (can be a stair too). If it is a stone then it has to transform it to stairs.
Last edited: