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

Spell formula [Spellcreator]

Sweetlove

Member
Joined
Jun 22, 2009
Messages
270
Reaction score
14
Location
Sverige
Hey, i rly need some help with the spell forumlas, i have no idea what they mean and i can't really create spells with custom , that would just be wrong :p

And yes i have used the search function but didnt find any good explanation =/
 
listen maybe i'm wrong but i can feel that i'm right xD
here is the formula from spell
exevo gran mas flam . hell core.lua
L , L , M , M
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 7, 14)

what L , L and M , M means?
the thing i understand is
L = Min
M = Max

so this formula depend on Level * 5 Min - Level * 7 Max
+
MagLevel * 5 Min - MagLevel * 14 Max

for example

i think spell require level 60 , so if magic level is 50

we can do this
60 x 5 + 50 x 5 = 550 / 2 = 275
60 x 7 + 50 x 14 = 1120 / 2 = 560

so level 60 with mag level 50 can make dmg from 275 to max 1120 :D
and it maybe lower than 275 it's tibia mate xD
 
Last edited:
so i've explained Mages formula
u need spell based on skills :D
here you are
from exori gran spell for knights
Code:
function onGetFormulaValues(cid, level, skill, attack, factor)
    local skillTotal, levelTotal = skill + attack * 2, level / 5
    return -(skillTotal * 1.1 + levelTotal), -(skillTotal * 3 + levelTotal)
end

first skill total = skill + attack * 2 << explain >>
skill like sword ..
if skill is 80 + weapon attack " 70 " << example >> * 2 = 300

second level total
level / 5 = if level is 100 so 100/5 = 20

so here 300 + 20 = 320

so it will return like that .. for skill
skilltotal * 1.1 + levelTotal = 300 * 1.1 + 20 = 330 + 20 = 350 <<

for level
skillTotal * 3 + 20 = 300 * 3 + 20 = 920

so here 350 + 920 = 1270

so knight level 100 with weapon sword attack 70 and skills sword 80

will give dmg with exori gran
between 320 to 1270 max

be mind too it maybe lower than 320 xD
 
There is a example in the spell creator where you write the damage formula.
I think you can just write like this in the 2 boxes..

Code:
200+level*2+maglevel*2
400+level*3+maglevel*3

Sorry I can't confirm cause I broke my pc.
 
so i've explained Mages formula
u need spell based on skills :D
here you are
from exori gran spell for knights
Code:
function onGetFormulaValues(cid, level, skill, attack, factor)
    local skillTotal, levelTotal = skill + attack * 2, level / 5
    return -(skillTotal * 1.1 + levelTotal), -(skillTotal * 3 + levelTotal)
end

first skill total = skill + attack * 2 << explain >>
skill like sword ..
if skill is 80 + weapon attack " 70 " << example >> * 2 = 300

second level total
level / 5 = if level is 100 so 100/5 = 20

so here 300 + 20 = 320

so it will return like that .. for skill
skilltotal * 1.1 + levelTotal = 300 * 1.1 + 20 = 330 + 20 = 350 <<

for level
skillTotal * 3 + 20 = 300 * 3 + 20 = 920

so here 350 + 920 = 1270

so knight level 100 with weapon sword attack 70 and skills sword 80

will give dmg with exori gran
between 320 to 1270 max

be mind too it maybe lower than 320 xD


How does it know what Skill to base it off of? Like if I wanted to make spell that was based off distance skill
 
listen .. i said sword for example
but it count all skills
but after 10+ :D

and for distance u can use the same factor
but i see another factor in paladin spell .. ~ .. maybe to give balance dmg

Code:
function onGetFormulaValues(cid, level, skill, attack, factor)
    return -(((skill + 25) / 3) + (level / 5)), -((skill + 25) + (level / 5))
end
 
Back
Top