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

Help please !! Configurate a sd easy

Geraa

New Member
Joined
Mar 31, 2010
Messages
9
Reaction score
0
Hello

i want to configurate the suddent death ( SD )

that attack for level

the more I want you to be more attack level the sd
already moved in this:

Before:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -30, -1, -30, 5, 5, 4, 7)

after:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

attacked more but almost no difference between levels of the players

please help

thank you !!

CYA..!!
 
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(cid, level, skill, attack, factor)
	local min, max= level+500, level+700
	return -min, -max
end
 
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
it should be like this thanks to damger :p
 
local lvl = getPlayerLevel(cid)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3*lvl, -30*lvl, -1.8*lvl, 0)

???

or maybe

local lvl = getPlayerLevel(cid)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3+lvl, -30+lvl, -1.8+lvl, 0)

:D

Not tested but should do something
 
Back
Top