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

Spells!!!(REP)

Ward_214

Pro PvP
Joined
Dec 11, 2008
Messages
297
Reaction score
0
I'm having a problem getting the spells to have higher damage when the player gains levels.. The spells are almost souly based on your magic level and I do not want that..

Can anyone please help me..?

Okay, Im a level 400 RP with magic 25.. I hit 1700-2000 with 'Exevo Mas San'. I should be hitting 2500~ at least...

Not only my paladins, its all vocations like that. =/

This is the Divine Caldera script:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -600, -1, -700, 2, 2, 28.0, 30.0)

local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
 
Code:
function onGetFormulaValues(cid, level, maglevel)
	min = (level * 1 + maglevel * 1) * 1
	max = (level * 1 + maglevel * 1) * 1
	if min < 1000 then
		min = 1000
	end
	return min, max
end
 
@tompan - Looks like that should work.. Rep'd!

@Sentielo - If I do that, it will still be focused on the players magic level.. Thats what I'm trying to avoid. If I did that, I could take train my character to whatever Magic Level and it would hit the same as a high level character... They're no point in that.
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA
function onGetFormulaValues(cid, level, maglevel)
	min = (level * 1 + maglevel * 2) * 2
	max = (level * 1 + maglevel * 3) * 3
	if min < 1000 then
		min = 1000
	end
	return min, max
end

setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

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

not sure
 
Back
Top