• 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

lalovega

New Member
Joined
Nov 4, 2008
Messages
85
Reaction score
1
hi guys can anyone help me with this script i just want to make this spell works like this.

example:
to be able to cast this spell, i need to wait until the little icon (fighting swords) dissapear then, ill be able to use the spell.

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
ill very appreciate, im waiting for any answer thx.
 
be happy.

Lua:
function onCastSpell(cid, var)
	if (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
		return doPlayerSendCancel(cid, "Sorry, you can't use this spell during fight!")
	else
		return doCombat(cid, combat, var)
	end
end
 
Back
Top