Por roriscrave, 16 de dez. de 2012 em Scripts
info
Grupo: Conde
Registrado: 18/07/08
Posts: 545
Reputação: +21
Char no Tibia: Nem eu sei
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
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 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)
[Error - Spell Interface]
data/spells/scripts/c1.lua
Description:
data/spells/scripts/c1.lua:28: attempt to call global 'MagicDamageObject' (a nil value)
info
Grupo: Conde
Registrado: 18/07/08
Posts: 545
Reputação: +21
Char no Tibia: Nem eu sei
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:
erro que acontece: