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

My SD is confusing and doesnt work properly.

Wifebeater

New Member
Joined
Feb 24, 2011
Messages
60
Reaction score
1
Hi, so this is my code:

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)
(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)

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

I want my SD to make damage depending on your LEVEL, and MAGIC LEVEL.

How do i change the damage depending on my level only!?!?

and how do i change the damage depending on my magic level only!?!?

Could someone explain me this part here of the code

Code:
(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.8, 0)

What is what, and what does what. ? Thanks,
 
First 2 numbers are level divisors for min and max respectively, the 3rd and 4th numbers are magic level multipliers. And I'm posting the same thing for the hundred billionth time due to your refusal to search.
 
First 2 numbers are level divisors for min and max respectively, the 3rd and 4th numbers are magic level multipliers. And I'm posting the same thing for the hundred billionth time due to your refusal to search.

hahahahah. yeaa considering theres like 100 tutorials for this same thing
 
Back
Top