Ir para conteúdo

[ Resolvido ]


Khost

Posts Recomendados

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)
end

local 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)
end

local function onCastSpell2(parameters)
return doCombat(parameters.cid, parameters.combat2, parameters.var)
end

function 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 por Khost
Link para o comentário
Compartilhar em outros sites

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

Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

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