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

Action Mixed Rune that heal more if have more level and magic level

Sirion_Mido

Experienced Member
Joined
Jul 22, 2012
Messages
579
Reaction score
43
Location
E-G-Y-P-T
now this script for rune called : mixed rune
this rune healing mana and health like great spirit potion
but this script , if you reach more level and magic level it will heal more etc...

here we are:
in your data/actions/scripts
make file name mixed.lua
and post the following:
Lua:
local vocations = {3,7} 
 
function onUse(cid, item, frompos, item2, topos)
 
if isInArray(vocations,getPlayerVocation(cid)) then
 
doSendMagicEffect(topos,1)
doCreatureSay(cid,"Mixed Rune",19)
mini = (getPlayerLevel(cid) * 2.5 + getPlayerMagLevel(cid) * 3) * 4.6 - 25
maxi = (getPlayerLevel(cid) * 2.5 + getPlayerMagLevel(cid) * 3) * 5.2
 
    if doCreatureAddHealth(cid, math.random(mini, maxi)) == LUA_ERROR or doPlayerAddMana(cid, math.random(mini, maxi)) == LUA_ERROR then
        return FALSE
    end
else
 
        doPlayerSendCancel(cid, 'Only Paladins can use this item.')
end
    return true
end

then in your data/actions/actions.xml
post the following:
XML:
	<action itemid="ITEMIDYOUWANT" event="script" value="mixed.lua"/>
 
Back
Top