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

SuperUh with no Exhaust? [Spell]

rilleman

New Member
Joined
Feb 14, 2010
Messages
269
Reaction score
0
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)

local level = getPlayerLevel(cid)
local mlevel = getPlayerMagLevel(cid)
local pos = getPlayerPosition(cid)

----health Formula Settings-----
local health_minimum = (level * 1) + (mlevel * 3) - 50
local health_maximum = (level * 2) + (mlevel * 3)
-- health Formula Settings END --
local health_add = math.random(health_minimum, health_maximum)
doSendMagicEffect(pos,28)
doCreatureAddHealth(cid, health_add)
doSendAnimatedText(pos, health_add, TEXTCOLOR_LIGHTBLUE)
doCreatureSay(cid, "Healing", TALKTYPE_ORANGE_1)
return doCombat(cid, combat, var)
end

Im using this UH atm, spell.xml:
Code:
<rune name="Super UH" id="2275" allowfaruse="1" charges="0" lvl="24" maglv="4" exhaustion="0" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/ultimate healing rune2.lua"/>
 
What is the problem, you want it to have exhaustion? then change exhaustion="0" to for example 1000 for 1 second or 2000 for 2 seconds.
 
Back
Top