Gouki Posted September 1, 2020 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Share Posted September 1, 2020 (edited) Hi, Is it possible to run a SQL script to delete all characters except for a specific map? EX: Keep all characters inside Prontera, rest of Ragnarok delete. Edited September 1, 2020 by Almond Snicker Quote Link to comment Share on other sites More sharing options...
0 TheKingDino Posted September 2, 2020 Group: Members Topic Count: 13 Topics Per Day: 0.01 Content Count: 68 Reputation: 7 Joined: 02/21/19 Last Seen: December 23, 2023 Share Posted September 2, 2020 (edited) This request is kind of confusing. Do you want the player's characters to be deleted(outside Prontera)? Or do you just want all the NPCs? There is a way to do both. You may want a way to automate it if you're deleting a lot of characters. But there's a column named "last_map" within your char table. You could hit the last_map button above it and it'll sort the rows then manually delete every character that isn't on "prontera" Edited September 2, 2020 by TheKingDino Quote Link to comment Share on other sites More sharing options...
0 Gouki Posted September 2, 2020 Group: Members Topic Count: 88 Topics Per Day: 0.05 Content Count: 261 Reputation: 13 Joined: 08/12/20 Last Seen: November 21, 2024 Author Share Posted September 2, 2020 18 hours ago, TheKingDino said: This request is kind of confusing. Do you want the player's characters to be deleted(outside Prontera)? Or do you just want all the NPCs? There is a way to do both. You may want a way to automate it if you're deleting a lot of characters. But there's a column named "last_map" within your char table. You could hit the last_map button above it and it'll sort the rows then manually delete every character that isn't on "prontera" yup characters, ahh yea, that's a way by sorting the database. okay thank you so much! Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted September 13, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 13, 2020 shut down the server and run the SQL query DELETE FROM `char` WHERE `last_map` <> 'prontera' if you want a cleaner database, then you should remove records that stored in other table, whichever that are related with char info. (mostly consists of the char_id column in it) Quote Link to comment Share on other sites More sharing options...
Question
Gouki
Hi,
Edited by Almond SnickerIs it possible to run a SQL script to delete all characters except for a specific map?
EX:
Keep all characters inside Prontera, rest of Ragnarok delete.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.