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

[mysql] Query divide lvls of all players

wesoly136

Member
Joined
Jul 30, 2009
Messages
562
Reaction score
9
I need a query that divide lvls of all players like there are players with lvls:
I. 100
II. 150
III. 200
and it will divide into 5 so that players will have lvls:
I. 20
II. 30
III. 40
Hope you understand my 'English maths'
:P
 
supposing that tfs db still fixes the exp based on new level

PHP:
UPDATE `players` SET `level` = ceil(level/5) WHERE `level` > 1 AND `name` NOT LIKE "%Sample" AND `name` != "Account Manager";
Won't affect samples or acc manager
used math ceil to avoid decimals, but don't remember if they get like that in sql
 
Back
Top