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

[Request] Help me, I need a spell...!!

Joined
Sep 1, 2008
Messages
226
Reaction score
2
Location
Sweden
Hello people!

I already did a thread bout this but apparently it was in the wrong forum...
Anyway the spell I want is:

When casting the spell it should shot several fire strikes after each other...
Is someone kind enough to help me?
I really need this one and I am not good enough to make one by myself.
 
No one responded yet....

Here you go, this is a 100% working script for your multiple flame strike spell. I tested this with a copy of Eldin World 8.4 so it should work for any TFS core. Have not tested with other distros.

Spells.XML
Code:
	<instant name="Multi Flame Strike" words="exori gran flam" lvl="22" mana="70" prem="1" range="4" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" script="attack/multi flame strike.lua">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer"/>
	</instant>

Multi Flame Strike.lua in your spells folder.

Code:
local DELAY = 300 -- Milliseconds between each attack
local ATTACKS = 5 -- Amount of strikes the spell should do.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.4, 0, -0.5, 0)


function onCastSpell(cid, var)
	local function onCastSpell1(parameters)
		doCombat(parameters.cid, parameters.combat, parameters.var)
		doSendMagicEffect(getPlayerPosition(cid), math.random(12, 14))
	end
	
	local parameters = {cid = cid, combat = combat, var = var}
	for i = 0, math.max(ATTACKS, 1) - 1 do
		addEvent(onCastSpell1, DELAY * i, parameters)
	end
	return LUA_NO_ERROR
end

This code was slapped together by me, but true credits go to Colandus because it was his base code. "Auto-Heal"

Enjoy~
 
No problem. It is basically a flame strike that does multiple strikes, so if I read your first post correctly... it should be exactly what you need.

Take care~
 
I will actually REP you even though i'm not going to use this spell.
i'm just doing it since you guys who spend alot of time helping other
people deservs more attention and REP than you get. so thumbs up and
REP's to you and all ov you other "support lurkers"
 
Back
Top