nevix
Tunzodus.net
I'm using TFS 0.2.15 9.8-9.86
First picture:
http://2.imgland.net/egO09.png
Second:
http://2.imgland.net/8ycCJ_.png
When i go on this tile I am only just teleported no more? What's wrong?
Movement.xml
<movevent event="StepIn" uniqueid="55551" script="trainingroom.lua" />
trainingroom.lua:
function onStepIn(cid, item, position, fromPosition)
for i = 17000, 17002 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.', TALKTYPE_ORANGE_1)
doSendMagicEffect(position, CONST_ME_TELEPORT)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
return
end
end
doTeleportThing(cid, fromPosition, true)
doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1)
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
end
Help please
First picture:
http://2.imgland.net/egO09.png
Second:
http://2.imgland.net/8ycCJ_.png
When i go on this tile I am only just teleported no more? What's wrong?
Movement.xml
<movevent event="StepIn" uniqueid="55551" script="trainingroom.lua" />
trainingroom.lua:
function onStepIn(cid, item, position, fromPosition)
for i = 17000, 17002 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.', TALKTYPE_ORANGE_1)
doSendMagicEffect(position, CONST_ME_TELEPORT)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
return
end
end
doTeleportThing(cid, fromPosition, true)
doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1)
doSendMagicEffect(fromPosition, CONST_ME_TELEPORT)
end
Help please