• 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 Envenom Rune version 7.6 old

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
860
Solutions
7
Reaction score
118
Location
Brazil
YouTube
caruniawikibr
hello, I would like to know if anyone knows how to make or has the script for this rune, I'm using nekiro's tfs 1.5, and I tried to adapt the 7.6 rune but it's not working, when using the rune only the spell is cast he doesn't do damage


Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HITBYPOISON)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_POISON)

function onCastSpell(creature, variant)
    local min = (creature:getLevel() / 80) + (creature:getMagicLevel() * 0.55) + 6
    local max = (creature:getLevel() / 80) + (creature:getMagicLevel() * 0.75) + 7
    local damage = math.random(math.floor(min) * 1000, math.floor(max) * 1000) / 1000
    for _, target in ipairs(combat:getTargets(creature, variant)) do
        creature:addDamageCondition(target, CONDITION_POISON, DAMAGELIST_LOGARITHMIC_DAMAGE, target:isPlayer() and damage / 2 or damage)
    end
    return true
end
 
Back
Top