Jump to content
  • 0

kick and delete through script


Question

6 answers to this question

Recommended Posts

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

  • 0
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...