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

RevScripts Sql to add 50 point to all people above level 150

Mohazaki

Banned User
Joined
Apr 10, 2019
Messages
33
Reaction score
0
hey guys
what sql i can make to add to all players above lvl 150 = 50 pointS?
 
If you want to host a server, you should be able to do these kind of queries. Even though this might be a bit more advanced, it still counts as basic.
So for the future, I would ask you to please try and learn SQL and look on google or any other search engine how to do these kind of things.
(Steps 3-X)
This will help you with that.

SQL:
UPDATE accounts
SET accounts.points = accounts.points + 50
WHERE EXISTS(
    SELECT DISTINCT account_id FROM players
    WHERE accounts.id = players.account_id AND players.level >= 150
);

To be honest, it's not really that advanced lol.
At first I thought I'd have to use joins, then I noticed nope :p
 
Last edited:
Back
Top