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

Solved Spell

VirrageS

←•†ĿuĀ && ©¤¤•→
Joined
May 30, 2010
Messages
984
Reaction score
63
Location
Poland
Why this spell is healing target if it should to attack??
Here is spell:
Lua:
-- >>CONFIG<< --
local ATTACK_DELAY = 500 -- How big should the delay be between each heal? Milliseconds > 1000 = 1 second.
local ATTACK_TIMES = 20 -- How many times shall it heal you each time you use it?
-- >>CONFIG<< --

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -30, 1.9, -45)

function onCastSpell(cid, var)
	doTargetCombatCondition(0, cid, exhaust, CONST_ME_NONE)
	local function onCastSpell1(parameters)
		doCombat(parameters.cid, parameters.combat, parameters.var)
	end
	
	local parameters = {cid = cid, combat = combat, var = var}
	for i = 0, math.max(ATTACK_TIMES, 1) - 1 do
		addEvent(onCastSpell1, ATTACK_DELAY * i, parameters)
	end
	return LUA_NO_ERROR
end

Thanks for help :)
 
Last edited:
Back
Top