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

Solved Manarune

First Go to data/Action/action.xml add
Code:
<action itemid="2312" script="manarune.lua"/>

Then go to Data/Action/scripts and make a Lua File called "Manarune" Add this inside
Code:
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 0 then
doSendMagicEffect(topos,61)
doCreatureSay(cid,"Third Mana!",19)
doPlayerAddMana(cid, 1500)
if item.type > 1 then
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.")
end
return 1
end
 
Use this insted...
Code:
function onUse(cid, item, frompos, item2, topos)
    if(not isPlayer(cid)) then
        return true
    end
    if(isPlayer(cid)) then
        doSendMagicEffect(topos, 61)
        doCreatureSay(cid, "Third Mana!", 19)
        doPlayerAddMana(cid, 1500)
    else
        doSendMagicEffect(frompos, 2)
        doPlayerSendCancel(cid, "You can only use this on players!")
    end
return true
end
WibbenZ
 

Similar threads

Back
Top