Hanashi Posted November 27, 2016 Group: Members Topic Count: 42 Topics Per Day: 0.01 Content Count: 114 Reputation: 40 Joined: 10/23/13 Last Seen: Yesterday at 12:23 PM Share Posted November 27, 2016 how to kick any online character of a certain account and delete the kicked account? Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted November 28, 2016 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 November 28, 2016 maybe you can give this a try... https://pastebin.com/JK3KPDE2 it clear other data as well ... but still some of these tables aren't suppose to delete data in such way... use at your own risk. Quote Link to comment Share on other sites More sharing options...
1 nitrous Posted November 30, 2016 Group: Developer Topic Count: 4 Topics Per Day: 0.00 Content Count: 141 Reputation: 46 Joined: 08/14/12 Last Seen: April 5 Share Posted November 30, 2016 rA doesn't lend itself to deleting data in the database. Deleting unused data won't really show a performance increase. Quote Link to comment Share on other sites More sharing options...
0 Neffletics Posted November 27, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 149 Reputation: 24 Joined: 02/11/16 Last Seen: May 16, 2023 Share Posted November 27, 2016 - script KickDelete -1,{ OnKick: mes "[ Kick Delete NPC ]"; mes "I'll kick the user and delete his account"; next; Inputing: mes "Enter the character ID"; input .@ign$; next; mes "Enter the account ID"; input .@account$; if (.@ign$ != 0 ) { mes "[ Kick Delete NPC ]"; mes "You didnt' enter the character ID!"; next; goto Inputing; } if (.@account$ != 0 ) { mes "[ Kick Delete NPC ]"; mes "You didn't enter an account ID"; next; goto Inputing; } else { mes "[ Kick Delete NPC ]"; mes "Kicking and deleting..."; atcommand "@kick" +@ign$+ ""; query_sql "DELETE FROM `login` WHERE `account_id` = " +.@account$+ ""; end; } } Disclaimer: This is not tested (written on phone) and has no validations but this will give you an idea. Good luck! Quote Link to comment Share on other sites More sharing options...
0 nitrous Posted November 28, 2016 Group: Developer Topic Count: 4 Topics Per Day: 0.00 Content Count: 141 Reputation: 46 Joined: 08/14/12 Last Seen: April 5 Share Posted November 28, 2016 Why not just ban the account? Quote Link to comment Share on other sites More sharing options...
0 Neffletics Posted November 29, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 149 Reputation: 24 Joined: 02/11/16 Last Seen: May 16, 2023 Share Posted November 29, 2016 2 hours ago, Nitrous said: Why not just ban the account? I had this question in my mind too. Yea, why not? Quote Link to comment Share on other sites More sharing options...
0 Hanashi Posted November 30, 2016 Group: Members Topic Count: 42 Topics Per Day: 0.01 Content Count: 114 Reputation: 40 Joined: 10/23/13 Last Seen: Yesterday at 12:23 PM Author Share Posted November 30, 2016 On 11/29/2016 at 6:13 AM, Nitrous said: Why not just ban the account? On 11/29/2016 at 8:39 AM, Neffletics said: I had this question in my mind too. Yea, why not? banning doesnt clear mysql database which i prefer cleaning it than banning with those useless info stuck on database Quote Link to comment Share on other sites More sharing options...
Question
Hanashi
how to kick any online character of a certain account and delete the kicked account?
Link to comment
Share on other sites
6 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.