Jump to content

Restringir doble ip en un mapa


Tauro

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   3
  • Joined:  10/07/16
  • Last Seen:  

Hola primero que todo soy nuevo por acá en rAthena, agradezco cualquier ayuda!!!.

Buenas quería saber si es posible, configurar el servidor para que en mapas específicos "pvp,woe,bg" para rankings no se pueda usar el doble login

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  09/07/13
  • Last Seen:  

Puedes usar un script como éste:

-	script	dl_map	-1,{
OnPCLoadMapEvent:
getmapxy(.@amap$,.@mapx,.@mapy,0);
query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIP$);
query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIP$+"'", .@AccountId);
set .@aidtemp,getcharid(3,strcharinfo(0));
	for(set .@i ,0;.@i<getarraysize(.@AccountId);set .@i,.@i+1){
		if(attachrid(.@AccountId[.@i])){
			getmapxy(.@qmap$,.@qmapx,.@qmapy,0);
				if (.@qmap$== .@amap$){
						set .@j,.@j+1;
					}
				}
		}
		detachrid;
	
attachrid .@aidtemp;
	if(.@j > 1) {
		dispbottom "Lo siento, no está permitido el Double Login en éste mapa.";
		warp "prontera",156,183;
	}

end;
}


   
//------Enable map OnPCLoadMapEvent-------------------
izlude	mapflag	loadevent
alberta	mapflag	loadevent

Sólo deberás añadir el mapflag del mapa que deseas restringir. (aquí coloqué izlude y alberta)

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
Reply to this topic...

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