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

TFS 0.X define how many skills/ml player will lose

zabuzo

Well-Known Member
Joined
Jun 10, 2016
Messages
238
Reaction score
54
How to define how many skills/ml player will lose when he dies?

Just like this:
Code:
if(skills >= 1 && skills <= 40) skillslose = 0.5;
else if(skills >= 41 && skills <= 60) skillslose = 1;
else if(skills >= 61 && skills <= 80) skillslose = 1.5;
else if(skills >= 81 && skills <= 100) skillslose = 2;
else if(skills >= 101) skillslose = 2.5;
f(skull == SKULL_RED) skillslose *= 1.5;
elseif(skull == SKULL_BLACK) skillslose *= 3;

Code:
if(ml >= 1 && ml <= 20) mllose = 0.5;
else if(ml >= 21 && ml <= 30) mllose = 1;
else if(ml >= 31 && ml <= 40) mllose = 1.5;
else if(ml >= 41 && ml <= 60) mllose = 2;
else if(ml >= 61) mllose = 2.5;
f(skull == SKULL_RED) lostMana *= 1.5;
elseif(skull == SKULL_BLACK) lostMana *= 3;

this need sources changes?

I found this about SKILLS:

And this about ML:

But i have no idea how to setup to work as i said before
Is any one know how to?
 
Is it possible to do on LUA? On event onDeath or anywhere else
If it is possible it is not a bad thing to do? Or its better to do on sources?
 
Back
Top