Jump to content
  • 0

GM Protection System


Severus

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

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...

//===== 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;
}

Thanks for your help and your time :-)

Greetings!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Check my posts. Someone has requested this before and I've actually provided a working script for it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  04/04/12
  • Last Seen:  

Thanks :)

And for the others who are interested in I found it here: http://rathena.org/board/topic/57786-done-anti-hack-for-gm-account-password/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...