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

Mana rune

Well, I don't see a lot of manarunes in 8.40 servers.. But I'll give you one

put this script in actions/scripts there you need to make a new .lua text call it manarune.lua
this you need to fill in the document


Code:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Mana...Ahh",16)
doPlayerAddMana(cid, 1000)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end

But also, one thing wrong with my script that I really can't fix because I don't know the item your gonna use.

Do you know the Item ID for the rune you will use for this manarune? If so, please give it to me so I can fix the script for you to use.

And one more thing, this thread should be moved to the LUA & XML Requests because it is about LUA.
 
Last edited:
Back
Top