Khost 0 Postado Julho 19, 2009 Share Postado Julho 19, 2009 (editado) no meu ot ta dando um bug que quando eu vo fala a magia ela não aparece e não tem exausted , eu ja vi tudo: local combat1 = createCombatObject()local combat2 = createCombatObject()local combat1 = createCombatObject()setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0)local condition1 = createConditionObject(CONDITION_HASTE)setConditionParam(condition1, CONDITION_PARAM_TICKS, 10000)--setConditionParam(condition1, CONDITION_PARAM_SPEED, 500)setConditionFormula(condition1, 1.8, -10, 2.1, -12)setCombatCondition(combat1, condition1)local combat2 = createCombatObject()setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)local condition2 = createConditionObject(CONDITION_ATTRIBUTES)setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000)setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, -200)setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, 100)setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE)setCombatCondition(combat2, condition2)local function onCastSpell1(parameters) return doCombat(parameters.cid, parameters.combat1, parameters.var)endlocal function onCastSpell2(parameters) return doCombat(parameters.cid, parameters.combat2, parameters.var)end local combat1 = createCombatObject()local combat2 = createCombatObject()local combat1 = createCombatObject()setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0)local condition1 = createConditionObject(CONDITION_PARALYZE)setConditionParam(condition1, CONDITION_PARAM_TICKS, 10000)--setConditionParam(condition1, CONDITION_PARAM_SPEED, -500)setConditionFormula(condition1, -1.3, -5, -1.5, -10)setCombatCondition(combat1, condition1)local combat2 = createCombatObject()setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)local condition2 = createConditionObject(CONDITION_ATTRIBUTES)setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000)setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, 65)setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, -200)setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE)setCombatCondition(combat2, condition2)local function onCastSpell1(parameters) return doCombat(parameters.cid, parameters.combat1, parameters.var)endlocal function onCastSpell2(parameters) return doCombat(parameters.cid, parameters.combat2, parameters.var)endfunction onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2 }addEvent(onCastSpell1, 1, parameters) addEvent(onCastSpell2, 2, parameters)end as duas magias n dao exausted e quando eu vo fala n aparece, só aparece o efeito, dela no char......... obrigado Editado Julho 20, 2009 por Khost Link para o comentário Compartilhar em outros sites More sharing options...
Sir'Falcon 0 Postado Julho 19, 2009 Share Postado Julho 19, 2009 Magia 1: local combat1 = createCombatObject()setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0) local condition1 = createConditionObject(CONDITION_HASTE) setConditionParam(condition1, CONDITION_PARAM_TICKS, 10000) --setConditionParam(condition1, CONDITION_PARAM_SPEED, 500) setConditionFormula(condition1, 1.8, -10, 2.1, -12) setCombatCondition(combat1, condition1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, -200) setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, 100) setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat2, condition2) 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(onCastSpell2, 1, parameters) return doCombat(cid, combat2, var) end Magia 2: local combat1 = createCombatObject()setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, 0) local condition1 = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition1, CONDITION_PARAM_TICKS, 10000) --setConditionParam(condition1, CONDITION_PARAM_SPEED, -500) setConditionFormula(condition1, -1.3, -5, -1.5, -10) setCombatCondition(combat1, condition1) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, 65) setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELD, -200) setConditionParam(condition2, CONDITION_PARAM_BUFF, TRUE) setCombatCondition(combat2, condition2) 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(onCastSpell2, 1, parameters) return doCombat(cid, combat1, var) end Se der certo, me avise. Link para o comentário Compartilhar em outros sites More sharing options...
Khost 0 Postado Julho 20, 2009 Autor Share Postado Julho 20, 2009 Sir'Falcon obrigado + uma vez funciono as spells tbm!! Obrigado! Link para o comentário Compartilhar em outros sites More sharing options...
DaNDaNrOxX 15 Postado Julho 21, 2009 Share Postado Julho 21, 2009 Dúvida Sanada, :button_cancel: Tópico Fechado Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados