Por maufrizzarin, 02 de nov. de 2010 em Archived
info
Grupo: Campones
Registrado: 18/12/07
Posts: 5
Reputação: 0
Char no Tibia: Krozes Elder
Bom, eu fiz 1 spell que reculpera a vida da pessoa periodicamente... porem quando eu uso ela, o server crash...
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
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 = 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
if UltimateHealingObject.minDmg < 250 then
UltimateHealingObject.minDmg = 250
end
if UltimateHealingObject.maxDmg < 400 then
UltimateHealingObject.maxDmg = 400
-- 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)
quem solber arrumar me ajuda plz.. A PROPOSITO... tibia 7.6
info
Grupo: Campones
Registrado: 18/12/07
Posts: 5
Reputação: 0
Char no Tibia: Krozes Elder
Bom, eu fiz 1 spell que reculpera a vida da pessoa periodicamente... porem quando eu uso ela, o server crash...
quem solber arrumar me ajuda plz.. A PROPOSITO... tibia 7.6