Ir para conteúdo
  • 0

Alguem Me Ajuda?


victor0x

Pergunta

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

  • 0

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

  • 0

@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

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...