This error is appearing with a bit spells on my server, could someone show me the solution so I can fix it myself later whenever it happens? I'm going to post two of these scripts that are giving me an error for me to use as an example and if you can give that help I would appreciate it <3
6.lua
7.lua
Lua:
[Error - Spell Interface]
data/spells/scripts/personagem/hashirama/6.lua:onCastSpell
Description:
(LuaInterface::luaGetPlayerFlagValue) Player not found
Lua:
[Error - Spell Interface]
data/spells/scripts/personagem/hashirama/7.lua:onCastSpell
Description:
(LuaInterface::luaGetPlayerFlagValue) Player not found
Lua:
[Error - Spell Interface]
data/spells/scripts/personagem/hashirama/8.lua:onCastSpell
Description:
(LuaInterface::luaGetPlayerFlagValue) Player not found
Lua:
[Error - Spell Interface]
data/spells/scripts/personagem/hashirama/9.lua:onCastSpell
Description:
(LuaInterface::luaGetPlayerFlagValue) Player not found
6.lua
Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_BROWN)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 0)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -6.0, -1400, -6.0, -1600)
arr1 = {
{3}
}
local area1 = createCombatArea(arr1)
setCombatArea(combat1, area1)
local function onCastSpell1(parameters)
return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var)
end
function onCastSpell(cid, var)
local waittime = 1 -- Tempo de exhaustion
local storage = 8214
if exhaustion.check(cid, storage) then
doPlayerSendChannelMessage(cid, "Aguarde ".. exhaustion.get(cid, storage) .. " segundos para usar o jutsu novamente.")
return false
end
local parameters = { cid = cid, var = var}
local target = getCreatureTarget(cid) -- efeito no alvo
local pos = getCreaturePosition(target)
local poz = getCreaturePosition(cid) -- effeito no caster
addEvent(doSendMagicEffect, 25, {x = pos.x, y = pos.y+1, z = pos.z}, 384)
addEvent(doSendMagicEffect, 500, {x = pos.x+1, y = pos.y+1, z = pos.z}, 38)
addEvent(onCastSpell1, 500, parameters)
exhaustion.set(cid, storage, waittime)
return true
end
7.lua
Lua:
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_BROWN)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 28)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -9.0, -1600, -9.0, -1800)
arr1 = {
{0, 0, 0, 0, 0, 1, 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, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 3, 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, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}
local area1 = createCombatArea(arr1)
setCombatArea(combat1, area1)
function onCastSpell(cid, var)
local positionME = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
doSendMagicEffect(positionME, 28)
local waittime = 2
local storage = 8202
if exhaustion.check(cid, storage) then
return false
end
local p = getCreaturePosition(cid)
local x = {
[0] = {x=p.x+1, y=p.y-1, z=p.z},
[1] = {x=p.x+5, y=p.y+1, z=p.z},
[2] = {x=p.x+1, y=p.y+5, z=p.z},
[3] = {x=p.x-1, y=p.y+1, z=p.z}
}
local y = {
[0] = 229,
[1] = 226,
[2] = 228,
[3] = 227
}
pos = x[getCreatureLookDirection(cid)]
eff = y[getCreatureLookDirection(cid)]
doSendMagicEffect(pos, eff)
exhaustion.set(cid, storage, waittime)
doCombat(cid, combat1, var)
end