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

Custom invisible spell

fredde3436

Member
Joined
Jul 6, 2009
Messages
226
Reaction score
7
How can i make so the caster of "invisible" spell Cannot be attacked? i want him to be imune to Spells and all attacks :) Thx
And the spellwil lblock the use of spells and runes.

Original invisible.xml:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

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

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

/Fredde3436
 
Give him some storage storage value (or use subid for CONDITION_INVISIBLE), and then check for this in onStatsChange creaturescript :p.
 
Last edited:
Back
Top