PeeWee
Minha UNICA duvida é como fazer uma magia dar 2 ataques, exemplo: Double Slap ( Tapa Duplo ).
Coloquei assim no m1.
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 148)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 148)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.5, 0, -3.0, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 148)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 148)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.5, 0, -3.0, 0)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 600, parameters)
doCreatureSay(cid,"Double Slap", TALKTYPE_SAY)
end
["Clefable"] = {x = {
m1 = combat1, combat2
spell = "Double Slap",
minLv = 55
}
},
Como resolvo esse dilema Pewee.
desse jeito nao deu =\.