EvilPuncker Posted September 12, 2012 Posted September 12, 2012 (edited) File Name: Fix to auto-close on wrong password/id for new clients File Submitter: EvilPuncker File Submitted: 11 Sep 2012 File Category: Source Modifications Content Author: *Athena team Well, the code is kinda simple and since most people don't know about it yet, I'm releasing a diff for those who want it, it is just a piece of code copied from char.c and pasted into login.c to make the client send "rejected from the server" on wrong password, so it will not close anymore, and you can edit your msgstringtable.txt to show "wrong password/rejected from the server", hope you enjoy. Click here to download this file Edited September 15, 2012 by EvilPuncker 1 Quote
Mr BrycE Posted September 12, 2012 Posted September 12, 2012 (edited) is this for real? im going to try it. if this works..only one thing left... the click delay's on 2011 xD EDIT: Working! and it says rejected from server right?... how about when i go to character selection then click "cancel"...it says.. "Are you sure you want to quit?" it closes the client.. can you change it to when i click "cancel" it returns to login? Edited September 12, 2012 by Mr BrycE Quote
Osaka Posted September 15, 2012 Posted September 15, 2012 (edited) There was any problem with it? Why is the file unavailable? o.o Edited September 16, 2012 by Osaka Quote
Mystery Posted September 15, 2012 Posted September 15, 2012 (edited) There was any problem with it? Why is the file unavaliable? o.o Unavailable o_o The file has been updated and since it has, it has to be re-approved. Edit Approved. Edited September 15, 2012 by Mysterious Quote
Rebel Posted September 16, 2012 Posted September 16, 2012 I hope someone can release the client way on fixing this.. I tried using that but like Emistry said if your players accidently / purposely spam it... their account will be treated as DDoS attack by the server and temporary block them from login for a short interval... Quote
Bin4ry Posted September 16, 2012 Posted September 16, 2012 @Razer X, you can add the counter in conf files, default is 5 if not mistaken, just add up to 30. Who will type wrong-pass 30 times Quote
PewN Posted September 18, 2012 Posted September 18, 2012 not working on me File Name: Fix to auto-close on wrong password/id for new clients File Submitter: EvilPuncker File Submitted: 11 Sep 2012 File Category: Source Modifications Content Author: *Athena team Well, the code is kinda simple and since most people don't know about it yet, I'm releasing a diff for those who want it, it is just a piece of code copied from char.c and pasted into login.c to make the client send "rejected from the server" on wrong password, so it will not close anymore, and you can edit your msgstringtable.txt to show "wrong password/rejected from the server", hope you enjoy. Click here to download this file why it's not working on 2011-03-15? Quote
Mystery Posted September 21, 2012 Posted September 21, 2012 Nice fix Working for my 2012-06-18 client xD Quote
EvilPuncker Posted September 24, 2012 Author Posted September 24, 2012 no longer needed, use this: http://rathena.org/board/topic/53421-weediffgen/page__st__180#entry140755 Quote
86991101 Posted March 7, 2013 Posted March 7, 2013 This is very good Working for my 2012-06-18 client Quote
FReyes Posted January 11, 2014 Posted January 11, 2014 hi there where can i replace this ? Index: trunk/src/login/login.c =================================================================== --- trunk/src/login/login.c (revisão 16773) +++ trunk/src/login/login.c (cópia de trabalho) @@ -1045,7 +1045,14 @@ if( !check_password(sd->md5key, sd->passwdenc, sd->passwd, acc.pass) ) { ShowNotice("Invalid password (account: '%s', pass: '%s', received pass: '%s', ip: %s)\n", sd->userid, acc.pass, sd->passwd, ip); - return 1; // 1 = Incorrect Password + { + int fd = sd->fd; + + WFIFOHEAD(fd,3); + WFIFOW(fd,0) = 0x6c; + WFIFOB(fd,2) = 0; + WFIFOSET(fd,3); + } } if( acc.expiration_time != 0 && acc.expiration_time < time(NULL) ) Quote
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.