Jump to content

Recommended Posts

Posted

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

  • 3 weeks later...
Posted

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)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...