Ir para conteúdo

Erro Na Spells


15151512

Posts Recomendados

Galera eu tenho um servidor de nto hospedado em linux e tem ums jutsus bugados que fica dando lagg

 

eu tirei uma foto coloquei em anexo e vou por o erro aqui tb

 

[ERROR - SPELL INTERFACE]

IN A TIMER EVENT CALLED FROM

DATA/SPELLS/SCRIPTS/GAARA/SABAKU.KYUSOU.LUA:ONCASTSPELL

DESCRIPTION

ATTEMPT TO INDEX A NUMBER VALUE

STACK TRACEBACK

[C] : ?

 

 

Spells

 

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -130.2, 1, -131.2, 1)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -138.2, 1, -136.2, 1)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 197)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -131.2, 1, -130.2, 1)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -300)
setConditionFormula(condition, -0.7, 0, -0.7, 0)
setCombatCondition(combat1, condition)
arr1 = {
{3}
}
arr2 = {
{3}
}
arr3 = {
{3}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
local function onCastSpell1(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)
end
local function onCastSpell2(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var)
end
function onCastSpell(cid, var)
local position14 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position15 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position16 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 200, parameters)
addEvent(onCastSpell2, 600, parameters)
addEvent(onCastSpell3, 1000, parameters)
addEvent(doSendMagicEffect, position16, 197, parameters)
doSendMagicEffect(position14, 166)
return TRUE
end
Editado por 741596
Link para o comentário
Compartilhar em outros sites

Posta o script da spell.

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -130.2, 1, -131.2, 1)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -138.2, 1, -136.2, 1)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 197)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -131.2, 1, -130.2, 1)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -300)
setConditionFormula(condition, -0.7, 0, -0.7, 0)
setCombatCondition(combat1, condition)
arr1 = {
{3}
}
arr2 = {
{3}
}
arr3 = {
{3}
}
local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)
local area3 = createCombatArea(arr3)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
local function onCastSpell1(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)
end
local function onCastSpell2(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat3, parameters.var)
end
function onCastSpell(cid, var)
local position14 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position15 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local position16 = {x=getThingPosition(getCreatureTarget(cid)).x+2, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 200, parameters)
addEvent(onCastSpell2, 600, parameters)
addEvent(onCastSpell3, 1000, parameters)
addEvent(doSendMagicEffect, position16, 197, parameters)
doSendMagicEffect(position14, 166)
return TRUE
end

ME AJUDEM PFFF

AJUDEM PFFFF

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...