I'm trying to use this GM Security Script but it just doesn't work.
When I login I have to set up a password. After that I will be kicked but when I login again I have to set a password again and again and again...
//===== eAthena Script ====================================================================
//= GM Account Protection
//===== By: ===============================================================================
//= Masao
//===== Current Version: ==================================================================
//= 1.0
//===== Compatible With: ==================================================================
//= Any eAthena Version;
//===== Description: ======================================================================
//= Will protect an GM Account with an additional Password.
//===== Additional Comments: ==============================================================
//= 1.0 First Version.
//=========================================================================================
- script LOGIN_CHECK -1,{
OnPCLoginEvent:
//GM LVL System
if (getcharid(3) == 2000000) goto L_S;
if (getcharid(3) == 2000001) goto L_S;
if (getcharid(3) == 2000002) goto L_S;
if (getcharid(3) == 2000003) goto L_S;
if (getcharid(3) == 2000004) goto L_S;
if (getcharid(3) == 2000005) goto L_S;
if (getcharid(3) == 2000006) goto L_S;
if (getcharid(3) == 2000007) goto L_S;
if (getcharid(3) == 2000008) goto L_S;
if (getcharid(3) == 2000009) goto L_S;
if (getcharid(3) == 2000010) goto L_S;
L_S:
pcblockmove getcharid(3),1;
if (@gmkonto == 0) goto L_KK;
mes "^FF0000[Password Protection]^000000";
mes "Nice to see you ^0000CD"+strcharinfo(0)+"^000000!";
mes "Please insert your GM Password now:";
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
specialeffect2 676;
input .@gmaccpw;
if (.@gmaccpw != .@gm_code) {
mes "^FF0000[Password Protection]^000000";
mes "The password was not correct! You'll be banned now!";
mes "Please contact the Admin and ask him to be unbanned.";
logmes "[GM LOGIN] "+strcharinfo(0)+" wrong Password!";
atcommand "@nuke "+strcharinfo(0);
atcommand "@block "+strcharinfo(0);
close;
}
specialeffect2 501;
specialeffect2 540;
specialeffect2 543;
specialeffect2 610;
pcblockmove getcharid(3),0;
setnpctimer 180000,"LOGIN_CHECK";
stopnpctimer;
detachnpctimer;
mes "^FF0000[Password Protection]^000000";
mes "Have Fun ^FF0000 "+strcharinfo(0)+" ^000000";
L_A:
close2;
atcommand "@kick "+strcharinfo(0);
end;
L_KK:
mes "^FF0000[Password Protection]^000000";
mes "Ok ^FF0000 "+strcharinfo(0)+" ^000000 you'll have to protect this Account with an additional GM Password!";
next;
mes "^FF0000[Password Protection]^000000";
mes "Please insert now an ^FF0000numeric password^000000 combination which has between 5 and 8 numbers.";
input .@gmaccpw;
logmes "[GM LOGIN] "+.@gmaccpw+" is the Password of "+strcharinfo(0)+" ";
set .@gm_code,.@gmaccpw;
set @gmkonto,1;
mes "^FF0000[Password Protection]^000000";
mes "Thank you very much, this Account is now Password Protected.";
mes "^FF0000You'll be automatically kicked now!!!!!!!!^000000";
close2;
pcblockmove getcharid(3),0;
atcommand "@kick "+strcharinfo(0);
end;
OnTimer180000:
atcommand "@nuke "+strcharinfo(0);
atcommand "@block "+strcharinfo(0);
end;
}
Question
Severus
Hello,
I'm trying to use this GM Security Script but it just doesn't work.
When I login I have to set up a password. After that I will be kicked but when I login again I have to set a password again and again and again...
Thanks for your help and your time :-)
Greetings!
Link to comment
Share on other sites
2 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.