Good Day,
I found this script, and it's working fine, but is also counting the autotrade merchants! to the point if you have an autotrade logged out, you can't dual login!
Any possible way to not count the autotrade merchants in this script? In order to keep an autotrade vending and still log with two maximun same ip accounts.
Thanks in advance.
- script Only2perIP -1,{
OnPCLoginEvent:
if (getgmlevel() >= 99) end;
set .@myname$, strcharinfo(0);
if (query_sql("SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id WHERE login.last_ip='"+getcharip()+"' AND `char`.online=1 AND `char`.char_id!="+getcharid(0), .@name$) >= 2) {
for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) {
if (checkvending(.@name$[.@i]) !=2)set .@sameip, .@sameip +1;
}
if (.@sameip>= 2) {
announce "Sorry, only 2 accounts per IP can be logged in at a time.", bc_self;
sleep 1000;
atcommand "@kick " + .@myname$;
}
}
end;
}
Question
iraciz
Good Day,
I found this script, and it's working fine, but is also counting the autotrade merchants! to the point if you have an autotrade logged out, you can't dual login!
Any possible way to not count the autotrade merchants in this script? In order to keep an autotrade vending and still log with two maximun same ip accounts.
Thanks in advance.
Link to comment
Share on other sites
3 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.