• 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!

Spells

denkan97

Well-Known Member
Joined
Dec 27, 2011
Messages
327
Solutions
2
Reaction score
50
Okay so i dont know what im doing because this is new for me soo look here.

Tfs 1.2
10.77

This spell is done with an old spellcreator that i found on otland and it do not work (didnt think it would work either) but what do i need to change to make it work?

Dont know how to make spells at all so if i can use the spells made from this program with only small changes i would love it.

<instant group="attack" spellid="19" name="Element strike" words="exori elements" lvl="6" mana="10" prem="1" selftarget="1" exhaustion="1500" groupcooldown="0" needlearn="0" script="attack/fire strike.lua">
<vocation name="Druid" />
<vocation name="Sorcerer" />
<vocation name="Master Sorcerer" />
<vocation name="Elder Druid" />
</instant>

Spell Xml

-- SpellCreator generated.

-- =============== COMBAT VARS ===============
-- Areas/Combat for 0ms
local combat0_Death = createCombatObject()
setCombatParam(combat0_Death, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat0_Death, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
setCombatParam(combat0_Death, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatArea(combat0_Death,createCombatArea({{2}}))
function getDmg_Death(cid, level, maglevel)
return (10)*-1,(20)*-1
end
setCombatCallback(combat0_Death, CALLBACK_PARAM_LEVELMAGICVALUE, "getDmg_Death")
local dfcombat0_Death = {CONST_ANI_DEATH}local combat0_fire = createCombatObject()
setCombatParam(combat0_fire, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatParam(combat0_fire, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat0_fire, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatArea(combat0_fire,createCombatArea({{2},
{1}}))
setCombatFormula(combat0_fire, COMBAT_FORMULA_SKILL, 100, 200, 200, 300)
local dfcombat0_fire = {CONST_ANI_FIRE,0,1}

-- =============== 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(creature, var)
local startPos = getCreaturePosition(cid)
RunPart(combat0_Death,cid,var,dfcombat0_Death,startPos)
RunPart(combat0_fire,cid,var,dfcombat0_fire,startPos)
return true
end


Thanks
 
Use code tags for the code... also don't use the spell generator because the code is outdated when it comes to spells for 1.2, if you know how to program then its ok, but unfortunately you don't.. so its kind of useless to you.
 
Back
Top