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

Lua mute and exhaust

andu

Sold 649 scripts, 25 maps and 9 events!
Joined
Aug 7, 2009
Messages
978
Solutions
17
Reaction score
375
GitHub
olrios
Twitch
jamagowy
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_MUTED)
setConditionParam(condition, CONDITION_PARAM_TICKS, 11000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
if isPlayer(getCreatureTarget(cid)) == true then
	doCombat(cid, combat, var)
end
return true
end

This is a simple script of my spell, i want a spell what will make player unable to cast spells for few seconds
i tried with condition muted and condition exhaust but noone works, dunno why
 
Back
Top