• 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+ Paralyse Rune

Piifafa

Member
Joined
Apr 16, 2023
Messages
67
Reaction score
16
hello friends, I would like to know why when using the paralysis rune, my players do not get a skull? Because in fact they don't stay in battle mode, I tried 2 different scripts but I don't know what to do.

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

local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setSpeedDelta(-101)
combat:setCondition(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
 
hello friends, I would like to know why when using the paralysis rune, my players do not get a skull? Because in fact they don't stay in battle mode, I tried 2 different scripts but I don't know what to do.

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

local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setSpeedDelta(-101)
combat:setCondition(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
XML:
    <rune group="attack" spellid="54" name="Paralyze Rune" id="2278" aggressive="1" allowfaruse="1" charges="1" level="54" magiclevel="18" pzlock="1" cooldown="6000" groupcooldown="6000" mana="1400" needtarget="1" script="attack/paralyze_rune.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" showInDescription="0" />
    </rune>
it's in spells.xml
pzlock="1"
aggressive="1"
 
Lua:
    <rune name="Paralyze" id="3165" allowfaruse="1" charges="1" maglv="18" mana="900" needtarget="1" blocktype="solid" script="runes/paralyze.lua">
        <vocation name="Druid" />
        <vocation name="Elder Druid" showInDescription="0" />
    </rune>

mine is like that, / It doesn't work even if I put it on.
 
Last edited:
I just tested it and a skull appeared.

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 10000)
condition:setSpeedDelta(-101)
combat:setCondition(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

or

Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

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
 
Back
Top