• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spell Interface

Damianes

Member
Joined
Jul 11, 2010
Messages
56
Reaction score
12
[Error - Spell Interface]
data/spells/scripts/Kamui.lua:eek:nCastSpell
Description:
(internalGetPlayerInfo) Player not found when requesting player info #6
What i'm must do?
 
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
 
Last edited:
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
Again this same moment.
 
Back
Top