Jump to content
  • 0

Afk farming fix



In almost every single metin2, a way to afk farm is to press space and then go to another window and it just keeps atacking without being in the client.
I've noticed that some metin2 private servers found a way around it.

Do you guys know how to do it by chance?


Link to post

2 answers to this question

Recommended Posts

  • 0

well you'd just make a check if the window is focused and if not, then release all pressed keys. This could be done in the OnUpdate of game.py

  • Love 1

We are the tortured.
We're not your friends.
As long as we're not visible.
We are unfixable.

Link to post
  • 0
  • Developer
Posted (edited)

Vanilla's solution is a good way to deal with the problem.


On the other hand, if you're not a programmer and still want to fix the issue, then I can help you.


If you press space and unfocus the window, you're unable to use any macros or key inputs in that window, since it's not focused. Which means the player is stuck attacking and can't do anything else.


Using non-aggressive monsters (so you're forced to aggro them using the mantle) and spawning the metins and bosses in random spots (so you're forced to look for them or at least focus them if they're distant) fixes the issue, the player gains nothing that way.


If you don't like that, then setting up the bosses/metins/monsters to be difficult enough so a certain degree of attention is required from the player in order to kill them is another good solution.

Edited by Syreldar
  • Love 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54


Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Restore formatting

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

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.