• 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!

Windows help (gate of expertise)

ibrahimzxz

New Member
Joined
Jan 2, 2015
Messages
53
Reaction score
1
hi , can any one help me to make a gate of expertise , like putting the level to enter the quest?
 
Open map editor, right click on door, hit propties, and where it says actionID, add 1000 + level required to enter. So if you want level 50 door, put actionID as 1050
 
Open map editor, right click on door, hit propties, and where it says actionID, add 1000 + level required to enter. So if you want level 50 door, put actionID as 1050
ok ty, but if i want to put the door with any level ? i should put only (1000) without any other numbers?
 
Then just try placing the actionID as 1001 and see what happens. No player starts out as level 0, so Im not sure if making the actionID will cause any issues or not.
 
if you want a door with high level more than 999
then here:
tested for tfs 0.4

f.ex: level 2000
level2000.lua
Code:
function onUse(cid, item, frompos, item2, topos)
         if getPlayerLevel(cid) >=  2000 then
            pos = getPlayerPosition(cid)
            if pos.x == topos.x then
               if pos.y < topos.y then
                  pos.y = topos.y + 1
               else
                  pos.y = topos.y - 1
               end
            elseif pos.y == topos.y then
                   if pos.x < topos.x then
                      pos.x = topos.x + 1
                   else
                      pos.x = topos.x - 1
                   end
            else
                doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
            return true
            end
            doTeleportThing(cid,pos)
            doSendMagicEffect(topos,12)
         else
            doPlayerSendTextMessage(cid,22,'You need level 2000 or more!')
         end
         return true
end

and add line in actions.xml

<action actionid="9876" event="script" value="level2000.lua"/>
 
Back
Top