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

Need help with a script!

Schizo

New Member
Joined
Jul 31, 2012
Messages
15
Reaction score
0
If player level 200+ they carn't use scroll here is my .lua



Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
doRemoveItem(item.uid)
doPlayerAddLevel(cid, 50)
return true
end

thanks :)
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) > 200 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You are to high level to use this scroll!")
else
doRemoveItem(item.uid)
doPlayerAddLevel(cid, 50)
end
return true
end
 
Back
Top