Hi,
I'm trying to add a new spell for ED/MS.
I would like to do 40% resistance for death/psychical and after cast get effect every 2 seconds of
My script looks like that :
I'm beginner but I think about nice spell for I don't have enough knowledge to do this.
I would like to get every 1-2 seconds effect of magic red and resistance for death/psychical.
You can't use mana rune/potion or heal yourself for 2 seconds and this spell must be for 10s.
Could you help me?
TFS 0.4 3884
I'm trying to add a new spell for ED/MS.
I would like to do 40% resistance for death/psychical and after cast get effect every 2 seconds of
Lua:
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
My script looks like that :
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, 400)
setCombatCondition(combat, condition)
local disable = createConditionObject(CONDITION_PACIFIED)
setConditionParam(disable, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, disable)
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_SUBID, 1)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000)
setCombatCondition(combat, exhaust)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I'm beginner but I think about nice spell for I don't have enough knowledge to do this.
I would like to get every 1-2 seconds effect of magic red and resistance for death/psychical.
You can't use mana rune/potion or heal yourself for 2 seconds and this spell must be for 10s.
Could you help me?
TFS 0.4 3884