Jump to content
  • 0

Gostaria de um script que bloqueasse dual acc em certos mapas


Israel

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  07/06/16
  • Last Seen:  

Olá olha eu de novo rsrs eu gostaria de um npc que bloqueia os jogadores de ir com dual conta em  certos mapas eu testei uns aqui eles até bloqueia mais ele ta bloqueando mapas que eu nem configurei no script Ex: nos mapa da woe eu queria um que desse para bloquear só os configurados por mim o npc que eu estou usando https://pastebin.com/ApkHZp5D  alguém poderia me ajudar com mais essa rsrs Obrigado.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   14
  • Joined:  07/23/18
  • Last Seen:  

Pega esse aqui, é o que a gente usa:

//===== Gogcel Ro Scripts ================================== 
//= No double login in one map
//===== By: ================================================== 
//= Tauro
//===== Current Version: =====================================
//= 1.00
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Avoid double login in 1 designated map and has unique_id
//= by gepard
//===== Comments: ============================================
//= Edit line 26 to use gepard authenticator or ip
//=	Edit line 64 if you use the system by ip
//=	Edit loadevent maps in line 86
//===== Contact Info: ========================================
//= [Tauro]
//= Email: [email protected]
//= Discord: Trinity#7962
//============================================================
-	script	dl_map	-1,{
	end;

OnInit:
	// 1= if you have gepard 0=if you do not use gepard
	set .Gepard,1;
	end;
	
OnPCLoadMapEvent:
	if (.Gepard == 1) {
		getmapxy(.@map$,.@mapx,.@mapy,0);
		query_sql("SELECT last_unique_id FROM `login` WHERE account_id = "+getcharid(3)+"", .@UniqueId$);
		query_sql("SELECT account_id FROM `login` WHERE last_unique_id = '"+.@UniqueId$+"'", .@CuentaId);
		set .@error,getcharid(3,strcharinfo(0));
		for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
			if(attachrid(.@CuentaId[.@i])) {
				if (.@CuentaId == 2000001) {
					set .@j,0;
				} else {
					getmapxy(.@map2$,.@mapx2,.@mapy2,0);
					if (.@map2$ == .@map$){
						set .@j,.@j+1;
					}
				}
			}	
		}
		detachrid;
	
	attachrid .@error;
	if(.@j > 1) {
		dispbottom "[Servidor] Me desculpe, mas para evitar abuusos, Double Clients não são permitidos nesse mapa.";
		atcommand "@kick " + strcharinfo(0);
	}

	end;
	} else {
		getmapxy(.@map$,.@mapx,.@mapy,0);
		query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@UltimaIp$);
		query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@UltimaIp$+"'", .@CuentaId);
		set .@error,getcharid(3,strcharinfo(0));
		for(set .@i ,0;.@i<getarraysize(.@CuentaId);set .@i,.@i+1) {
			if(attachrid(.@CuentaId[.@i])) {
//if .Gepard is 0 add id of accounts to which the system will not affect, brothers, couple, gms, etc ... .@CuentaId == accountId
				if (.@CuentaId == 2000029) {
					set .@j,0;
				} else {
					getmapxy(.@map2$,.@mapx2,.@mapy2,0);
					if (.@map2$ == .@map$){
						set .@j,.@j+1;
					}
				}
			}	
		}
		detachrid;
	
	attachrid .@error;
	if(.@j > 1) {
		dispbottom "[Servidor] Me desculpe, mas para evitar abuusos, Double Clients não são permitidos nesse mapa.";
		atcommand "@kick " + strcharinfo(0);
		}
	} end;
}

pvp_n_3-5	mapflag	loadevent
guild_vs3	mapflag	loadevent

Você configura os mapas aplicando a mapflag loadevent (como nas últimas linhas do Script)

Exemplo:

mapa<tab>mapflag<tab>loadevent
prontera	mapflag	loadevent

 

Lembrando que pra aplicar as mudanças de Mapflag pelo Script você precisará reiniciar o servidor. Caso não queira reiniciar e testar se funcionou, vai até o mapa que você quer bloquear Dual e usa o comando:

@mapflag loadevent 1

 

Se ajudei, dá aquele Upvote maroto. ?

Edited by Tanlor
  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  07/06/16
  • Last Seen:  

Vou testar Mais Obrigado rsrs

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