• 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 Spells lower damage how? and what to this mean?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
hello i wanna know how i can lower damage on this spell?
and what do they mean?

Code:
	{-54.63, -124, -43.2, -140},
	{-65.3,  -114, -43.1, -540},
	{-42.44, -104, -53.6, -140},
	{-52.53, -124, -46.2, -440},
	{-62.43, -104, -47.3, -340}
 
Second is bonus to minimum damage, and fourth is bonus to maximum damage.

Take a look at combat.cpp in TFS 0.3.5pl1 or lower:
Code:
min = (int32_t)((player->getLevel() + player->getMagicLevel() * 4) * 1. * mina + minb);
max = (int32_t)((player->getLevel() + player->getMagicLevel() * 4) * 1. * maxa + maxb);
Lua part:
Code:
{mina, minb, maxa, maxb}
 
soo

-100, -100, -110, -110

makes an atk like 105 hp~??

no i dont think so ^^

the first and third number are product numbers, the second and fourth number are min - max extra dmg.. if i didnt missunderstand it.

so here's an example:

when u got -1.0, -50, -1.5, -100

the dmg will be calculated by ur lvl/mlvl from those numbers: -1.0 & -1.5

the number -50 & -100 will be add to this calculated number (min-max extra dmg)

pls correct me if i'm wrong ^^
 
Back
Top