why the script i found is including payon for loadevent
here is the scrip
//===== 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 gepardset.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||.@CuentaId==2000000){set.@j,0;}else{
getmapxy(.@map2$,.@mapx2,.@mapy2,0);if(.@map2$==.@map$){set.@j,.@j+1;}}}}
detachrid;
attachrid .@error;if(.@j>1){
dispbottom "Double Login is not allowed on this map.";
warp "prontera",156,183;}
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 == accountIdif(.@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 "Double Login is not allowed on this map.";
warp "prontera",156,183;}
end;}}//loadevents
guild_vs2 mapflag loadevent
guild_vs1 mapflag loadevent
//guild_vs3 mapflag loadevent//guild_vs4 mapflag loadevent//guild_vs5 mapflag loadevent
quiz_02 mapflag loadevent
quiz_01 mapflag loadevent
06guild_01 mapflag loadevent
Question
AinsLord
why the script i found is including payon for loadevent
here is the scrip
thanks again in advance
Link to comment
Share on other sites
4 answers to this question
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.