• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Action?] Skill door. / Gate of skill

Joined
Apr 22, 2008
Messages
114
Reaction score
10
Is it possible to make a door that would require a certain skill level to pass. like 50 fishing to get past this tile or door. or something like that. =] help please. will Reppp+++++

thanks.
 
Hmm try
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local skillid = 1-6 -- choose here which skill 

if getPlayerSkill(cid, skillid) == 100 then
end
return true
end
else
doPlayerSendCancel(cid, "Sorry, your skills is not high enough.")

and ML
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

if getPlayerMagLevel(cid) == 100 then
end
return true
end
else
doPlayerSendCancel(cid, "Sorry, your magic level is not high enough.")
 
Back
Top