Ir para conteúdo
  • 0

Como mudar spell 7.81 para 8.54


Pergunta

Bom quero saber como mudar a spell de server 7.81 para server 8.54, vou postar a spell na versao 7.81 e o erro que esta dando quando coloca em server 8.54.

 

spell:

 

area = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

attackType = ATTACK_FIRE

needDirection = false

areaEffect = 62

animationEffect = NM_ANI_NONE

 

hitEffect = 62

damageEffect = 62

animationColor = ORANGE

offensive = true

drawblood = true

minDmg = 200

maxDmg = 250

 

EnergyBombObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect,

 

animationColor, offensive, drawblood, 0, 0)

SubEnergyBombObject1 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect,

 

animationColor, offensive, drawblood, minDmg, maxDmg)

SubEnergyBombObject2 = MagicDamageObject(attackType, NM_ANI_NONE, NM_ME_NONE, damageEffect,

 

animationColor, offensive, drawblood, 1, 1)

 

function onCast(cid, creaturePos, level, maglv, var)

centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}

 

return doAreaGroundMagic(cid, centerpos, needDirection, areaEffect, area,

 

EnergyBombObject:ordered(),

0, 1, SubEnergyBombObject1:ordered(),

100, 1, SubEnergyBombObject2:ordered(),

2, 1, 1500, 1)

 

end

 

 

erro que acontece:

 

 

[Error - Spell Interface]

data/spells/scripts/c1.lua

Description:

data/spells/scripts/c1.lua:28: attempt to call global 'MagicDamageObject' (a nil value)

Link para o comentário
https://xtibia.com/forum/topic/201567-como-mudar-spell-781-para-854/
Compartilhar em outros sites

0 respostass a esta questão

Posts Recomendados

Até agora não há respostas para essa pergunta

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