[ Resolvido ] Aumenta O Heal Da Uh [7.92]

Dion
Por Dion
em Lixeira Pública

Dion

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 16/06/07Posts: 23

Script da minha uh

$this_var ="local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -10, 0, -10)

function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 3) * 2.3 - 25
max = (level * 2 + maglevel * 3) * 2.1

if min < 700 then
	min = 700
end

return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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


local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 1)
setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat2, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0, 10, 0, 10)

function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 3) * 2.4 - 25
max = (level * 2 + maglevel * 3) * 2.1

if min < 700 then
	min = 700
end

return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")


function onCastSpell(cid, var)
rand = math.random(90,100)
if rand == 99 then
doPlayerAddHealth(cid,100000)
doSendAnimatedText(getPlayerPosition(cid), "Healing!", TEXTCOLOR_LIGHTGREEN)
doCombat(cid, combat2, var)
else
doCombat(cid, combat, var)
end
end";

como que faço pra aumentar o Healing Dela ja mudei o "if min < 700 then min = 700 " dela e nao adiantou em nada o que devo mudar ?

vlw ae ;*

tibiaa4e

Ex amante de Tibia
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 18/12/05Posts: 912Gênero: MasculinoChar no Tibia: Kohzete

$this_var ="local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -10, 0, -10)

function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 3) * 2.3 - 25
max = (level * 2 + maglevel * 3) * 2.1

if min < 700 then
	min = 700
end

return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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


local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 1)
setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat2, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0, 10, 0, 10)

function onGetFormulaValues(cid, level, maglevel)
 min = (level * 2 + maglevel * 3) * 6.2 
max = (level * 2 + maglevel * 3) * 8.2

if min < 700 then
	min = 700
end

return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")


function onCastSpell(cid, var)
doSendAnimatedText(getPlayerPosition(cid), "Healing!", TEXTCOLOR_LIGHTGREEN)
doCombat(cid, combat, var)
end
end

 

 min = (level * 2 + maglevel * 3) * 2.4 - 25
max = (level * 2 + maglevel * 3) * 2.1

 

pra começar o max ta menor q o minimo

 

ai não vai dar certo nunca neh...

deixe

 

 min = (level * 2 + maglevel * 3) * 6.2 
max = (level * 2 + maglevel * 3) * 8.2

 

ai vai ajustando.

Aposentado de OTserver e Tibia

Meus melhores tutoriais
Enciclopédia Pasta Data
Tutorial de quest

DaNDaNrOxX

oi mosso
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 18/01/08Posts: 1455Char no Tibia: Saint Claire

Dúvida Sanada,

:button_cancel: Tópico Fechado

 

 

Entrada na equipe: 23/10/2008 Cargo: Estagiário

Promoção: 25/11/2008 Cargo: Moderador

Promoção: 21/10/2009 Cargo: Coordenador

Remoção: 09/05/2010 Motivo: Estudos

Retorno: 15/11/2010 Cargo: Moderador

Remoção: 20/12/2012.