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

remeres map editor error. Help please.

soul destroyer

New Member
Joined
May 25, 2009
Messages
87
Reaction score
0
When i try to put a gate of expertise with an action id more than 65535 it doesnt give the id u put .. its maxed . it gives u back 65535. Can someone help me out?
 
Last edited:
Give door action ID 8226
In actions.xml add
Code:
    <action actionid="8226" event="script" value="10kdoor.lua"/>
10kdoor.lua
Lua:
local level = 10000
  function onUse(cid, item, frompos, item2, topos)
         if getPlayerLevel(cid) >= level 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 .." level to pass")
         end
         return true
end
Rep++
 
I think it might work but what about many doors ... do i choose any action id ... any ways thx dude ur the one who under stood me rep++ even if it didnt work but i hope it does


Thread Can Be Closed ... Thx ...
 
Last edited:
Back
Top