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

Solved Sudden Death.lua Help? [CLOSED]

Eddie TheGod

New Member
Joined
Jul 30, 2016
Messages
20
Reaction score
3
So I want my WAR ot with balanced out sudden death hits. I've tested it out and well when I boost up a ml of a noob char to ml 120, he attacks from 250-500. I want him to attack from 450-530 lets say with ml 120 to be more fair. I want it balanced out so lets say if I start out and I have ml 80 I want that character with ml 80 to attack from 300-350. Please anyone help here is my .lua of the sudden death
IT STARTS HERE
Code:
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)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -60, -1, -60, 5, 5, 4, 7)

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

Any help? please

Bump

Bumpos
 
Back
Top