Jump to content
  • 0
Sign in to follow this  
Yoh Asakura

Block dual accounts

Question

Hi.

 

I have a script that blocks dual accounts but if I let my char in prontera in @afk for example, and then if I go to the pvp (which has the mapflag to block dual acc) my char from prontera will be kicked. Why if I didin't put mapflag in prontera?

 

 

-	script	blockdual	-1,{OnPCLoadMapEvent:	query_sql "SELECT `name` FROM `char` INNER JOIN `login` ON `login`.`account_id` = `char`.`account_id` WHERE `char`.`online` = '1' AND `login`.`last_ip` IN (SELECT `last_ip` FROM `login` WHERE `login`.`account_id` = '"+getcharid(3)+"')",.@name$;	for(set @i,0; @i < getarraysize(.@name$) && getarraysize(.@name$) > 1; set @i,@i+1){		if(getcharid(0) == getcharid(0,.@name$[@i])) continue;		atcommand "@adjgmlvl 0 "+.@name$[@i];		atcommand "@kick "+.@name$[@i];	}	if (getarraysize(.@name$) > 1) {		mes "^FF0000[Guardian]^000000";		mes "Sorry, you can't use double account in this place.";		close;	}end;} // Mapflagpvp_n_6-5	mapflag	loadevent
Edited by Yoh Asakura

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

@@Yoh Asakura try this 

-	script	blockdual	-1,{OnPCLoadMapEvent:	query_sql "SELECT `name` FROM `char` INNER JOIN `login` ON `login`.`account_id` = `char`.`account_id` WHERE `char`.`online` = '1' AND `login`.`last_ip` IN (SELECT `last_ip` FROM `login` WHERE `login`.`account_id` = '"+getcharid(3)+"')",.@name$;	for(@i = 0; @i < getarraysize(.@name$) && getarraysize(.@name$) > 1; @i = @i+1){		if(getcharid(0) == getcharid(0,.@name$[@i])) continue;		if(checkvending(""+ .@name$[@i] +"") != 0) continue;		atcommand "@adjgmlvl 0 "+.@name$[@i];		atcommand "@kick "+.@name$[@i];	}	if (getarraysize(.@name$) > 1) {		mes "^FF0000[Guardian]^000000";		mes "Sorry, you can't use double account in this place.";		close;	}end;} // Mapflagpvp_n_6-5	mapflag	loadevent

Share this post


Link to post
Share on other sites
  • 0

Just to check...I would like to let my char at prontera with @at and then with another account be able to go to pvp arena without having my @at character kicked.

 

I'll try the script you've edited.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.