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

setCombatFormula - How does it work?

Qbee

Open Tibia Fan
Joined
Mar 9, 2009
Messages
174
Reaction score
4
for example:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 0, 4.8)
I guess it's some kind of formula, but can someone tell me how this formula works?

Thanks in advance.
 
Code:
function setAttackFormula(combat, type, minl, maxl, minm, maxm, min, max)
	local min, max = min or 0, max or 0
	return setCombatFormula(combat, type, -1, 0, -1, 0, minl, maxl, minm, maxm, min, max)
end
means
Code:
setAttackFormula(combat, type, minl, maxl, minm, maxm, min, max)
==
Code:
setCombatFormula(combat, type, -1, 0, -1, 0, minl, maxl, minm, maxm, min, max)
 
Ok, but what is minl, maxl, minm, maxm, min and max?:confused:
 
in 0.3.6 at leas was another pair of variables, used in sd for exapmle(if counted value is too low that one is used instead I guess?)
 
Back
Top