Hello community,
I created some time this method to reduce the use of bots on my server, this code was written for anti metins farm but can be adapted for monsters too.
The code was made in a few hours and could be improved a lot more, but as it stands it works perfectly.
Logic
When the player destroys 30 metins, the captcha will appear and the player will be stunned at the same time.
The player has only 3 attempts, if he fails all 3 times he is teleported to the city.
The stun is only removed when the captcha is successfully completed.
As I said, this is not a WOW solution, but it can help as it has helped me on my server.
For those who really want to spend time creating a more effective solution, I recommend creating a captcha in c++ with encrypted connection client -> server.
Don’t forget to update the values in the quest according to your item_proto.
Lua
Please Login or Register to see this code
C++
Please Login or Register to see this code
quest_functions
Please Login or Register to see this code

