Like title says...
I was testing some custom spells on 0.3.5 like:
and it keeps giving debugs if u spam.
U can reproduce it removing exhaust of apocalypse and spamming it .. if ur server gives a little lag.. it will debug everyone on ur screen..
Is there a way to fix it? can be by source edit ..
srry about my troll english..
I was testing some custom spells on 0.3.5 like:
Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE,COMBAT_POISONDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT,CONST_ME_GREEN_RINGS)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -10.3, -184, -3, -30000)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE,COMBAT_POISONDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT,CONST_ME_GREEN_RINGS)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -20.3, -184, -3, -60000)
arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0},
{0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0},
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
arr2 = {
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0},
{0, 0, 1, 1, 0, 2, 0, 1, 1, 0, 0},
{0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
return true
end
U can reproduce it removing exhaust of apocalypse and spamming it .. if ur server gives a little lag.. it will debug everyone on ur screen..
Is there a way to fix it? can be by source edit ..
srry about my troll english..