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:
/Fredde3436
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