So I've tried looking and haven't found anything.. not the best with scripting a whole thing myself like this. I've probably missed something easy, too.. :/
Can anyone help me with a level based attack rune?
So far, this is the rune:
It's great for mages, but like you can see, I need it to hit the same amount no matter what vocation. If you're level 300, you'll hit the same amount as any other vocation for example.
Thanks!
Can anyone help me with a level based attack rune?
So far, this is the rune:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_HOLY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -13, -18, -18, -35)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
It's great for mages, but like you can see, I need it to hit the same amount no matter what vocation. If you're level 300, you'll hit the same amount as any other vocation for example.
Thanks!