i would like to get support for this script below. i found this ip limit script in this forum, the script working fine and i use it until now. the problem is, i want to make an adjustment where at prontera city there were no ip limit but when the player warp to dungeon map or other place the script will check whether they have 3 other chars outside prontera. if they have then the 4th login will be kick. i have try to make <if (strcharinfo(3) == "prontera") end;> it is not working means player can use this as advantage to login more than 3 id. kindly guide and assist me on this. below is the code:-
- script Only3perIP -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$)>=3){for(set .@i,0;.@i<getarraysize(.@name$); set .@i,.@i+1){if(checkvending(.@name$[.@i])!=2)
set .@sameip,.@sameip +1;}if(.@sameip >=3){
announce "Sorry, only 3 accounts per IP can be logged in at a time.", bc_self;
sleep 1000;
atcommand "@kick "+.@myname$;}}end;}
Question
Meteor91
Hello Team,
i would like to get support for this script below. i found this ip limit script in this forum, the script working fine and i use it until now. the problem is, i want to make an adjustment where at prontera city there were no ip limit but when the player warp to dungeon map or other place the script will check whether they have 3 other chars outside prontera. if they have then the 4th login will be kick. i have try to make <if (strcharinfo(3) == "prontera") end;> it is not working means player can use this as advantage to login more than 3 id. kindly guide and assist me on this. below is the code:-
Link to comment
Share on other sites
5 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.