TibiaFX
******************
- Joined
- Jul 23, 2014
- Messages
- 335
- Reaction score
- 62
Heyyo guys, I try to create a spell but the problem on the spell is the small ice thing around of my char dont follows the another ice things ---> EDIT: It should be supported like the small ice thigns need to follow the another ice things 
http://gyazo.com/6c997c48ef642606f0f37ab433011312
Can someone help me plz?? xD
XML:
LUA:
Can someone help me ?
^
HELP.
http://gyazo.com/6c997c48ef642606f0f37ab433011312
Can someone help me plz?? xD
XML:
Code:
<instant name="Flame Strike" words="exori mega flam" lvl="12" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="0" exhaustion="2000" needlearn="0" event="script" value="sorcerer/exori mega flam.lua">
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</instant>
LUA:
Code:
-- SpellCreator generated.
-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_Brush3 = createCombatObject()
setCombatParam(combat0_Brush3, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat0_Brush3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_Brush3,createCombatArea({{1},
{2}}))
setCombatFormula(combat0_Brush3, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat0_Brush3 = {CONST_ANI_SMALLICE,0,-1}local combat0_Brush2 = createCombatObject()
setCombatParam(combat0_Brush2, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat0_Brush2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_Brush2,createCombatArea({{2},
{1}}))
setCombatFormula(combat0_Brush2, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat0_Brush2 = {CONST_ANI_SMALLICE,0,1}local combat0_Brush1 = createCombatObject()
setCombatParam(combat0_Brush1, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat0_Brush1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_Brush1,createCombatArea({{3}}))
setCombatFormula(combat0_Brush1, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat0_Brush1 = {CONST_ANI_SMALLICE,0,0}local combat0_Brush4 = createCombatObject()
setCombatParam(combat0_Brush4, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat0_Brush4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_Brush4,createCombatArea({{2, 1}}))
setCombatFormula(combat0_Brush4, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat0_Brush4 = {CONST_ANI_SMALLICE,1,0}local combat0_Brush5 = createCombatObject()
setCombatParam(combat0_Brush5, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat0_Brush5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat0_Brush5,createCombatArea({{1, 2}}))
setCombatFormula(combat0_Brush5, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat0_Brush5 = {CONST_ANI_SMALLICE,-1,0}
-- Areas/Combat for 200ms
local combat2_Brush1 = createCombatObject()
setCombatParam(combat2_Brush1, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat2_Brush1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat2_Brush1,createCombatArea({{3}}))
setCombatFormula(combat2_Brush1, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat2_Brush1 = {CONST_ANI_SMALLICE,0,0}local combat2_Brush2 = createCombatObject()
setCombatParam(combat2_Brush2, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat2_Brush2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat2_Brush2,createCombatArea({{2},
{1}}))
setCombatFormula(combat2_Brush2, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat2_Brush2 = {CONST_ANI_SMALLICE,0,1}local combat2_Brush3 = createCombatObject()
setCombatParam(combat2_Brush3, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat2_Brush3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat2_Brush3,createCombatArea({{2, 1}}))
setCombatFormula(combat2_Brush3, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat2_Brush3 = {CONST_ANI_SMALLICE,1,0}local combat2_Brush4 = createCombatObject()
setCombatParam(combat2_Brush4, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat2_Brush4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat2_Brush4,createCombatArea({{1},
{2}}))
setCombatFormula(combat2_Brush4, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat2_Brush4 = {CONST_ANI_SMALLICE,0,-1}local combat2_Brush5 = createCombatObject()
setCombatParam(combat2_Brush5, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat2_Brush5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat2_Brush5,createCombatArea({{1, 2}}))
setCombatFormula(combat2_Brush5, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat2_Brush5 = {CONST_ANI_SMALLICE,-1,0}
-- Areas/Combat for 100ms
local combat1_Brush1 = createCombatObject()
setCombatParam(combat1_Brush1, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat1_Brush1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat1_Brush1,createCombatArea({{3}}))
setCombatFormula(combat1_Brush1, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat1_Brush1 = {CONST_ANI_SMALLICE,0,0}local combat1_Brush2 = createCombatObject()
setCombatParam(combat1_Brush2, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat1_Brush2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat1_Brush2,createCombatArea({{2},
{1}}))
setCombatFormula(combat1_Brush2, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat1_Brush2 = {CONST_ANI_SMALLICE,0,1}local combat1_Brush3 = createCombatObject()
setCombatParam(combat1_Brush3, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat1_Brush3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat1_Brush3,createCombatArea({{1},
{2}}))
setCombatFormula(combat1_Brush3, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat1_Brush3 = {CONST_ANI_SMALLICE,0,-1}local combat1_Brush4 = createCombatObject()
setCombatParam(combat1_Brush4, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat1_Brush4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat1_Brush4,createCombatArea({{2, 1}}))
setCombatFormula(combat1_Brush4, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat1_Brush4 = {CONST_ANI_SMALLICE,1,0}local combat1_Brush5 = createCombatObject()
setCombatParam(combat1_Brush5, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat1_Brush5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatArea(combat1_Brush5,createCombatArea({{1, 2}}))
setCombatFormula(combat1_Brush5, COMBAT_FORMULA_LEVELMAGIC, -20, -20, -20, -20)
local dfcombat1_Brush5 = {CONST_ANI_SMALLICE,-1,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,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_Brush3,cid,var,dfcombat0_Brush3,startPos)
RunPart(combat0_Brush2,cid,var,dfcombat0_Brush2,startPos)
RunPart(combat0_Brush1,cid,var,dfcombat0_Brush1,startPos)
RunPart(combat0_Brush4,cid,var,dfcombat0_Brush4,startPos)
RunPart(combat0_Brush5,cid,var,dfcombat0_Brush5,startPos)
addEvent(RunPart,200,combat2_Brush1,cid,var,dfcombat2_Brush1,startPos)
addEvent(RunPart,200,combat2_Brush2,cid,var,dfcombat2_Brush2,startPos)
addEvent(RunPart,200,combat2_Brush3,cid,var,dfcombat2_Brush3,startPos)
addEvent(RunPart,200,combat2_Brush4,cid,var,dfcombat2_Brush4,startPos)
addEvent(RunPart,200,combat2_Brush5,cid,var,dfcombat2_Brush5,startPos)
addEvent(RunPart,100,combat1_Brush1,cid,var,dfcombat1_Brush1,startPos)
addEvent(RunPart,100,combat1_Brush2,cid,var,dfcombat1_Brush2,startPos)
addEvent(RunPart,100,combat1_Brush3,cid,var,dfcombat1_Brush3,startPos)
addEvent(RunPart,100,combat1_Brush4,cid,var,dfcombat1_Brush4,startPos)
addEvent(RunPart,100,combat1_Brush5,cid,var,dfcombat1_Brush5,startPos)
return true
end
Can someone help me ?
^
HELP.
Last edited by a moderator: