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

managain/ticks how to..

muphet

New Member
Joined
Apr 27, 2008
Messages
233
Reaction score
2
hello. I have a problem with the modification. I want to add condition to spell, which causes faster regeneration of mana (something like soft boots). When I use condition_param_manaticks it not working. So, how to implement that?


huh, btw, is there any condition which causes better armor for character? I want to some armorpoints to him. Like +20% of all armor points from EQ. :p
 
hello. I have a problem with the modification. I want to add condition to spell, which causes faster regeneration of mana (something like soft boots). When I use condition_param_manaticks it not working. So, how to implement that?
try this:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 4)
setConditionParam(condition, CONDITION_PARAM_BUFF_SPELL, true)
setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_MANAGAIN, 20)
setConditionParam(condition, CONDITION_PARAM_MANATICKS, 2000)
setCombatCondition(combat, condition)

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

huh, btw, is there any condition which causes better armor for character? I want to some armorpoints to him. Like +20% of all armor points from EQ. :p
i think there isn't :S
 
Ok thanks. Now it workin'.
Btw, is there possiblity to add offensive exhaustion with time of buff?
Like this: Player use this buff and gain faster mana regeneration, but he can't use offensive spells before buff ends.. :D
 
Back
Top