Tauro Posted June 27, 2017 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 16 Reputation: 3 Joined: 10/07/16 Last Seen: Thursday at 07:22 PM Share 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 Link to comment Share on other sites More sharing options...
ConfidencE Posted July 18, 2017 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 09/07/13 Last Seen: February 21, 2023 Share 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 Link to comment Share on other sites More sharing options...
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.