Hatake Kakashi Posted December 15, 2011 Posted December 15, 2011 (edited) 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 December 15, 2011 by hatake Quote
Arcenciel Posted December 15, 2011 Posted December 15, 2011 - 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... Quote
Hatake Kakashi Posted December 15, 2011 Author Posted December 15, 2011 do you have another script for gm acc? thanks Quote
Arcenciel Posted December 15, 2011 Posted December 15, 2011 (edited) 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 December 15, 2011 by Arcenciel Quote
Hatake Kakashi Posted December 15, 2011 Author Posted December 15, 2011 its working. thanks to you... Quote
Hatake Kakashi Posted December 15, 2011 Author Posted December 15, 2011 how to reset password when he forgot it? Quote
Gerome Posted December 15, 2011 Posted December 15, 2011 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. Quote
Hatake Kakashi Posted December 15, 2011 Author Posted December 15, 2011 nice idea trixie, but how to add it? thanks @arcen good idea of trixie isn't it? can you put it? thank you. Quote
Arcenciel Posted December 15, 2011 Posted December 15, 2011 (edited) I made the edits..this is again untested so tell me how it goes. EDIT: Oops. forgot something. Reuploaded the file. Edited December 15, 2011 by Arcenciel Quote
Hatake Kakashi Posted December 16, 2011 Author Posted December 16, 2011 i can't see forgot password, but the secret question and answer only, no forgot pass. Quote
Arcenciel Posted December 16, 2011 Posted December 16, 2011 (edited) Did you even read the NPC messages? It says type in Forgot if you can't remember your secondary password.... Edited December 16, 2011 by Arcenciel Quote
Hatake Kakashi Posted December 16, 2011 Author Posted December 16, 2011 but where can i find the forgot? because i try it to put wrong password but no forgot pass. Quote
Arcenciel Posted December 16, 2011 Posted December 16, 2011 (edited) 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 December 16, 2011 by Arcenciel Quote
Chickz Posted June 20, 2012 Posted June 20, 2012 (edited) i want to insert if( getgmlevel() < 90 ) end; where should i put it?? Edited June 20, 2012 by chilo1 Quote
PewN Posted June 28, 2012 Posted June 28, 2012 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 Quote
Question
Hatake Kakashi
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 hatake15 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.