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

Custom UH

jeppsonskate

Member
Joined
Apr 3, 2012
Messages
117
Reaction score
18
Location
Sweden
Hello!

Can someone make a custom UH for me?

i want it to heal 2100 and only knights can use it! ID of rune 2275
 
You can just edit the normal uh rune. Copy the lua file, give it an other name, change the healing values. Go to spells.xml copy the line from the uh, change the rune id and the script, add a vocation line to it (like on other spells/runes) and you're done.
 
Look for example to the paralyze rune, then just change the vocation to 4. And you want it to heal 2100 all the time? for every level/magiclevel?
 
Here you are. Don't know if this is easiest way, to do this, because I am very unexperienced in spells.

ultimate healing rune knight.lua
LUA:
 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_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function onGetFormulaValues(cid, level, maglevel)
	return 2100,2100
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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

add this in your spells.xml
XML:
	<rune group="healing" spellid="0" name="Ultimate Healing Rune" id="2267" allowfaruse="1" charges="1" lvl="24" maglv="4" cooldown="1000" groupcooldown="1000" aggressive="0" needtarget="1" blocktype="solid" script="healing/ultimate healing rune knight.lua">
	<vocation name="Knight" showInDescription="0"/>
	<vocation name="Elite Knight" showInDescription="0"/>
</rune>

I have taken the old Intense Healing rune for this. Itemid is 2267.
 
Oh I forgot about it, but the one Taibaner posted should work, just look in your spells.xml for the correct rune line to use.
 
Back
Top