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

Solved QUERY; delete all players without acc manager?

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
I want query to delete all players on my server without account manager
its possible?
 
Last edited:
Deletes all players except Account Manager and Samples.

SQL:
DELETE FROM `players` WHERE NOT `players`.`name` IN ("Account Manager", "Rook Sample", "Sorcerer Sample", "Druid Sample", "Paladin Sample", "Knight Sample");
 
Last edited:
I use SQLliteStudio

@Ninja, I have error
9b3543e2302e4a66b8b6230.png
 
Its because one info in table guilds is usin something from players, you must delete (empty) other player related things also i think.
 
Bro, you'll have to delete alot of things (player items, player depot items, player storages and other things)

Here's an example of how to set level 1 to all players and set all skills to 10

Code:
//Players
UPDATE players SET level = 1, experience = 0, maglevel = 0, health = 150, healthmax = 150, mana = 0, manamax = 0, manaspent = 0, redskulltime = 0, soul = 100, town_id = 0, cap = 400, vocation = 0, posx = 32097, posy = 32219, posz = 7, lastlogin = 0, lastlogout = 0, lastip = 0, rank_id = 0, guildnick = '', bless1 = 0, bless2 = 0, bless3 = 0, bless4 = 0, bless5 = 0, bank_balance = 0;

//Skills
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 0;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 1;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 2;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 3;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 4;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 5;
UPDATE player_skills SET value = 10, count = 0 WHERE skillid = 6;
 
@Nottinghster I need delete because I have a war server for that reason mages, paladins and knights have differents HP and some differences...

PD: Are you the real Nottinghster from empera? He's a legend :p
 
Last edited:
Can't see the error image above me, you need to delete guilds, houses, and that stuff and THEN the accounts/players.
 
Back
Top