johnsamir
Advanced OT User
how to make uh trap in lua + and with hotkeys? i mean get this feature working even is there's use in yourself hotkey function. would be possible if so can you show me how please?
uh trap which means that the last guy on a player stack should be on top of everyone.( don't care much about this, )but this:
the last guy in stack or the top one, is only one ALLOWED TO HEALHIMSELF AND OTHERS IN THE STACK ( Because runes should affect everyone in the stack
server 8.6 -1.5
this is the healing intense rune file
uh trap which means that the last guy on a player stack should be on top of everyone.( don't care much about this, )but this:
the last guy in stack or the top one, is only one ALLOWED TO HEALHIMSELF AND OTHERS IN THE STACK ( Because runes should affect everyone in the stack
server 8.6 -1.5
this is the healing intense rune file
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
combat:setParameter(COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
function onGetFormulaValues(player, level, magicLevel)
local min = (level / 5) + (magicLevel * 3.2) + 20
local max = (level / 5) + (magicLevel * 5.4) + 40
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end