[Error - Spell Interface]
data/spells/scripts/Kamui.luanCastSpell
Description:
(internalGetPlayerInfo) Player not found when requesting player info #6
What i'm must do?
local formula = {-25.0, -500, -25.1, -510}
local combat = {}
local pos, posEx = {}, {}
for i = 1, 3 do
combat[i] = createCombatObject()
setCombatParam(combat[i], COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE)
setCombatFormula(combat[i], COMBAT_FORMULA_LEVELMAGIC, unpack(formula))
end
function onCastSpell(cid, var)
doCreatureAddHealth(cid, -getCreatureMaxHealth(cid)/ 20)
local voc = getPlayerVocation(cid)
if voc >= 13 and voc <= 18 then
doSendMagicEffect(getCreaturePosition(cid), 30)
end
local target = getCreatureTarget(cid)
if target ~= nil then
pos = getCreaturePosition(target)
posEx = {x = pos.x + 1, y = pos.y + 1, z = pos.z}
doSendMagicEffect(posEx, 174)
end
for x = 1, #combat do
doCombat(cid, combat[x], var)
end
return true
end
Again this same moment.try this
Code:local formula = {-25.0, -500, -25.1, -510} local combat = {} local pos, posEx = {}, {} for i = 1, 3 do combat[i] = createCombatObject() setCombatParam(combat[i], COMBAT_PARAM_TYPE, COMBAT_DROWNDAMAGE) setCombatFormula(combat[i], COMBAT_FORMULA_LEVELMAGIC, unpack(formula)) end function onCastSpell(cid, var) doCreatureAddHealth(cid, -getCreatureMaxHealth(cid)/ 20) local voc = getPlayerVocation(cid) if voc >= 13 and voc <= 18 then doSendMagicEffect(getCreaturePosition(cid), 30) end local target = getCreatureTarget(cid) if target ~= nil then pos = getCreaturePosition(target) posEx = {x = pos.x + 1, y = pos.y + 1, z = pos.z} doSendMagicEffect(posEx, 174) end for x = 1, #combat do doCombat(cid, combat[x], var) end return true end