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

TFS 0.X utori 0.4

fyalhed

Member
Joined
Nov 18, 2017
Messages
156
Reaction score
20
how to make a DPS healing spell to 0.4?

i mean, when player call this spell it heal +3 hp per second
but it for 300 seconds (5 min) [900 after all]

and if player call the spell again, just reset
 
Solution
This one will heal +3 HP per second for 5 mints.
Lua:
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, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 3)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
This one will heal +3 HP per second for 5 mints.
Lua:
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, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 3)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Solution
Code:
    <instant name="Inflict Wound" words="utori" maglv="5" mana="150" prem="0" aggressive="0" params="1" exhaustion="2000" needlearn="0" event="script" value="utori.lua">
        <vocation id="1"/>
    </instant>

I'm making this project too, i want to use it too... :D

With this should work?
Nothing happen, no errors, but no heal

If i flood this spell the limit will still 5 min?

Could i make another for druids? Utori will be to knights
But i was thinking to make this spell for druid, by healing 5 for 3 minutes

Is is possible to make both work together?
 
Last edited:
If you wanna use it on yourself you have to add this to your XML line too
XML:
selftarget="1"
and If you wanna use it on other players like Sio you'll have to add this
XML:
needtarget="1"
 
If you wanna use it on yourself you have to add this to your XML line too
XML:
selftarget="1"
and If you wanna use it on other players like Sio you'll have to add this
XML:
needtarget="1"

But and if i want to combo with druid spells?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

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

local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_TICKS, 25 * 20000)
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 3)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

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

i mean, this druid spell work together to knight spells?
should i change setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
to setConditionParam(condition, CONDITION_PARAM_SUBID, 2)
???

one other thing, this spell have the same icon as utito tempo, it shouldnt broke the utito tempo?
 
how to make this spell a area spell
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

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

local condition = createConditionObject(CONDITION_REGENERATION)
setConditionParam(condition, CONDITION_PARAM_SUBID, 1)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_TICKS, 3 * 1000) -- 1 * 60 * 1000
setConditionParam(condition, CONDITION_PARAM_HEALTHGAIN, 10)
setConditionParam(condition, CONDITION_PARAM_HEALTHTICKS, 1000)
setCombatCondition(combat, condition)

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

its only working on who cast it
 
Back
Top