Wifebeater
New Member
- Joined
- Feb 24, 2011
- Messages
- 60
- Reaction score
- 1
Hi, i want to make my SD damage depending on my level, and not the magic
I find this very annoying because a lvl 500 with same mag as a level 300 deals same amount of damage :S
Here's my code ATM
Please if someone can send me the code that makes it deal damage depending on ur level, or both ml and level.
/wifebeater kthx
I find this very annoying because a lvl 500 with same mag as a level 300 deals same amount of damage :S
Here's my code ATM
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, -155, -1, -155, 5, 5, 4, 7)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Please if someone can send me the code that makes it deal damage depending on ur level, or both ml and level.
/wifebeater kthx