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

Need SD rune

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,812
Solutions
6
Reaction score
822
I need SD rune that hit on player for lvl 15000
and i need Mega SD that for lvl 50000
 
xD
i want it shot like sudden death but for lvl 15k and when he get lvl up its shot harder!!
 
suddendeath.lua (In spells/scripts/attack)
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function getCombatFormulas(cid, lv, maglv)
	local formula_min = -((lv*[COLOR="DarkRed"][B]0.4[/B][/COLOR] + maglv*2) * 3)
	local formula_max = -((lv*[COLOR="DarkRed"][B]0.4[/B][/COLOR] + maglv*2) * 3.25)

	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
change the 0.4 to something higher (That multiplies with the level you have, so if you are level 100 and it is 0.4 then you hurt 40 dmg more. But it is more depending on maglvl in this script.

And in spells.xml
Code:
	<rune name="Sudden Death" id="[COLOR="DarkRed"]xxxx[/COLOR]" allowfaruse="1" charges="10" lvl="[COLOR="DarkRed"]15000[/COLOR]" maglv="[COLOR="DarkRed"]15[/COLOR]" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/suddendeath.lua"/>

change:
Code:
[COLOR="DarkRed"]xxxx[/COLOR]
to whatever rune ID you use, and you can change the
Code:
lvl="[COLOR="DarkRed"]15000[/COLOR]"
to whatever level you want it to be, now it is 15000
 
Back
Top