• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Again offline unique training room

nevix

Tunzodus.net
Joined
Mar 31, 2010
Messages
356
Reaction score
62
Location
Lithuanian
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 :)
 
You added actionid in the teleport, uniqueid in the movements.xml line.
Also don't add a teleport position in the item, the scripts already teleports you to the right place.
 
Back
Top