Ir para conteúdo

[Ajuda] Spell Derruba O Server


maufrizzarin

Posts Recomendados

Bom , meu server eh 7.6, eu estou tentando criar 1 magia que cura, e da 20 sub heals de 500, 1 a cada 3 seg... porem ... ela derruba o server... ALGUEM SABE PQ?

attackType = ATTACK_NONE

animationEffect = NM_ANI_NONE

 

hitEffect = NM_ME_NONE

damageEffect = NM_ME_MAGIC_ENERGIE

animationColor = GREEN

offensive = false

drawblood = false

 

LightHealingObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)

LightHealingObject1 = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 500, 500)

 

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

LightHealingObject.minDmg = 0

LightHealingObject.maxDmg = 0

LightHealingObject1.minDmg = 0

LightHealingObject1.maxDmg = 0

else

LightHealingObject.minDmg = (level * 2 + maglv * 3) * 0.08

LightHealingObject.minDmg1 = 500

if LightHealingObject.minDmg < 20 and LightHealingObject1.minDmg < 20 then

LightHealingObject.minDmg = 20

LightHealingObject1.minDmg = 500

end

LightHealingObject.maxDmg = (level * 2 + maglv * 3) * 0.33

LightHealingObject1.maxDmg = 500

if LightHealingObject.maxDmg < 20 and LightHealingObject1.minDmg < 20 then

LightHealingObject.maxDmg = 20

LightHealingObject1.maxDmg = 500

end

end

return doTargetMagic(cid, centerpos, LightHealingObject:ordered(),

3000, 19,(cid), centerpos, LightHealingObject1:ordered(),

1)

end

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

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