Jump to content
  • 0

kick and delete through script


Hanashi

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   40
  • Joined:  10/23/13
  • Last Seen:  

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

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 1

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

rA doesn't lend itself to deleting data in the database. Deleting unused data won't really show a performance increase.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  141
  • Reputation:   45
  • Joined:  08/14/12
  • Last Seen:  

Why not just ban the account?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

2 hours ago, Nitrous said:

Why not just ban the account?

I had this question in my mind too. Yea, why not?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  113
  • Reputation:   40
  • Joined:  10/23/13
  • Last Seen:  

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...