victor0x 0 Postado Novembro 12, 2010 Share Postado Novembro 12, 2010 local combat1 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local combat2 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition1 = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, 220000) setConditionFormula(condition, 700, -56000, 700, -56000) setCombatCondition(combat, condition) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000000) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 500) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 500) setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 500) setConditionParam(condition, CONDITION_PARAM_BUFF, true) setCombatCondition(combat1, condition1) setCombatCondition(combat2, condition2) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Link para o comentário Compartilhar em outros sites More sharing options...
0 joaohd 200 Postado Novembro 12, 2010 Share Postado Novembro 12, 2010 Tente assim: local combat1 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local combat2 = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition1 = createConditionObject(CONDITION_HASTE) setConditionParam(condition, CONDITION_PARAM_TICKS, 220000) setConditionFormula(condition, 700, -56000, 700, -56000) setCombatCondition(combat, condition) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000000) setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 500) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 500) setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 500) setConditionParam(condition, CONDITION_PARAM_BUFF, true) setCombatCondition(combat1, condition1) setCombatCondition(combat2, condition2) function onCastSpell(cid, var) return doCombat(cid, combat1, var), doCombat(cid, combat2, var) end flw Link para o comentário Compartilhar em outros sites More sharing options...
0 FD CODE 16 Postado Novembro 12, 2010 Share Postado Novembro 12, 2010 @apocarai esqueceu dos numeros @victorx0 tenta assim local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD) setCombatParam(combat1, COMBAT_PARAM_AGGRESSIVE, false) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, false) local condition1 = createConditionObject(CONDITION_HASTE) setConditionParam(condition1, CONDITION_PARAM_TICKS, 220000) setConditionFormula(condition1, 700, -56000, 700, -56000) setCombatCondition(combat1, condition1) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, 10000000) setConditionParam(condition2, CONDITION_PARAM_SKILL_SHIELDPERCENT, 500) setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 500) setConditionParam(condition2, CONDITION_PARAM_SKILL_MELEEPERCENT, 500) setConditionParam(condition2, CONDITION_PARAM_BUFF, true) setCombatCondition(combat1, condition1) setCombatCondition(combat2, condition2) function onCastSpell(cid, var) return doCombat(cid, combat1, var), doCombat(cid, combat2, var) end Link para o comentário Compartilhar em outros sites More sharing options...
0 victor0x 0 Postado Novembro 12, 2010 Autor Share Postado Novembro 12, 2010 Valeu ae deu tudo certinho Link para o comentário Compartilhar em outros sites More sharing options...
0 TheAllan11 0 Postado Setembro 29, 2011 Share Postado Setembro 29, 2011 Dahora essa magia Ai Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
victor0x 0
local combat1 = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local combat2 = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition1 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 220000)
setConditionFormula(condition, 700, -56000, 700, -56000)
setCombatCondition(combat, condition)
local condition2 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000000)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 500)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat1, condition1)
setCombatCondition(combat2, condition2)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Link para o comentário
Compartilhar em outros sites
4 respostass a esta questão
Posts Recomendados