Ir para conteúdo
  • 0

Ajuda A Passa Esse Script Pra 8.60


maiconskavurska

Pergunta

Salve, To Eu Aqui Mais Uma Veis Pra Pedi a Ajuda De Vocês...

Eu To Com Esse Script De 7.92 Eu Gostaria De Passa Ele Pra 8.60

e Se Possível Me Explica Como Configuro Ele.

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

skill = getPlayerSkill(cid,0)

min = -((skill*0)+level)

max = -((skill*8)+level)

return min, max

end

 

setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 31)

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

skill = getPlayerSkill(cid,0)

min = -((skill*42)+level)

max = -((skill*47)+level)

return min, max

end

 

setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 31)

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

skill = getPlayerSkill(cid,0)

min = -((skill*49)+level)

max = -((skill*53)+level)

return min, max

end

 

setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local condition = createConditionObject(CONDITION_EMO)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)

addDamageCondition(condition, 100, 3000, -120)

setCombatCondition(combat2, condition)

 

local condition = createConditionObject(CONDITION_EMO)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)

addDamageCondition(condition, 100, 3000, -120)

setCombatCondition(combat3, condition)

 

function onUseWeapon(cid, var)

Critical = math.random(70,100)

if Critical > 80 then

doSendAnimatedText(getPlayerPosition(cid), "Critical!", TEXTCOLOR_LIGHTGREY)

doCombat(cid, combat2, var)

end

 

Critical = math.random(100,100)

if Critical < 2 then

doPlayerSay(cid,"For Honor!",16)

doPlayerAddHealth(cid, math.random(1000, 10000))

doSendAnimatedText(getPlayerPosition(cid), "Critical!", TEXTCOLOR_LIGHTGREY)

doCombat(cid, combat3, var)

else

doCombat(cid, combat1, var)

end

end

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

  • 0

acho que é so essa condition "CONDITION_EMO" que n tem no 8.60,substitua por uma equivalente(se n souber quais são as codition,olhe no arquivo data/lib/000-constant)

tem por CONDITION_PHYSICAL no lugar dele(o CONDITION_EMO aparece em duas linhas substitua os dois)

Link para o comentário
Compartilhar em outros sites

  • 0

Ficaria Assim ?

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

skill = getPlayerSkill(cid,0)

min = -((skill*0)+level)

max = -((skill*8)+level)

return min, max

end

 

setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 31)

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

skill = getPlayerSkill(cid,0)

min = -((skill*42)+level)

max = -((skill*47)+level)

return min, max

end

 

setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 31)

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

skill = getPlayerSkill(cid,0)

min = -((skill*49)+level)

max = -((skill*53)+level)

return min, max

end

 

setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local condition = createConditionObject(CONDITION_PHYSICAL)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)

addDamageCondition(condition, 100, 3000, -120)

setCombatCondition(combat2, condition)

 

local condition = createConditionObject(CONDITION_PHYSICAL)

setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)

addDamageCondition(condition, 100, 3000, -120)

setCombatCondition(combat3, condition)

 

function onUseWeapon(cid, var)

Critical = math.random(70,100)

if Critical > 80 then

doSendAnimatedText(getPlayerPosition(cid), "Critical!", TEXTCOLOR_LIGHTGREY)

doCombat(cid, combat2, var)

end

 

Critical = math.random(100,100)

if Critical < 2 then

doPlayerSay(cid,"For Honor!",16)

doPlayerAddHealth(cid, math.random(1000, 10000))

doSendAnimatedText(getPlayerPosition(cid), "Critical!", TEXTCOLOR_LIGHTGREY)

doCombat(cid, combat3, var)

else

doCombat(cid, combat1, var)

end

end

Link para o comentário
Compartilhar em outros sites

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