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

[Help] Healing Script Gives Error.

MarkSmartRemark

Lua-Noob in Training :D
Joined
Jan 27, 2010
Messages
139
Reaction score
3
Hey, this script keeps giving me an error and im not that good of a scripter but its gona be annoying when every mage is using this script and it slows my comp down... here it is

PHP:
-- Script 100% by Colandus!

-- >>CONFIG<< --
local HEAL_DELAY = 500 -- How big should the delay be between each heal? Milliseconds > 1000 = 1 second.
local HEAL_TIMES = 20 -- How many times shall it heal you each time you use it?
-- >>CONFIG<< --

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -30, 1.9, -45)

local exhaust = createConditionObject(CONDITION_EXHAUSTED)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, HEAL_TIMES * HEAL_DELAY)

function onCastSpell(cid, var)
	doTargetCombatCondition(0, cid, exhaust, CONST_ME_NONE)
	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(HEAL_TIMES, 1) - 1 do
		addEvent(onCastSpell1, HEAL_DELAY * i, parameters)
	end
	return LUA_NO_ERROR
end

and the error it gives me is

PHP:
[08/02/2010 22:37:48] [Error - Spell Interface] 
[08/02/2010 22:37:48] data/spells/scripts/Mage/Healing/Evocation.lua:onCastSpell
[08/02/2010 22:37:48] Description: 
[08/02/2010 22:37:48] (luaDoTargetCombatCondition) Condition not found

[08/02/2010 22:38:07] [Error - Spell Interface] 
[08/02/2010 22:38:07] data/spells/scripts/Mage/Healing/Evocation.lua:onCastSpell
[08/02/2010 22:38:07] Description: 
[08/02/2010 22:38:07] (luaDoTargetCombatCondition) Condition not found

can anyone help?
 
Back
Top