TxxGBLxxT 1 Postado Janeiro 12, 2012 Share Postado Janeiro 12, 2012 Olhem a minha magia. local combat1 =createCombatObject() local combat2 =createCombatObject() local combat3 =createCombatObject() local combat4 =createCombatObject() local combat5 =createCombatObject() local combat6 =createCombatObject() local combat7 =createCombatObject() local combat8 =createCombatObject() local combat9 =createCombatObject() local combat10 =createCombatObject() local combat11 =createCombatObject() local combat12 =createCombatObject() local combat13 =createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat6 = createCombatObject() setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat7 = createCombatObject() setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat8 = createCombatObject() setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat9 = createCombatObject() setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA) setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1.9, -24, -2.9, 0) local combat10 = createCombatObject() setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat11 = createCombatObject() setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat11, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat12 = createCombatObject() setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat12, COMBAT_PARAM_EFFECT, CONST_ANI_NONE) setCombatParam(combat12, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -2.2, -24, -3.2, 0) local combat13 = createCombatObject() setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat13, COMBAT_PARAM_EFFECT,CONST_ME_EXPLOSIONHIT) setCombatParam(combat13, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -2.9, -24, -4.1, 0) arr1 = { {1,0,0,0,0,0,0,0,0,0,1}, {0,1,0,0,0,0,0,0,0,1,0}, {0,0,1,0,0,0,0,0,1,0,0}, {0,0,0,1,0,0,0,1,0,0,0}, {0,0,0,0,1,0,1,0,0,0,0}, {0,0,0,0,0,3,0,0,0,0,0}, {0,0,0,0,1,0,1,0,0,0,0}, {0,0,0,1,0,0,0,1,0,0,0}, {0,0,1,0,0,0,0,0,1,0,0}, {0,1,0,0,0,0,0,0,0,1,0}, {1,0,0,0,0,0,0,0,0,0,1}, } arr2 = { {1,0,0,0,0,0,0,0,0,0,1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1,1,1}, {1,1,1,1,1,3,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1}, {1,1,1,1,1,1,1,1,1,1,1}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) local area5 = createCombatArea(arr5) local area6 = createCombatArea(arr6) local area7 = createCombatArea(arr7) local area8 = createCombatArea(arr8) local area9 = createCombatArea(arr9) local area10 = createCombatArea(arr10) local area11 = createCombatArea(arr11) local area12 = createCombatArea(arr12) local area13 = createCombatArea(arr13) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) setCombatArea(combat4, area4) setCombatArea(combat5, area5) setCombatArea(combat6, area6) setCombatArea(combat7, area7) setCombatArea(combat8, area8) setCombatArea(combat9, area9) setCombatArea(combat10, area10) setCombatArea(combat11, area11) setCombatArea(combat12, area12) setCombatArea(combat13, area13) 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 local function onCastSpell6(parameters) doCombat(parameters.cid, parameters.combat6, parameters.var) end local function onCastSpell7(parameters) doCombat(parameters.cid, parameters.combat7, parameters.var) end local function onCastSpell8(parameters) doCombat(parameters.cid, parameters.combat8, parameters.var) end local function onCastSpell9(parameters) doCombat(parameters.cid, parameters.combat9, parameters.var) end local function onCastSpell10(parameters) doCombat(parameters.cid, parameters.combat10, parameters.var) end local function onCastSpell11(parameters) doCombat(parameters.cid, parameters.combat11, parameters.var) end local function onCastSpell12(parameters) doCombat(parameters.cid, parameters.combat12, parameters.var) end local function onCastSpell13(parameters) doCombat(parameters.cid, parameters.combat13, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13 } addEvent(onCastSpell1, 1, parameters) addEvent(onCastSpell2, 2, parameters) addEvent(onCastSpell3, 3, parameters) addEvent(onCastSpell4, 4, parameters) addEvent(onCastSpell5, 5, parameters) addEvent(onCastSpell6, 6, parameters) addEvent(onCastSpell7, 7, parameters) addEvent(onCastSpell8, 8, parameters) addEvent(onCastSpell9, 9, parameters) addEvent(onCastSpell10, 10, parameters) addEvent(onCastSpell11, 11, parameters) addEvent(onCastSpell12, 12, parameters) addEvent(onCastSpell13, 13, parameters) end Essa magia tem somente 3 hits, porém os 3 estão saindo juntos, eu queria saber como fazer para separá-los, como vocês podem ver tentei colocando hits em branco e nao deu certo. Se puderem ajudar eu agradeço. Link para o comentário Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Janeiro 13, 2012 Share Postado Janeiro 13, 2012 (editado) tudo depende do tempo ali em addEvent por exemplo 1000 = 1 segundo então faz um teste até ficar bom function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13 } addEvent(onCastSpell1, 1000, parameters) addEvent(onCastSpell2, 3000, parameters) addEvent(onCastSpell3, 5000, parameters) addEvent(onCastSpell4, 7000, parameters) addEvent(onCastSpell5, 9000, parameters) addEvent(onCastSpell6, 11000, parameters) addEvent(onCastSpell7, 13000, parameters) addEvent(onCastSpell8, 15000, parameters) addEvent(onCastSpell9, 17000, parameters) addEvent(onCastSpell10, 19000, parameters) addEvent(onCastSpell11, 21000, parameters) addEvent(onCastSpell12, 23000, parameters) addEvent(onCastSpell13, 25000, parameters) end vai vendo Editado Janeiro 13, 2012 por Vodkart Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados