hucko
Special Order
- Joined
- May 6, 2011
- Messages
- 79
- Reaction score
- 1
Yo Otlanders,
I have problem when i cast any spell .. it doesn't follow me
by the way, I'm using Spell Creator
No One have an idea for this ? ^_O
I have problem when i cast any spell .. it doesn't follow me
by the way, I'm using Spell Creator
Code:
-
-- SpellCreator generated.
-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_Brush_5 = createCombatObject()
setCombatParam(combat0_Brush_5, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)
setCombatParam(combat0_Brush_5, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
setCombatParam(combat0_Brush_5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_Brush_5,createCombatArea({{1, 0, 1},
{0, 2, 0},
{1, 0, 1}}))
setCombatFormula(combat0_Brush_5, COMBAT_FORMULA_LEVELMAGIC, 0, 0, 0, 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_5,cid,var)
return true
end
No One have an idea for this ? ^_O
Last edited by a moderator: