4Muki4
HOROHOROHORO
- Joined
- May 1, 2012
- Messages
- 757
- Reaction score
- 72
Hello,
i dont under stand this problem at all i tried fix it but nothing helps
Bug:
[07/08/20012 17:43:45][Warning - Event::loadScript] Cannot load script (data/spells/scripts/attack/strong vis.lua)
[07/08/20012 17:43:45] data/spells/scripts/attack/strong vis.lua:5: unexpected symbol near '-'
Script:
i dont under stand this problem at all i tried fix it but nothing helps
Bug:
[07/08/20012 17:43:45][Warning - Event::loadScript] Cannot load script (data/spells/scripts/attack/strong vis.lua)
[07/08/20012 17:43:45] data/spells/scripts/attack/strong vis.lua:5: unexpected symbol near '-'
Script:
Code:
-- SpellCreator generated.
-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_vis_700-900 = createCombatObject()
setCombatParam(combat0_vis_700-900, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat0_vis_700-900, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatArea(combat0_vis_700-900,createCombatArea({{0, 2, 0},
{0, 1, 0},
{0, 1, 0},
{1, 1, 1},
{1, 1, 1},
{1, 1, 1}}))
function getDmg_vis_700-900(cid, level, maglevel)
return (700)*-1,(900)*-1
end
setCombatCallback(combat0_vis_700-900, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_vis_700-900")
-- Areas/Combat for 900ms
local combat9_vis_700-900 = createCombatObject()
setCombatParam(combat9_vis_700-900, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat9_vis_700-900, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatArea(combat9_vis_700-900,createCombatArea({{0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0},
{0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0},
{0, 1, 0, 0, 0, 2, 0, 1, 0, 0, 0},
{0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0}}))
function getDmg_vis_700-900(cid, level, maglevel)
return (700)*-1,(900)*-1
end
setCombatCallback(combat9_vis_700-900, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_vis_700-900")
-- =============== 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_vis_700-900,cid,var)
addEvent(RunPart,900,combat9_vis_700-900,cid,var)
return true
end