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

Spell Paralyze Rune (just like in RL), delay added

Hello,in tfs 0.3.6 data/lib/data.lua lua that is not where I can fix?


PHP:
dofile(getDataDir().. "lib/exahustion.lua



thz.
 
If i make diferent exhaustion for potions, paralyze will afect this exhaustion too?
 
Last edited:
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 19000)
setConditionFormula(condition, -1, 55, -1, 55)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
local paradelay = getConfigInfo('paralyzeDelay')
    if isPlayer(variantToNumber(var)) == TRUE then
        return doCombat(cid, combat, var), exhaustion.set(variantToNumber(var), 30030, paradelay/1000), doSendMagicEffect(getCreaturePosition(cid)
    else
        return doCombat(cid, combat, var), doSendMagicEffect(getCreaturePosition(cid)
    end
end
Improved power of paralysis and removed the green graphics that uses Paralyze
 
i have bug in that script

PHP:
[0:50:14.910] [Error - Spell Interface] 
[0:50:14.910] data/spells/scripts/support/paralyze rune.lua:onCastSpell
[0:50:14.910] Description: 
[0:50:14.910] data/spells/scripts/support/paralyze rune.lua:13: attempt to perform arithmetic on local 'paradelay' (a nil value)
[0:50:14.910] stack traceback:
[0:50:14.910] 	data/spells/scripts/support/paralyze rune.lua:13: in function <data/spells/scripts/support/paralyze rune.lua:10>
 
Doesn't work at TFS 0.3.6PL1 ... i did all what lucasterra wrote in instruction (without first point - lib\data) and nothing.
I must paste my paralyze.lua, because when i use your paralyze (from first post) I:
1) When i've got 2k+ mana paralyze takes mana.
2) When i've got 2k+ mana paralyze rune disappears
3) When i've got -2k mana paralyze doesn't take mana.
4) When i've got -2k mana paralyze rune doesn't dissapear.

Exh doesn't work, please help i did all what is in instruction!
 
just 1 thing this will make Creatures paralyze stronger so 3 serpent spawns will make you unmovable so you know .. anyways good for war ot without monsters ;)
 
Back
Top