• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved scrippting problems

cooldodo

New Member
Joined
Jan 17, 2014
Messages
297
Reaction score
4
Code:
[Error - LuaScriptInterface::loadFile] cannot open data/spells/scripts/mas/exevo fire death.lua: No such file or directory
[06/12/2014 13:33:44] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/mas/exevo fire death.lua)
[06/12/2014 13:33:44] cannot open data/spells/scripts/mas/exevo fire death.lua: No such file or director
how do i fix that
Code:
-- SpellCreator generated.

-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_Brush = createCombatObject()
setCombatParam(combat0_Brush, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)
setCombatParam(combat0_Brush, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatArea(combat0_Brush,createCombatArea({{0, 1, 1, 0, 0, 0, 0, 0, 1, 1},
{0, 1, 1, 1, 0, 0, 0, 0, 1, 0},
{0, 0, 1, 1, 0, 0, 0, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 0, 0, 0, 0, 1, 1},
{0, 1, 1, 0, 0, 0, 0, 0, 0, 1}}))
setCombatFormula(combat0_Brush, COMBAT_FORMULA_LEVELMAGIC, -7, -160, -50, -80)
local dfcombat0_Brush = {CONST_ANI_FIRE,4,-4,3,-4,3,-3,3,0,2,-2,4,0,1,-1,0,-1,0,0,0,1,-1,1,-2,2,-3,2,-3,3,-4,3,-4,4,-1,2,-2,3,-3,4,-1,0,-2,-1,-3,-2,-4,-3,1,1,1,0,-1,-1,2,2,3,3,4,4,4,3,3,2,2,1,2,0,2,-1,-2,-2,-2,-3,-3,-3,-3,-4,-4,-4,-3,-1,-3,0,-2,0,-2,1,0,2,1,2,-4,0,-5,0}

-- =============== CORE FUNCTIONS ===============
local function RunPart(c,cid,var,dirList,dirEmitPos) -- Part
    if (isCreature(cid)) then
        doCombat(cid, c, var)
        if (dirList ~= nil) then -- Emit distance effects
            local i = 2;
            while (i < #dirList) do
                doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1])
                i = i + 2
            end       
        end
    end
end

function onCastSpell(cid, var)
    local startPos = getCreaturePosition(cid)
    RunPart(combat0_Brush,cid,var,dfcombat0_Brush,startPos)
    return true
end
 
No such file or director that mean u deleted the script and don't delete it from spells.xml
its a custom and i just did it from spell creator so i just put it in spells folder and put it in spells.xml
Code:
nstant name="exevo fire death" words="exevo fire death" lvl="50" maglv="40" mana="1000" exhaustion="1000" prem="0" needlearn="0" blockwalls="0" aggressive="1" event="script" value="mas/exevo fire death.lua">
    <vocation id="1"/>
    <vocation id="2"/>
    <vocation id="5"/>
    <vocation id="6"/>
</instant>
thats in my spells.xml is it right ?
 
06/12/2014 14:10:10] [Error - LuaScriptInterface::loadFile] data/spells/scripts/mas/exevo fire death.lua:1: unexpected symbol
[06/12/2014 14:10:10] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/mas/exevo fire death.lua)
[06/12/2014 14:10:10] data/spells/scripts/mas/exevo fire death.lua:1: unexpected symbol
i fixed first part now it says unexpected symbol ??

Are you sure that the spell is in the folder "mas" and named exactly "exevo fire death.lua"?
i think that what i did i just made that custom spell then saved copy paste the description of it in spells and named the folder exevo fire death.lua then i copied the XML and paste it in spells.xml thats it and when i reload my spell it says what i said up there
 
Last edited by a moderator:
Is that the full error or does it show more? Make sure you save the file in only Lua and not something else (first).
 
Back
Top