Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

BG Dual Auto Kicker Help Please


nasagnilac

Question


  • Group:  Members
  • Topic Count:  89
  • Topics Per Day:  0.02
  • Content Count:  232
  • Reputation:   15
  • Joined:  11/02/13
  • Last Seen:  

-	script	auto_kicker	-1,{
OnPCLoadMapEvent:
	if  ( getmapflag( strcharinfo(3), battleground ) )
		goto L_kick;
	end;

L_kick:
	.@nb = query_sql( "select `login`.account_id from `char` right join login on login.account_id = `char`.account_id where `char`.online = 1 and login.last_mac = ( select last_mac from login where account_id = "+ getcharid(3) +" )", .@aid );
	if ( .@nb >= 2 ) {
		for ( .@i = 0; .@i < .@nb; .@i++ ) {
			attachrid .@aid[.@i];
				if(CheckVending())
				{
					end;
				}
			addtimer 1, strnpcinfo(0)+"::Onkick";
		}
	}
	end;
Onkick:
	mes "Dual Client is disabled in battlegrounds.";
	sleep2 1000;
	atcommand "@kick "+ strcharinfo(0);
	end;
}

First I want to know if this is correct if not please help me change it.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   4
  • Joined:  06/23/12
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   241
  • Joined:  09/05/12
  • Last Seen:  

Should be working fine if you have the last mac column on your login table.

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