How to do spell "ultimate explosion" with paralyze?

Loremaster7

New Member
Joined
Oct 16, 2017
Messages
27
Best answers
0
Reaction score
4
"exevo gran mas vis" para "exevo gran mas ina"
não funciona o paralyze ...

(my distro is The OTX Server Version: (2.X.S - 4) Otserver 7.72)

my code:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.9, -0, -1.5, -0)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000,1)
setConditionFormula(condition, -1.0, 0, -1.0, 0)
setCombatCondition(combat, condition)

local arr = {
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
    {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Last edited:

Apollos

Dude who does stuff
Joined
Apr 22, 2009
Messages
748
Best answers
110
Reaction score
495
Location
United States
"exevo gran mas vis" to "exevo gran mas ina"
don't works the paralyze...

My code:

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.9, -0, -1.5, -0)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000,1)
setConditionFormula(condition, -1.0, 0, -1.0, 0)
setCombatCondition(combat, condition)

local arr = {
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
    {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
    {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
    {0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
    {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
    {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
You should post your distro version within support threads to get the correct help.

Only thing I can see is your have an extra parameter set on the ticks part. Or maybe your formula is wrong and messing things up. Here's an example of one done in a TFS 0.4 script (assuming this is your version).

Lua:
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -1, 40, -1, 40)
setCombatCondition(combat, condition)
 
OP
Loremaster7

Loremaster7

New Member
Joined
Oct 16, 2017
Messages
27
Best answers
0
Reaction score
4
Sorry Apollos, my distro is The OTX Server Version: (2.X.S - 4) Otserver 7.72

not work..

35359

Wait, i go make other test, i'am GM i don't see this...
 
Last edited:
OP
Loremaster7

Loremaster7

New Member
Joined
Oct 16, 2017
Messages
27
Best answers
0
Reaction score
4
You should post your distro version within support threads to get the correct help.

Only thing I can see is your have an extra parameter set on the ticks part. Or maybe your formula is wrong and messing things up. Here's an example of one done in a TFS 0.4 script (assuming this is your version).

Lua:
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition, -1, 40, -1, 40)
setCombatCondition(combat, condition)
LOL this work!!!! thank you hehe ;)

35360
 
Top