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

Looking for Script 'Scroll of Shielding'

Credits: Mizo.

Create a new file called scrollofshielding.lua
Create it in, server/data/actions/scripts/CUSTOM

After you create it, copy/paste this code..

Code:
local itemID = [COLOR="Red"]2345[/COLOR]
local mls = [COLOR="Blue"]3 ---- How much mlvls it will give[/COLOR].
local maglevel =[COLOR="Blue"] 40 -------From this maglevel and less he can [/COLOR]use this item.
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemID and getPlayerMagLevel(cid) <= maglevel then
doCreatureSay(cid, "You just used an Magic Level Scroll!!!" ,19)
doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid) + mls))
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "Sorry but you are to high maglvl to use this scroll")
end
return 1
end

Add this in Server/Data/Actions/Actions.xml

Code:
<action itemid="[COLOR="Red"]2345[/COLOR]" script="Custom/scrollofshielding.lua"/>

ItemID can be changed to the item you want it to be clicked, to increase your magic-level, current ItemID is: 2345

Tested on Crying damson 0.3.4 + 0.3.5!

Rep++
Enjoy!
 
Back
Top