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

[Spells] Simply, noob question

pioncz

New Member
Joined
Dec 3, 2008
Messages
149
Reaction score
1
How works spell formula? I think this should be sticked somewhere.
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 3, 4, 5, 6)
Is it: maximum heal = 6 x magiclevel, minimum heal = 5 x magic level?
And what means 4 and 3 in this formula?
I also found this in my config file:
formulaLevel = 5.0
formulaMagic = 1.0
What it means? It multiplies or something?
 
Last edited:
Mate creating one post is enough, check your other post and I have explained it to you. Feel free to PM me if you got further questions.
3 + 4 = level based (first minimum hit is level shared by 3, second 3 shared by 4 is maximum hit)
5 + 6 = magic level based (mlvl x 5 is min and magic x 6 is max hit)

The formulaLevel and formulaMagic wont make your spells stronger/weaker! They are just for your rates. If you put formulaLevel = 5, than a player will get 5x more experience points as used on cipsoft. Same goes for magic level.
 
TFS 0.3.6 and 0.4
(I did not check how it work in 0.2.x)
#############################################################
I wrote it ~month ago to explain my friend how to make spells :p

You can use 4 or more parameters.

Param order:
setCombatFormula(combat, type, mina, minb, maxa, maxb[, minl, maxl[, minm, maxm[, minc[, maxc]]]])

How TFS calculate it:
PHP:
min = (playerLevel / minl + playerMagicLevel * minm) * 1. * mina + minb
max = (playerLevel / maxl + playerMagicLevel * maxm) * 1. * maxa + maxb
and then server check if value is in min - max damage, if not it return min or max value.
About formula:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
1. minimum multipier
2. minimum add value (after multiple)
3. max. multipier
4. max. add value (after multiple)
5. min. level multipier
6. max. level multipier
7. min. mag level multipier
8. max. mag level multipier
9. minimum damage
10. maximum damage
 
Back
Top