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

Mana Book

u have to change itemid and level and this script will add more 500 mana forever
local cfg =
{
level = 25,
itemid = xxxx,
newMana = 500
}
local storage = 14580
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (item.itemid == cfg.itemid)then
if getPlayerLevel(cid) >= cfg.level then
if getPlayerStorageValue(cid, storage) == -1 then
setCreatureMaxMana(cid, (getCreatureMaxMana(cid)+cfg.newMana))
setPlayerStorageValue(cid, storage, 1)
doSendAnimatedText(getCreaturePosition(cid), "MANA!",TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
doCreatureSay(cid, "You have recieved ".. cfg.newMana .." extra mana points, now your mana is ".. getCreatureMaxMana(cid) .."!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid)
else
doPlayerSendCancel(cid, "You have already used this before.")
end
else
doPlayerSendCancel(cid, "Your level is not high enough.")
end
return TRUE
end
end
 
Back
Top