Sirion_Mido
Experienced Member
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:
then in your data/actions/actions.xml
post the following:
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"/>