- Joined
- May 23, 2010
- Messages
- 185
- Reaction score
- 23
Hi guys, i'm here again to ask for some help.
Question: How can i add an event that send a magic effect every 1 second for 15 seconds? An effect like Rage of Pokémon Online that "follow" the target.
This is the script of Barbarian:
Question: How can i add an event that send a magic effect every 1 second for 15 seconds? An effect like Rage of Pokémon Online that "follow" the target.
This is the script of Barbarian:
Code:
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, 15000)
setConditionParam(condition, CONDITION_PARAM_SKILL_FISTPERCENT, 200)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
doCreatureSay(cid, "RAGE!", TALKTYPE_ORANGE_1, cid)
return doCombat(cid, combat, var)
end