Jump to content

Recommended Posts

Posted (edited)

index.php?app=downloads&module=display&section=screenshot&id=2548

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 by EvilPuncker
  • Upvote 1
Posted (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 by Mr BrycE
Posted (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 by Mysterious
Posted

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

Posted

not working on me :(

index.php?app=downloads&module=display&section=screenshot&id=2548

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?

  • 5 months later...
  • 10 months later...
Posted

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

Join the conversation

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

Guest
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...