Bom, o client e' 7.6.
Seguinte, eu estou tentando criar 1 magia, porem sem sucesso..
A magia e' a seguinte:
A magia e' dividida em 4 heals diferentes ao passar do tempo... 1 daria 1 heal equivalente a EXURA VITA... depois, com 1 delay de 2 seg, daria 1 heal de 500, 20 vezes, depois, daria 1 heal de 450, 15 vezes, e por ultimo, um heal de 400, 5 vezes. Eu sou iniciante em fazer scripts, eu fiz 1 mas, toda vez que eu uso a magia, o server da debug e tem que reiniciar... ESTE:
Alguem poderia me ajudar?
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_ENERGIE
animationColor = GREEN
offensive = false
drawblood = false
UltimateHealingObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
SubUltimateHealingObject1 = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
SubUltimateHealingObject2 = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
SubUltimateHealingObject3 = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
-- n = tonumber(var) -- try to convert it to a number
-- if n ~= nil then
-- bugged
-- UltimateHealingObject = var+0
-- UltimateHealingObject = var+0
-- UltimateHealingObject = 0
-- UltimateHealingObject = 0
-- else
UltimateHealingObject.minDmg = (level * 2 + maglv * 3) * 1.5 - 30
UltimateHealingObject.maxDmg = (level * 2 + maglv * 3) * 2.0
SubUltimateHealingObject1.minDmg = (level * 2 + maglv * 3) * 1.5 - 30
SubUltimateHealingObject1.maxDmg = (level * 2 + maglv * 3) * 2.0
SubUltimateHealingObject2.minDmg = (level * 2 + maglv * 3) * 1.5 - 30
SubUltimateHealingObject2.maxDmg = (level * 2 + maglv * 3) * 2.0
SubUltimateHealingObject3.minDmg = (level * 2 + maglv * 3) * 1.5 - 30
SubUltimateHealingObject3.maxDmg = (level * 2 + maglv * 3) * 2.0
UltimateHealingObject.minDmg = (level * 2 + maglv * 3) * 1.5 - 30
if UltimateHealingObject.minDmg < 250 then
UltimateHealingObject.minDmg = 250
end
UltimateHealingObject.maxDmg = (level * 2 + maglv * 3) * 2.0
if UltimateHealingObject.maxDmg < 400 then
UltimateHealingObject.maxDmg = 400
end
-- end
return doTargetMagic(cid, centerpos, UltimateHealingObject:ordered(),
2000, 1, cid, centerpos, SubUltimateHealingObject1:ordered(),
2000, 2, cid, centerpos, SubUltimateHealingObject2:ordered(),
2000, 10, cid, centerpos, SubUltimateHealingObject3:ordered(),
3)
end