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

Some spell requests

pwner123

New Member
Joined
Jul 1, 2009
Messages
211
Reaction score
1
first id like a death spell like the lvl 38 energy beam spell and id like another death spell like exevo gran mas flam and id like another spell thats like exori mort but a little different and more damage
 
deathbeam.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DEATHAREA)

function getCombatFormulas(cid, lv, maglv)
	local formula_min = -(((lv*0.005 + maglv*0.025) + 1) * 220)
	local formula_max = -(((lv*0.005 + maglv*0.025) + 1) * 250)

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

local area = createCombatArea(AREA_BEAM5, AREADIAGONAL_BEAM5)
setCombatArea(combat, area)

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas")

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

Spells.xml
Code:
	<instant name="Death Beam" words="exevo mort lux" lvl="23" mana="70" direction="1" exhaustion="1000" needlearn="0" script="attack/deathbeam.lua">
		<vocation name="Sorcerer"/>
		<vocation name="Master Sorcerer"/>
	</instant>

For the rest just use "DEATHAREA" and "DEATHDAMAGE" and the formula you don't need good maths to calculate it...
 
Back
Top Bottom