- script autokicker -1,{
OnLoginEvent:
set @name$,strcharinfo(0);
set .@acc, getcharid(3);
query_sql ("SELECT `account_id`,`last_mac` FROM `login` WHERE `account_id` = '"+.@acc+"'",.@dacc,.@dmac$);
for(set .@i,0; .@i<128; set .@i,.@i+1)
query_sql ("SELECT `account_id` FROM `login` WHERE `last_mac` = '"+.@dmac$+"'",.@dacc1);
query_sql ("SELECT `account_id`,`char_id`,`online` FROM `char` WHERE `online` = '1' AND `account_id` = '"+.@dacc1+"'",.@wacc, .@wchar,.@online);
if(getarraysize(.@online) != 1){
if (isloggedin(.@wacc[.@i],.@wchar[.@i])) {
mes "[System]";
mes "Dual Client is disabled in WoE time";
close2;
atcommand "@kick "+@name$+"";
}
}
end;
}
I am making a auto kicker for those who dual client every woe. I am using Euphy's WOE Controller so I want to avoid lot of alts for WoE Prizes. This will count the numbers of online with the same mac address to the one who login and if its more than 1 it will kick all the accounts with the mac addresses.My problem is the message don't appear when I login my 2 test accounts maybe there is a problem with my query_sql so please help me..... Thank in advance.
Question
nasagnilac
Hi I need some help to my script..
I am making a auto kicker for those who dual client every woe. I am using Euphy's WOE Controller so I want to avoid lot of alts for WoE Prizes. This will count the numbers of online with the same mac address to the one who login and if its more than 1 it will kick all the accounts with the mac addresses.My problem is the message don't appear when I login my 2 test accounts maybe there is a problem with my query_sql so please help me..... Thank in advance.
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.