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

[Request] Voc. req. Tile

Tachi

New Member
Joined
Aug 4, 2007
Messages
376
Reaction score
2
Location
USA, Missouri
As the title says im wanting a tile that requires a sertain vocation to only pass on it..

Like the level and premmy one on rook..

Anyways i tryed making it myself.. and it didnt work out to well.. i dont know much about coding.. tryed mixing a voc req door with a tile..

Anyways im sure it's some where in this forum sorry for posting but i looked in this section for about an hour and 1/2.. so anwyays any ideas?..

If anything maybe you can help me make my own..
 
I ain't got the time to make an advanced vocation tile atm, but this should do the trick.
PHP:
local config = {
     vocation = 1,
     refusePos = {x = 100 , y = 100 , z = 7}
}

function onStepIn(cid, item, pos)
     if getPlayerVocation(cid) ~= config.vocation then
          doTeleportThing(cid, config.refusePos)
          doSendMagicEffect(getCreaturePosition(cid), 12)
     end
     return TRUE
end
 
Back
Top Bottom