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

Condition_pacified

Done example make a simple spell:

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_PACIFIED)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	doPlayerSendTextMessage(cid, 20, "You are unable to melee for the next 10 seconds.")
	return doCombat(cid, combat, var)
end

Condition "Pacified" will make the player unable to attack with melee for the set amount of time, in this case 10 seconds.
 

Similar threads

Back
Top