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

[Request] 8.7 New spells

get the formula and I can code everything excluding recovers(or even with them, but I have no idea how to code them without addEvent, probably new condition?)
 
now spell have only 1 group, in global can have 2
and there is no own cooldown in tfs(possible to do but not hardcoded yet)
and there is no function to send cooldown to client to show that icons with bars
 
now spell have only 1 group, in global can have 2
and there is no own cooldown in tfs(possible to do but not hardcoded yet)
and there is no function to send cooldown to client to show that icons with bars

Open Tibia already have support for all these 3 things , I'm almost sure that tfs 0.2 too.
get the formula and I can code everything excluding recovers(or even with them, but I have no idea how to code them without addEvent, probably new condition?)
we can use CONDITION_REGENERATION for it :
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_TICKS, 60000)
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
 
Last edited:
Back
Top