• 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] Blackout

Slayernight

New Member
Joined
Sep 15, 2008
Messages
17
Reaction score
0
Well I would like a spell that cause all the possible exhaust to the target for 5 seconds and for the caster for 10 seconds.

So nobody can do anything (no rune, no healing, no fighting).

Here is a script I made, but it don't work very well :
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local exhaust_HEALT = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust_HEALT, CONDITION_PARAM_TICKS, 5000)
setCombatCondition(combat, exhaust_HEALT)

local exhaust_COMBT = createConditionObject(CONDITION_EXHAUST_COMBAT)
setConditionParam(exhaust_COMBT, CONDITION_PARAM_TICKS, 5000)
setCombatCondition(combat, exhaust_COMBT)

local exhaust_WEPT = createConditionObject(CONDITION_EXHAUST_WEAPON)
setConditionParam(exhaust_WEPT, CONDITION_PARAM_TICKS, 5000)
setCombatCondition(combat, exhaust_WEPT)

local exhaust_HEALC = createConditionObject(CONDITION_EXHAUST_HEAL)
setConditionParam(exhaust_HEALC, CONDITION_PARAM_TICKS, 10000)

local exhaust_COMBC = createConditionObject(CONDITION_EXHAUST_COMBAT)
setConditionParam(exhaust_COMBC, CONDITION_PARAM_TICKS, 10000)

local exhaust_WEPC = createConditionObject(CONDITION_EXHAUST_WEAPON)
setConditionParam(exhaust_WEPC, CONDITION_PARAM_TICKS, 10000)

function onCastSpell(cid, var)
	doAddCondition(cid, exhaust_HEALC)
	doAddCondition(cid, exhaust_COMBC)
	doAddCondition(cid, exhaust_WEPC)
	return doCombat(cid, combat, var)
end

Could some1 help me??
 
Back
Top