• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ uh trap but with hotkeys server 8.6 lua, possible?

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
1,009
Solutions
6
Reaction score
170
Location
Nowhere
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
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
 
Back
Top