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

Potions slow healing like in mmo games?

Geza1927


Joined
Mar 23, 2008
Messages
358
Reaction score
43
Location
Poland
#
Anyone seen a script for a potions?
Potions healing like in mmo games, potions slowly recovering your mana or hp?

example : health potions (100hp) used, and you dont get full heal from potion, only something like 10hp or mana every second per 10 second?

Respond please.
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREWORK_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0.6, -5, 1.2, 25)



local arr = {
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 3, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0}
}
local condition = createConditionObject(CONDITION_CURSED)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 5, 1000, 400)
addDamageCondition(condition, 40, 1000, 350)
addDamageCondition(condition, 500, 2000, 300)
addDamageCondition(condition, 800, 2000, 200)

setCombatCondition(combat, condition)



local area = createCombatArea(arr)
setCombatArea(combat, area)

function onCastSpell(cid, var)


rand2 = math.random(1,255)

rand3 = math.random(1,255)

rand4 = math.random(1,255)

rand5 = math.random(1,255)

	return doCombat(cid, combat, var)
end

Not sure how much that heals, you'll have to check.. but I think it works :)
 
Back
Top Bottom