dixers
Owner of an OT
- Joined
- May 22, 2010
- Messages
- 22
- Reaction score
- 1
Title says it all, heres the info in console and the lua's
Im using the customspell maker: http://otland.net/threads/spellcreator-a-graphical-spell-creation-enviroment.160371/page-6
Code:
[28/01/2015 22:40:40] > Loading customspells.xml...[Error - LuaScriptInterface::loadFile] mods/scripts/Rage of the fart.lua:55: 'end' expected (to close 'function' at line 52) near '<eof>'
[28/01/2015 22:40:40] [Warning - Event::loadScript] Cannot load script (mods/scripts/Rage of the fart.lua)
[28/01/2015 22:40:40] mods/scripts/Rage of the fart.lua:55: 'end' expected (to close 'function' at line 52) near '<eof>'
[28/01/2015 22:40:40] done.
Code:
local combat17_Brush = createCombatObject()
setCombatParam(combat17_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_CAKE)
setCombatParam(combat17_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatArea(combat17_Brush,createCombatArea({{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}))
function getDmg_Brush(cid, level, maglevel)
return (250)*-1,(600)*-1
end
setCombatCallback(combat17_Brush, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Brush")
local dfcombat17_Brush = {CONST_ANI_CAKE,1,5,2,5,3,5,4,5,5,5,0,5,-1,5,-2,5,-3,5,-4,5,-5,5,-5,4,-2,4,-3,4,-4,4,6,5,7,4,7,5,5,4,4,4,3,4,2,4,1,4,0,4,-1,4,-2,3,-3,3,-4,3,-5,3,-1,3,0,3,1,3,2,3,3,3,4,3,5,3,-2,2,-3,2,-4,2,-5,2,5,2,4,2,3,2,2,2,1,2,0,2,-1,2,-4,1,-5,1,-2,1,-3,1,-1,1,0,1,1,1,2,1,3,1,4,1,5,1,6,1,-3,0,-4,0,-5,0,-2,0,-1,0,0,0,1,0,2,0,3,0,4,0,5,0,6,0,1,-1,0,-1,-1,-1,-2,-1,-3,-1,-4,-1,2,-1,-5,-1,3,-1,4,-1,5,-1,4,-2,3,-2,2,-2,1,-2,0,-2,-1,-2,-2,-2,-3,-2,-4,-2,-5,-2,5,-2,-2,-3,-3,-3,-4,-3,-5,-3,3,-3,2,-3,1,-3,0,-3,-1,-3,5,-3,4,-3,-4,-4,-5,-4,-3,-4,-2,-4,-1,-4,0,-4,1,-4,2,-4,3,-4,4,-4,5,-4,4,-5,5,-5,3,-5,2,-5,1,-5,0,-5,-1,-5,-2,-5,-3,-5,-4,-5,-5,-5}
-- Areas/Combat for 0ms
local combat0_Brush = createCombatObject()
setCombatParam(combat0_Brush, COMBAT_PARAM_EFFECT, CONST_ME_PURPLEENERGY)
setCombatParam(combat0_Brush, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatArea(combat0_Brush,createCombatArea({{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}}))
setCombatFormula(combat0_Brush, COMBAT_FORMULA_LEVELMAGIC, -1, -150, -5, -500)
-- =============== 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)
addEvent(RunPart,1700,combat17_Brush,cid,var,dfcombat17_Brush,startPos)
RunPart(combat0_Brush,cid,var)
Im using the customspell maker: http://otland.net/threads/spellcreator-a-graphical-spell-creation-enviroment.160371/page-6