Jump to content
  • 0

security password


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

my server got hacked and i need a script that with second password to all players. thank you.

damn hackers.

i already ip ban hacker ip yesterday but i think his ip change now.

please help me guys.

Edited by hatake
Link to comment
Share on other sites

15 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:  

- script Login_Events -1,{
OnPCLoginEvent:

if ( #secondpass == 0 ) {
mes "We are now requiring that each player have a secondary account password.";
mes "The system indicates that you don't have one yet.";
mes "What would you like your secondary password to be?";
input @secondpass$;
set #passsec$,@secondpass$;
set #secondpass,1;
next;
mes "Thanks for setting up your password. You will now be disconnected.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
} else {
mes "Please type in your secondary password";
input @secondpass$;
if ( @secondpass$ != #passsec$ ) {
mes "You typed in the wrong password.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
}
mes "Thank you and have a great day!";
close;
}
}

Untested, tell me how it works.

Please tell me you're not using TXT for your live server...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

nice script

Link to comment
Share on other sites


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

do you have another script for gm acc? thanks

What do you mean by for GM Account? This works for GMs as well.

nice script

Thanks!

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

You can manually reset or change it in your database on table global_reg_value.. or add a menu like "forgot password" but first you must add Secret Question after they inputed there Secondary Password.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

nice idea trixie, but how to add it? thanks

@arcen

good idea of trixie isn't it? can you put it? thank you.

Link to comment
Share on other sites


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

I made the edits..this is again untested so tell me how it goes.

EDIT: Oops. forgot something. Reuploaded the file.

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i can't see forgot password, but the secret question and answer only, no forgot pass.

Link to comment
Share on other sites


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

Did you even read the NPC messages? It says type in Forgot if you can't remember your secondary password....

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

but where can i find the forgot? because i try it to put wrong password but no forgot pass.

Link to comment
Share on other sites


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

If you put in the wrong password, it kicks you off right away.

If you can't remember your password, you type in "Forgot" and it brings you to the menu where you can reset your password using your secondary question.

EDIT:

Tested it and made some modifications. It should work without any errors now.

something.txt

Edited by Arcenciel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

i want to insert

if( getgmlevel() < 90 ) end;

where should i put it??

Edited by chilo1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

i think it's useless whY?. if the server have @warp or @go. you can do it by pressing alt+m and type @go p.

so he can bypass the 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...