• 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 Ot map editor need help!

nevix

Tunzodus.net
Joined
Mar 31, 2010
Messages
356
Reaction score
62
Location
Lithuanian
I want create unique training room system, eg: entering room and u being teleported in alone trainers room. How to do that?
 
Create a teleport with UID 1234 for example.
XML Code:

<movevent type="StepIn" uniqueid="1234" event="script" value="trainingroom.lua" />



Next thing to do is setting out UID's on the tiles where the player should stand after he or she gets teleported.

If you take a look at the picture, UID should be set in the middle. I hope you get the idea.



WHEN I Go on tile I got debug and tibia client shoutdown..



Send me a Private Message if you need any further help with this.

<<< CITATE



What uniq ids i should use, i dont understand? teleport uid: 1234, if I set tiles id 1234 its says dublicate unique ids? Help please.
 
Last edited:
Unique id 17000 till 17122 on the places Ninja showed with the picture (use each unique id 1x).
If you have less or more training places, edit the number in the script.
 
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
 
LUA:
doCreatureSay(cid, 'Using a tool to cast spells or to keep your character online is ok.', TALKTYPE_ORANGE_1)
LUA:
doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1)
 
Make the amount of unique ids in the script the same as the amount of your training places. Lets say you have 4 training places: 17000, 17001, 17002, 17003.
LUA:
for i = 17000, 17003 do
 
Awsome man u the best :)

- - - Updated - - -

In my WINDOWS Its everyhing ok but linux got this error:

forgottenserver: map.cpp:1224: void QTreeLeafNode::removeCreature(Creature*): Assertion `iter != creature_list.end()' failed.
 
Back
Top