My script don't have an error, but don't work...
Code:
---by BomBa---
--------------
function onStepIn(cid, item, position, fromPosition)
local stonePos = {x=1765, y=1696, z=9}
if ((getPlayerSkill(cid, 1) <= 50) or (getPlayerSkill(cid, 2) <= 50) or (getPlayerSkill(cid, 3) <= 50) or (getPlayerSkill(cid, 4) <= 50) or (getPlayerSkill(cid, 5) <= 50) or (getPlayerSkill(cid, 6) <= 50) or (getPlayerSkill(cid, 7) <= 50)) then
doMoveCreature(cid, NORTH)
doCreateItem(1304, 1, stonePos)
addEvent(autoExit, 300 * 1000, cid)
else
doMoveCreature(cid, SOUTH)
end
return TRUE
end
function autoExit(cid)
local playerPos = getCreaturePosition(cid)
local toPos = {x=1765, y=1697, z=9}
local stonePos = {1765, y=1696, z=9, stackpos=1}
local getStone = getThingfromPos(stonePos)
doTeleportThing(cid, toPos)
doSendMagicEffect(toPos, CONST_ME_TELEPORT)
doRemoveItem(getStone.uid, 1)
return TRUE
end