Tauro Posted June 27, 2017 Posted June 27, 2017 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 Quote
ConfidencE Posted July 18, 2017 Posted July 18, 2017 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) Quote
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.