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

uh

Rachaw

Experienced Member
Joined
Oct 17, 2009
Messages
602
Reaction score
1
Location
Tha Sweden
I need a spell/rune =rune

i rep ++

If a knight has lvl 400 he heales 4000 level 500 heales 5000 and on

so a 461 heales 4619 ~~


also if a 500 has ml 1 he heales like 2k becouse of low ml.


/rachaw
 
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)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)

function getCombatFormulas(cid, lv, maglv)
	local min = ((lv*5.5 * maglv) / 10
	local max = ((lv*7 * maglv) / 7
	return formula_min, formula_max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Can you fix so


super knight (voc id 9)

super paladin (voc id 10)

only can use it?

Put this in spells.xml
PHP:
	<rune name="NAME OF RUNE" id="ID OF RUNE" allowfaruse="1" charges="1" lvl="24" maglv="4" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" script="NAMEOFRUNE.lua"/>
		<vocation name="Super Paladin" showInDescription="0"/>
		<vocation name="Super Knight" showInDescription="0"/>

or

PHP:
	<rune name="NAME OF RUNE" id="ID OF RUNE" allowfaruse="1" charges="1" lvl="24" maglv="4" exhaustion="1000" aggressive="0" needtarget="1" blocktype="solid" script="NAMEOFRUNE.lua"/>
		<vocation id="9" showInDescription="0"/>
		<vocation id="10" showInDescription="0"/>

REP++ :)
 
Back
Top