Ir para conteúdo

[Resolvido] Spell Com 2" Condition"


akiraspirith

Posts Recomendados

eu quero fazer uma magia com 2 condições tipo, aumentar skills e haste, soh que quando eu uso soh da o Haste, se eu tiro a configuração do haste ai da o do skills, o script eh esse aki:

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)

local condition = createConditionObject(CONDITION_ATTRIBUTES)

setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 50)

setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 50)

setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 50)

setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 50)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

setCombatCondition(combat, condition)

 

 

function onCastSpell(cid, var)

return doCombat(cid,combat,var)

end

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_HASTE)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

setConditionFormula(condition, 0.3, -24, 0.3, -24)

setCombatCondition(combat, condition)

 

function onCastSpell(cid, var)

doCombat(cid, combat, var)

end

 

alguem me ajuda a configurar para pegar as 2 condition na msm spell

Link para o comentário
Compartilhar em outros sites

Deve ser isso:

 

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, FALSE)



local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_SKILL_SWORD, 50)
setConditionParam(condition, CONDITION_PARAM_SKILL_AXE, 50)
setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 50)
setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCE, 50)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
setCombatCondition(combat, condition)

local condition2 = createConditionObject(CONDITION_HASTE)
setConditionParam(condition2, CONDITION_PARAM_TICKS, 20000)
setConditionFormula(condition2, 0.3, -24, 0.3, -24)
setCombatCondition(combat2, condition2)


function onCastSpell(cid, var)
doCombat(cid, combat, var), doCombat(cid, combat2, var) 
end

 

flw

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...