Jump to content

[Workaround] "Fix" to autoclose on wrong password for new clients


EvilPuncker

Recommended Posts


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

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.

view it here

download it here

raw file here

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

is this for diff 2012?

thats mean if im used this.if im wrong password

server will not kick out from login window?

Edited by PapaZola
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

just to let you guy know....

this will change the "Incorrect Password" to "Reject from Server"

so, GM / Admin should know about this....

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  211
  • Reputation:   17
  • Joined:  12/23/11
  • Last Seen:  

Pastebin.com is under heavy load right now :'(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Pastebin.com is under heavy load right now :'(

just be patient and wait..../swt

Mirror Site :

http://upaste.me/raw/7a231049d57ce211

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:  

gonna try it so i can work around with mounts :D

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  09/14/12
  • Last Seen:  

is some one test?

Solid2005, do you by chance happen to own the Twitter username @projectbuild ?? Your profile picture is the same on both accounts. Please let me know. I run an organization called Project Build, and I'm wondering if you own @ProjectBuild? Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

nice working

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

its work for 2012-06-18?

is some one test?

yeah its working

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

its work for 2012-06-18?

isnt that @GreenBox has made a diff for that in the WeeDiffGen topic ?

And after so much time with people asking for this... https://github.com/g...5b62953a9f167e8

Added WDGRemoveLoginAutoClose, prevent the client to close when the login is refused. Tested with 2012-04-10RagexeRE.

Binaries: https://github.com/g...master/PreBuilt

Source: https://github.com/g...dpplugins/tree/

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  268
  • Reputation:   27
  • Joined:  12/06/11
  • Last Seen:  

/thx

The modification works /no1

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   9
  • Joined:  06/25/12
  • Last Seen:  

Sweet jesus! I've been waiting for that WDGRemoveLoginAutoClose. Thanks for the link! :))

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

how to load this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

how to load this?

It's in a .diff format. Meaning, you can use TortoiseSVN to apply this diff to your server's folder... however, I don't recommend you do this. Why? Well, this was created { Posted 11 September 2012 - 12:53 AM } and from that day till now, rAthena has changed a lot. So, the best way for you to add this, is try adding it manually.

Then again, you -could- do this automatically by patching it with TortoiseSVN, but you -may- or -may not- get any errors. Up to you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

how to load this?

It's in a .diff format. Meaning, you can use TortoiseSVN to apply this diff to your server's folder... however, I don't recommend you do this. Why? Well, this was created { Posted 11 September 2012 - 12:53 AM } and from that day till now, rAthena has changed a lot. So, the best way for you to add this, is try adding it manually.

Then again, you -could- do this automatically by patching it with TortoiseSVN, but you -may- or -may not- get any errors. Up to you.

Thank you sir. Im using linux anyway. So in linux is it not advisable to do it automatically?

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

×
×
  • Create New...