• 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!

Lua Paralyze Rune

biaggio12

Member
Joined
Aug 22, 2009
Messages
63
Reaction score
10
Hi there, i wonder if someone can tell me parameters of function
setFormula(w,x,y,z)
Im editing paralyze rune on my OT, here is the code. Wonder how to make it RL tibia like
TFS 1.2

Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 20000)
condition:setFormula(-1, 80, -1, 80)
combat:addCondition(condition)

function onCastSpell(creature, variant, isHotkey)
    if not combat:execute(creature, variant) then
        return false
    end

    creature:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
    return true
end
 
condition:setFormula(mina, minb, maxa, maxb)

so yeah, min is 80% max is 80% in this case.

mina is -1 because its not used here.
 
Back
Top