Heya otlanders it's me again. Can someone make this script so it gives 50 more mana every level?
Thanks before hand!
Thanks before hand!
Code:
-- you want not to add health just keep min and max = 0
local vocation = {
[{1,5}] = {manamin = 1,manamax = 1, healthmin = 0 , healthmax= 0}, -- [vocation,promotedvocation] = {mini = minimum heal, maxi = maximum heal}
[{2,6}] = {manamin = 1,manamax = 1, healthmin = 0 , healthmax= 0},
[{3,7}] = {manamin = 1,manamax = 1, healthmin = 40, healthmax= 50},
[{4,8}] = {manamin = 1,manamax = 1, healthmin = 20 , healthmax= 40}
}
function onUse (cid, item, frompos, topos)
for k,v in pairs(vocation) do
if isInArray(k,getPlayerVocation(cid)) then
doCreatureSay(cid,"Vocation Rune!",19)
doCreatureAddMana(cid,math.random(v.manamin,v.manamax))
doCreatureAddHealth(cid,math.random(v.healthmin,v.healthmax))
doSendMagicEffect(getThingPos(cid),12)
end
end
return true
end