• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Spell Mind Posion, Shockwave, Ice Nova, Life Fusion, Ultimate Explosion, NEW HASTE :)

All of these are mindrages spells. It's a shame nowadays that people want to steal other peoples work. They deserve to be banned for that.
 
someone can release this spells for tfs version 0.3.6 ???
 
How about a taste ;D



Lightning Storm

View attachment 4302

Code:
local function isWalkable(cid,pos)
    local aux = pos
    aux.stackpos = 253
    if doTileQueryAdd(cid, pos) == 1 and getTilePzInfo(pos) == FALSE and isCreature(getThingFromPos(aux).uid) == FALSE then
        return TRUE
    end
    return FALSE
end


		local combatcrash1 = createCombatObject()
	setCombatParam(combatcrash1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
    setCombatParam(combatcrash1, COMBAT_PARAM_EFFECT, 30)
    setCombatFormula(combatcrash1, COMBAT_FORMULA_LEVELMAGIC, -0.3, -200, -0.3, -300)
    
    		local combatcrash2 = createCombatObject()
	setCombatParam(combatcrash2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
    setCombatParam(combatcrash2, COMBAT_PARAM_EFFECT, 11)
    setCombatFormula(combatcrash2, COMBAT_FORMULA_LEVELMAGIC, -0.3, -100, -0.3, -100)
	
	    local combatcrash3 = createCombatObject()
	setCombatParam(combatcrash3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
    setCombatParam(combatcrash3, COMBAT_PARAM_EFFECT, 34)
    setCombatFormula(combatcrash3, COMBAT_FORMULA_LEVELMAGIC, -0.2, -200, -0.2, -200)
	


local crasharr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}

local crasharr2 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
}


local area1 = createCombatArea(crasharr1)

local area2 = createCombatArea(crasharr2)

setCombatArea(combatcrash1, area1)
setCombatArea(combatcrash3, area2)

local function chargeBolt(cid, pos)
for i = 1,6 do
addEvent(doSendDistanceShoot, 45 * i, { x = pos.x - 7, y = pos.y - 7, z = pos.z}, pos, 35)
end
addEvent(doCombat, 380, cid, combatcrash1, positionToVariant(pos))
addEvent(doCombat, 380, cid, combatcrash2, positionToVariant(pos))
addEvent(doCombat, 380, cid, combatcrash3, positionToVariant(pos))
end

local function onThunderStrike(parameters)
local amount = parameters.amount
local lenght = parameters.lenght

	if getCreatureTarget(parameters.cid) == 0 then
		if parameters.cidDir == 0 then 	-- North
			parameters.atkPos = { x = parameters.cidPos.x + math.random(-1, 1), y = parameters.cidPos.y - lenght, z = parameters.cidPos.z}
		elseif parameters.cidDir == 1 then -- East
			parameters.atkPos = { x = parameters.cidPos.x + lenght, y = parameters.cidPos.y + math.random(-1, 1), z = parameters.cidPos.z}
		elseif parameters.cidDir == 2 then -- South
			parameters.atkPos = { x = parameters.cidPos.x + math.random(-1, 1), y = parameters.cidPos.y + lenght, z = parameters.cidPos.z}
		elseif parameters.cidDir == 3 then -- West
			parameters.atkPos = { x = parameters.cidPos.x - lenght, y = parameters.cidPos.y + math.random(-1, 1), z = parameters.cidPos.z}
		end
	else
		parameters.atkPos = { x = parameters.targetPos.x + math.random(-2, 1), y = parameters.targetPos.y + math.random(-1, 2), z = parameters.targetPos.z}
	end

	if isWalkable(parameters.cid, parameters.atkPos) then
		chargeBolt(parameters.cid, parameters.atkPos)
	end
	
	parameters.amount = parameters.amount - 1
	if getCreatureTarget(parameters.cid) == 0 then
	parameters.lenght = ((parameters.maxamount - parameters.amount)/2)
	end
	
	if parameters.amount > 0 then
		addEvent(onThunderStrike, 75, parameters)
	end
end



function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, amount = getPlayerMagLevel(cid)/6, lenght = 1, toplenght = 8, maxamount = getPlayerMagLevel(cid)/6, cidPos = getCreaturePosition(cid), cidDir = getCreatureLookDirection(cid), targetPos = getCreaturePosition(cid), atkPos = getCreaturePosition(cid)}
	if getCreatureTarget(cid) ~= 0 then
			parameters.targetPos = getCreaturePosition(getCreatureTarget(cid))
	end
			addEvent(onThunderStrike, 50, parameters)
	return TRUE

end

Not make damage;/
 
Well in the latest tfs verisions, they edited the spells formula, which basicall destroyed all spell from before.

I usually nowadays use onCallback Formulas to do the damage. But im too busy to release any new spells..
 
Well in the latest tfs verisions, they edited the spells formula, which basicall destroyed all spell from before.

I usually nowadays use onCallback Formulas to do the damage. But im too busy to release any new spells..

That is truly a shame. I look forward to when you have a spare moment. Lol.
 
Well in the latest tfs verisions, they edited the spells formula, which basicall destroyed all spell from before.
what!? it's actually easier to configure, edit and understand now, and that change made it possible to have formulas similar to cipsoft's (without having to use unnecessary callbacks)
 
this spells are made for mystic spirit(0.2.5+) , can someone remake it to 0.3.6 ?
 
yo thas messed up
explosions exhaust is fucked up
<instant name="Extreme explosion" words="Utevo gran mas vis" lvl="100" mana="3000" prem="0" exhaustion="1000" needlearn="0" script="attack/extreme explosion.lua">
 
Why doesnt any of these spells ever work!?

They never use mana or have an exsaust.

Gosh can anyone make a good spell?
 
Which you should notice is incorrect now because the formula system has been changed.
 
Back
Top