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

Lua About Spells: Formula -HELP

Bruce Leal

New Member
Joined
Nov 9, 2017
Messages
77
Reaction score
3
can someone explain how the formula works?
I get something here, but ... where i can see the hit, how much the player will cause... ?
Code:
COMBAT_FORMULA_UNDEFINED = 0
COMBAT_FORMULA_LEVELMAGIC = 1
COMBAT_FORMULA_SKILL = 2
COMBAT_FORMULA_DAMAGE = 3
 
Solution
can someone explain how the formula works?
I get something here, but ... where i can see the hit, how much the player will cause... ?
Code:
COMBAT_FORMULA_UNDEFINED = 0
COMBAT_FORMULA_LEVELMAGIC = 1
COMBAT_FORMULA_SKILL = 2
COMBAT_FORMULA_DAMAGE = 3

Works like this:
// combat:setFormula(type, mina, minb, maxa, maxb)

Is defined separately in this function:
forgottenserver/combat.cpp at 1d330233ee2e74a9747d1b5d0994da99693abb6a · otland/forgottenserver · GitHub
can someone explain how the formula works?
I get something here, but ... where i can see the hit, how much the player will cause... ?
Code:
COMBAT_FORMULA_UNDEFINED = 0
COMBAT_FORMULA_LEVELMAGIC = 1
COMBAT_FORMULA_SKILL = 2
COMBAT_FORMULA_DAMAGE = 3

Works like this:
// combat:setFormula(type, mina, minb, maxa, maxb)

Is defined separately in this function:
forgottenserver/combat.cpp at 1d330233ee2e74a9747d1b5d0994da99693abb6a · otland/forgottenserver · GitHub
 
Solution
Back
Top