Ahh not working:
i will show you:
first image:
http://2.imgland.net/WuuySE.png
when i enter this teleport i got:
Second image:
http://1.imgland.net/_gnWfa.png
training area:
http://2.imgland.net/NdOhJK.png
<movevent event="StepIn" uniqueid="55551" script="trainingroom.lua" />
Trainingroom.lua:
function onStepIn(cid, item, position, fromPosition)
for i = 17000, 17122 do
local pos = getThingPos(i)
if not isPlayer(getTopCreature(pos).uid) then
doTeleportThing(cid, pos)
doCreatureSay(cid, 'Using a tool to cast spells or to keep your character online is ok.', 19, false, cid)
doSendMagicEffect(position, CONST_ME_TELEPORT)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
return
end
end
doTeleportThing(cid, fromPosition, true)
doCreatureSay(cid, 'All training slots are taken', 19, false, cid)
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
end
What wrong? Help please