Joriku
Working in the mines, need something?
Alright, been sitting with this for too long now..
Why is it shooting onto the monster but not dealing any damage?
Why is it shooting onto the monster but not dealing any damage?
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 6) + (magicLevel * 8) + 50
local max = (level / 6) + (magicLevel * 12) + 85
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
local spell = Spell(SPELL_RUNE)
function spell.onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
spell:name("quest sd")
spell:runeId(2263)
spell:group("attack")
spell:id(24)
spell:level(8)
spell:magicLevel(1)
spell:needTarget(true)
spell:isAggressive(false)
spell:allowFarUse(true)
spell:charges(0)
spell:vocation("sorcerer;true", "master sorcerer")
spell:register()