Greets!
Im working on some nice systems for my upcoming servers as well as systems being released to public when done.
One thing that I need help with is a spell that cost soul points to stay ACTIVE.
So The Spell:
We will use the recovery from real tibia, the spell sets a faster HP regeneration for X time.
What if I want a person to say the spell, but it will ALSO take 1 soul Point each second to be Active for 5 minutes? If you run out of soul points, the spell stops.
recovery
What do I add? Is it possible?
Kind Regards,
Eldin.
Im working on some nice systems for my upcoming servers as well as systems being released to public when done.
One thing that I need help with is a spell that cost soul points to stay ACTIVE.
So The Spell:
We will use the recovery from real tibia, the spell sets a faster HP regeneration for X time.
What if I want a person to say the spell, but it will ALSO take 1 soul Point each second to be Active for 5 minutes? If you run out of soul points, the spell stops.
recovery
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF_SPELL, 1)
setConditionParam(condition, CONDITION_PARAM_TICKS, 1 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 20)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 3000)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
What do I add? Is it possible?
Kind Regards,
Eldin.