• 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 Project: Real Tibia Spell Formulas v1.0.0

Cykotitan

Experienced G'
Joined
Nov 4, 2008
Messages
16,892
Solutions
5
Reaction score
849
Well, since I've noticed that the spells which come with TFS 0.2 & 0.3 have imprecise formulas, I've decided to revise all spell formulas. All of the formulas are based on Tibia Wiki' Formulas Page.

I've also included all 8.4 spells, which are;
Sharpshooter (utito tempo san), Protector (utamo tempo), Blood Rage (utamo tempo), Swift Foot (utamo tempo san), Charge (utani tempo hur), also party spells: Train Party (utito mas sio), Protect Party (utamo mas sio), Heal Party (utura mas sio) and Enchant Party (utori mas sio). And of course, conjure runes' spells: Holy Missile (adori san) and Wild Growth (adori grav vita)

Credits: CipSoft, TibiaWiki, elf (for Party Spells ;))

Note that, the new buff spells, also party buff spells won't work on TFS 0.2.
Also, I've removed any custom spells that came with TFS.

I'd like you to post all suggestions, comments, and bug reports about the pack in this thread.

See also: >>816868
 

Attachments

Last edited:
Note that I'm not responsible for any minor mistakes in the formulas, as they're based on Tibia Wiki's article. But they should be as accurate as they'll ever be ;)

Also, Ethereal Spear (exori con) is finally working correctly now, and has proper damage.
Still, I think that Groundshaker (exori mas) and Whirlwind Throw (exori hur) do more damage than on Real Tibia. Can someone, please, confirm that?

So, could someone compare the damage dealt with these formulas, for spells exori mas and exori hur, with damage dealt on Real Tibia?
 
Last edited:
Theese hits are made by me on mine 180+ek. Weapon: emerald sword+nightmare shield skill: 98-101. Hits with avenger arent much more stronger. OFC rl tibia :p
 

Attachments

Last edited:
Cykotitan, looking to my img, remember that frosts have about 10%~ physical resistance.
 
Theese hits are made by me on mine 180+ek. Weapon: emerald sword+nightmare shield skill: 98-101. Hits with avenger arent much more stronger. OFC rl tibia :p

What's your magic level there?
 
9 and 70%~ to 10

Ok, gonna test on frost draggies and see what comes up
(exori, exori mas, exori hur, exori gran)

Exori Gran:
Hit 1 - 401
Hit 2 - 305
Hit 3 - 368
Hit 4 - 303
Hit 5 - 286
Hit 6 - 310
Hit 7 - 282
Hit 8 - 532
Hit 9 - 293
Hit 10 - 466


Average - 354,6

Exori:
Hit 1 - 162
Hit 2 - 135
Hit 3 - 183
Hit 4 - 145
Hit 5 - 176
Hit 6 - 126
Hit 7 - 150
Hit 8 - 138
Hit 9 - 216
Hit 10 - 178


Average - 160,9

Exori Mas:
Hit 1 - 148
Hit 2 - 115
Hit 3 - 160
Hit 4 - 125
Hit 5 - 116
Hit 6 - 132
Hit 7 - 136
Hit 8 - 131
Hit 9 - 148
Hit 10 - 119


Average - 133

Exori Hur:
Hit 1 - 116
Hit 2 - 86
Hit 3 - 97
Hit 4 - 74
Hit 5 - 114
Hit 6 - 118
Hit 7 - 108
Hit 8 - 91
Hit 9 - 97
Hit 10 - 129


Average - 78.5


Tested on 185 EK, Magic LVL 9
Sword Skill 98, Shielding 101
Monster: Frost Dragon
 
Last edited:
Well, my average hit from exori gran on frost dragons is like 410 and exori 180. You should code a function that will create an average hit, maybe something like that: (min+max)/2.


EDIT
I think that if you change your exori code to be little stronger it will be ok, and you must do something with divergence of max and min hit from exori gran.

EDIT2
I didnt ment that my skills are 98/101, but my sword skill is from 98 to 101 becouse i dont want to somebody recognize me. :p
 
Last edited:
Exori Formula:

PHP:
	local min = -((weaponSkill+weaponAttack)*0.5+(level/5))
	local max = -((weaponSkill+weaponAttack)*1.5+(level/5))

Exori Gran Formula:

PHP:
	local min = -((weaponSkill+weaponAttack*2)*1.1+(level/5))
	local max = -((weaponSkill+weaponAttack*2)*3+(level/5))

About Exori Gran, here's the entire forumla function:
PHP:
function getSpellDamage(cid, weaponSkill, weaponAttack, attackStrength)
	local level = getPlayerLevel(cid)

	local min = -((weaponSkill+weaponAttack*2)*1.1+(level/5))
	local max = -((weaponSkill+weaponAttack*2)*3+(level/5))

	return min, max
end

I changed "return min, max" to "return (min, max)/2" and now, damage is VERY random, but unfortunately, it's rarely over 200.
 
Last edited:
PHP:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA)

function getSpellDamage(cid, weaponSkill, weaponAttack, attackStrength)
    local attack = weaponAttack
    local skill = math.max(getPlayerSkill(cid, 1),getPlayerSkill(cid, 2),getPlayerSkill(cid, 3))
    local level = getPlayerLevel(cid)
    local min = -(skill+attack)*0.5-level/5-20
    local max = -(skill+attack)*1.5-level/5-20
    local avg = (max+min)/2

    return min, max, avg
end

setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "getSpellDamage")



local area = createCombatArea(AREA_SQUARE1X1)
setCombatArea(combat, area)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
Its mine formula, but i dont know if returnvalule avg even works, just created it for fun. ;p
 
When loading them on TFS b2:
Code:
[26/01/2009 19:14:45] Lua Script Error: [Spell Interface] 
[26/01/2009 19:14:45] data/spells/scripts/support/swift foot.lua

[26/01/2009 19:14:45] luaCreateConditionObject(). Condition not found

[26/01/2009 19:14:45] Lua Script Error: [Spell Interface] 
[26/01/2009 19:14:45] data/spells/scripts/support/swift foot.lua

[26/01/2009 19:14:45] luaSetConditionParam(). Condition not found

[26/01/2009 19:14:45] Lua Script Error: [Spell Interface] 
[26/01/2009 19:14:45] data/spells/scripts/support/swift foot.lua

[26/01/2009 19:14:45] luaSetCombatCondition(). Condition not found

[26/01/2009 19:14:45] Lua Script Error: [Spell Interface] 
[26/01/2009 19:14:45] data/spells/scripts/support/protector.lua

[26/01/2009 19:14:45] luaCreateConditionObject(). Condition not found

[26/01/2009 19:14:45] Lua Script Error: [Spell Interface] 
[26/01/2009 19:14:45] data/spells/scripts/support/protector.lua

[26/01/2009 19:14:45] luaSetConditionParam(). Condition not found

[26/01/2009 19:14:45] Lua Script Error: [Spell Interface] 
[26/01/2009 19:14:45] data/spells/scripts/support/protector.lua

[26/01/2009 19:14:45] luaSetCombatCondition(). Condition not found
[26/01/2009 19:14:45] Warning: [Event::loadScript] Can not load script. data/spells/scripts/custom/apocalypse.lua
[26/01/2009 19:14:45] cannot open data/spells/scripts/custom/apocalypse.lua: No such file or directory

And the server crashes when you use the party spells.
 
Last edited:
Back
Top