• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

How do you make Sds hit higher

grogan

New Member
Joined
Dec 6, 2007
Messages
133
Reaction score
0
How do you make sds hit higher anyone know.

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.9, -30, -2.1, 0)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Breif explination of how it works. From one of my older posts.
PHP:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)
That decides how much damage is done depending on the players magic level/level

How to edit
Formula:
-1.3, -300, -1.8, -500

Magic & Level Damage:
Minimum
The number where - 1.3 is in the above forumla Represents the
minimum Multiplier for Level/Magic level

-1.3
This means the spell would do a minimum
x1 level x3 magic level

[===============Break===============]
Maximum

The number where - 1.8 is in the above forumla Represents the
maximum Multiplier for Level/Magic level

-1.8
This means the spell would do a maximum
x1 level x8 magic level

[===============Break===============]
Example:

If the above was your forumla, The damage would be
x1 level And, Random between x3 and x8 of your magic level

Additional/Extra Damage:
Minimum
The number where - 300 is in the above forumla Represents the
minimum additional damage The number you place here adds damage.

-300
This means the spell would add a minimum
300 extra damage.

[===============Break===============]
Maximum

The number where - 500 is in the above forumla Represents the
maximum additional damage The number you place here adds damage.

-500
This means the spell would add a maximum
500 extra damage.

[===============Break===============]

If the above was your forumla, Would do between
300 and 500 extra damage.
 
Back
Top