• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Spell For EK/RP

Lifer420

Advanced OT User
Joined
Jul 27, 2009
Messages
1,490
Reaction score
196
TFS 0.4 DEV 3884

Looking for an *8.6 VERSION* of the spells 'Utura' and 'Utura Gran'

I know there's a way to do it but i'm not so good with spells and their attributes/params/conditions or whatever. I got the idea because of Druid's "Heal Party" spell.

I want the "Utura" spell to heal 15hp every 2 seconds, for 3 minutes - 450hp/minute for a grand total of 1350HP over 3 minutes, PLUS adding a cooldown of 10 minutes to it.


I want the "Utura Gran" spell to heal 30hp every 2 seconds, for 3 minutes, - 900hp/minute for a grand total of 2700HP over 3 minutes, PLUS adding a cooldown of 15 minutes to it.

PLEASE AND THANK YOU! <3

PROMO FOR BOTH ALSO.
 
Utura and utura gran haven't cooldown. You just can't cast it if you already have it on.

Code:
local config = {
    healFor = 15, -- hp healed
    every = 2, -- every 2 sec
    forHowLong = 3 * 60, -- buff lasts for 3 minutes
    spellId = 29999 -- should be the same for all uturas (rl tibia) unless players will be able to use utura and utura gran at the same time.
}

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, config.spellId)
setConditionParam(condition, CONDITION_PARAM_TICKS, config.forHowLong * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, config.healFor)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, config.every * 1000)
setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    if hasCondition(cid, CONDITION_REGENERATION, config.spellId) == true then
        doPlayerSendCancel(cid, "YOU ALREADY HAVE THIS BUFF ON")
        return false
    else
        doCombat(cid, combat, var)
    end
    return true
end
 
Back
Top