function tsubi(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi")
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end
local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 400, parameters)
addEvent(onCastSpell3, 500, parameters)
addEvent(onCastSpell3, 600, parameters)
return true
end
Pergunta
Gadux 0
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 610)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 235)
function tsubi(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi")
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 610)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 235)
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 610)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 235)
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
local combat4 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 610)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 235)
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
local combat5 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 610)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 235)
function tsubi1(cid, level, maglevel)
local min = -(level * 0.0+ maglevel * 100 + 100)
local max = -(level * 0.0+ maglevel * 100 + 100)
return min, max
end
setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "tsubi1")
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end
local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 400, parameters)
addEvent(onCastSpell3, 500, parameters)
addEvent(onCastSpell3, 600, parameters)
return true
end
Link para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados