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

Spell Gesior Noob-spells collection :)

Of course. How I will be able to get error like
I must ask, are they working with tfs 0.3.4? cuz dont know why but light chain (and xena probably) are hitting only one target, and rest of spells just show words and nothing happens, no errors in the console
without adding it to spells.xml
 
Hola no hablo ingles por fabor ayudenme en esta spell necesito que cada hit que pege dependa del magic lvl que tenga el player por favor heeelp

local combat = createCombatObject()

arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}

local area = createCombatArea(arr)
setCombatArea(combat, area)

function spellCallback(param)
if param.count > 0 or math.random(1, 1) == 1 then
doSendMagicEffect(param.pos, CONST_ME_BIGCLOUDS)
doAreaCombatHealth(param.cid, COMBAT_ENERGYDAMAGE, param.pos, 0, -2000, -4500, CONST_ME_PURPLEENERGY)
end

if(param.count < 5) then
param.count = param.count + 1
addEvent(spellCallback, math.random(1000, 4000), param)
end
end

function onTargetTile(cid, pos)
local param = {}
param.pos = pos
param.cid = cid
param.pos = pos
param.count = 3
spellCallback(param)
end

setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Gesior.pl or someone else Can you covert this (lightchain) scrpit to TFS 0.3.6 please ??? :)
 
Last edited:
Back
Top