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

@New rune

Gkatt

New Member
Joined
Mar 24, 2009
Messages
413
Reaction score
4
I want to do a copy of the UH rune But this Uh rune shall be named Donation uh rune

And i want to make a rune called "Manarune" that heals 1000 mana
Booth runes can be used by all vocations

Thanks and rep+
 
spells.xml
Code:
	<rune name="Donate Healing Rune" id="2300" allowfaruse="1" charges="1" lvl="24" maglv="4" exhaustion="950" aggressive="0" needtarget="1" blocktype="solid" script="healing/donate healing rune.lua"/>

donate healing rune.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_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function getCombatFormulas(cid, lv, maglv)
	local formula_min = ((lv*0.25 + maglv*3) * 4.8)
	local formula_max = ((lv*0.25 + maglv*3) * 4.2)

	if(formula_max < formula_min) then
		local tmp = formula_max
		formula_max = formula_min
		formula_min = tmp
	end
	return formula_min, formula_max
end


setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")


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

And if you want it more nicer, goto items.xml and chage this:
Code:
	<item id="2300" article="a" name="Donate Healing Rune">
		<attribute key="charges" value="3"/>
		<attribute key="weight" value="120"/>
	</item>
 
Back
Top