Even if user has dual account logged in, it should allow at list one character to stay on turbo_room.
Spoiler
- script dualcheckkk -1,{
OnPCLoadMapEvent:
getmapxy @map$,@x,@y,0;
if (@map$ == "turbo_room")
{
query_sql( "SELECT `last_ip` FROM `login` WHERE account_id="+getcharid(3)+"",.@IP );
query_sql( "SELECT `account_id` FROM `login` WHERE last_ip="+.@IP+"",.@Accountlist );
for( set .@i,0; .@i < getarraysize( .@Accountlist );
set .@i,.@i + 1 ) if( isloggedin( .@Accountlist[.@i] ) )
set .@DetectedOnline,.@DetectedOnline + 1;
if(.@DetectedOnline > 1){
mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in.";
mes "Please log off these unused account.";
close2;
warp "prontera",155,181;
}
}
end;
}
turbo_room mapflag loadevent
I'm also getting this message in Map-server, hope some one will help.
Hello i need help with this Duel Login check script
Currently whenever i enter turbo_room with dual accounts logged in, it kicks me out.
------------------------------------------------------------------------------------------------------------------------------------
What i want
Even if user has dual account logged in, it should allow at list one character to stay on turbo_room.
- script dualcheckkk -1,{
OnPCLoadMapEvent:
getmapxy @map$,@x,@y,0;
if (@map$ == "turbo_room")
{
query_sql( "SELECT `last_ip` FROM `login` WHERE account_id="+getcharid(3)+"",.@IP );
query_sql( "SELECT `account_id` FROM `login` WHERE last_ip="+.@IP+"",.@Accountlist );
for( set .@i,0; .@i < getarraysize( .@Accountlist );
set .@i,.@i + 1 ) if( isloggedin( .@Accountlist[.@i] ) )
set .@DetectedOnline,.@DetectedOnline + 1;
if(.@DetectedOnline > 1){
mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in.";
mes "Please log off these unused account.";
close2;
warp "prontera",155,181;
}
}
end;
}
turbo_room mapflag loadevent
I'm also getting this message in Map-server, hope some one will help.
Share this post
Link to post
Share on other sites