[RELEASE] Open-Source (Free) Flyff Universe Bot

01/28/2024 00:25 vektorrector#1
I made this bot as a project to learn programming in C++.

It's gotten pretty good over several months. I've gotten a few characters to level 100+ with it. There's still a lot left to do, but I figured I would start sharing it out.

I am hoping there are some other cool projects I can become a part of with these skills.

[Only registered and activated users can see links. Click Here To Register...]

Features:
  • Healer or fighter mode
  • Monitor hp/mp/fp and use potions to restore
  • Tracks all monsters nearby and prioritizes the ones closest to the player
  • Fighter always prioritizes monsters attacking healer, then monsters attacking the fighter, then monsters that are not in combat
  • Doesn't trigger captcha
  • Restores operation if game disconnects
  • Giant avoiding

This bot requires:
  • Windows 10 or 11 x64
  • Running the game in chrome
  • C++ redist from Microsoft - [Only registered and activated users can see links. Click Here To Register...]
  • The bot release files - [Only registered and activated users can see links. Click Here To Register...]
  • Full control of mouse and keyboard (only 1 bot per PC)

Current version is 1.0.1.
Please download the latest one.

The full page with information (screenshots and videos)
[Only registered and activated users can see links. Click Here To Register...]

The bot takes over your mouse and keyboard to operate. It uses text recognition (OCR), image matching, and memory reading/writing. For those reasons, it may trigger anti-virus. The full source code is available on the github page if you don't trust me, or if you want to take some of the code to do something cool.

If you get any strange behavior, please close and relaunch Chrome.

VIRUS TOTAL REPORT:
[Only registered and activated users can see links. Click Here To Register...]

If you're interested in more, please check out [Only registered and activated users can see links. Click Here To Register...].
01/28/2024 09:37 sethmaven#2
Hello. I tried to use your bot, but it crashes before he can kill one monster. do you have any solution for that? thank you
01/28/2024 09:43 btyy121#3
Heya, crashes after 2secs after start, pos finder prompt in CMD any ideas? followed the instructions word by word
01/28/2024 10:04 sethmaven#4
The message in the cmd that I saw after it crashed is "Error opening data file ./eng.traineddata"
"Please make sure the TESSDATA_PREFIX environment..."
"Failed loading language "eng" "
"Tesseract couldn't load any languages!"

Hope this helps. I'm a new member and I can't post some images. Sorry.
01/28/2024 14:45 vektorrector#5
Quote:
Originally Posted by sethmaven View Post
The message in the cmd that I saw after it crashed is "Error opening data file ./eng.traineddata"
"Please make sure the TESSDATA_PREFIX environment..."
"Failed loading language "eng" "
"Tesseract couldn't load any languages!"

Hope this helps. I'm a new member and I can't post some images. Sorry.
Sorry! I forgot to add a DLL for OCR. I updated the zip, and I added the tesseract DLL.

Please test and let me know.

[Only registered and activated users can see links. Click Here To Register...]
01/28/2024 15:44 sethmaven#6
It's not crashing anymore but after killing 7 monsters specifically, my character is acting strange. cmd says "searching for monster to attack" even though there are lots of monster in the area.

It fixed by clicking outside the game, like in the background but it's happening again after killing 7 monsters.

PS. My character is mercenary, haven't try any class yet. I'm not sure if it's because of that.
01/28/2024 15:53 vektorrector#7
Quote:
Originally Posted by sethmaven View Post
It's not crashing anymore but after killing 7 monsters specifically, my character is acting strange. cmd says "searching for monster to attack" even though there are lots of monster in the area.

It fixed by clicking outside the game, like in the background but it's happening again after killing 7 monsters.

PS. My character is mercenary, haven't try any class yet. I'm not sure if it's because of that.

Can you try to reload chrome and restart the bot? Also, I am going to PM you my discord because I want to fix this. I tested with this with ranger and BP, and it worked fine.


EDIT: Updated code on github and added new release.
01/28/2024 16:39 sethmaven#8
Thank you so much for the help. It's all good and working now! <3
02/03/2024 16:41 pakalmot#9
I cant seem to make this work despite following all the instructions word by word. Can you help me please?
The error was no pid something like that
02/04/2024 05:57 vektorrector#10
Quote:
Originally Posted by pakalmot View Post
I cant seem to make this work despite following all the instructions word by word. Can you help me please?
The error was no pid something like that
You must be logged in and playing the game in Chrome so the bot program can find your window. It requires the screen where your character hp/fp/mp shows up to be up.

Also, can you post the flyffcombat.log file?
02/04/2024 18:08 pakalmot#11
Quote:
Originally Posted by vektorrector View Post
You must be logged in and playing the game in Chrome so the bot program can find your window. It requires the screen where your character hp/fp/mp shows up to be up.

Also, can you post the flyffcombat.log file?
thank you for replying. here is my combat log



Log file started
config loaded
ERROR: player ID is invalid
02/05/2024 04:34 vektorrector#12
Quote:
Originally Posted by pakalmot View Post
thank you for replying. here is my combat log



Log file started
config loaded
ERROR: player ID is invalid

The bot is not finding your player ID based on the name you inputted.

The source code is public, so I can show you where the issue lies.

Code:
player.setup_initial_pos(flyff_proc);
player.setup_initial_target(flyff_proc);
if (player.id == 0 || player.id == 1)
{
				log_file.write("ERROR: player ID is invalid");
				cleanup_gui(hwnd, wc.lpszClassName, wc.hInstance);
				throw std::runtime_error("ERROR: player ID is invalid");
}
This may be happening because you:
  1. inputted the wrong name
  2. the character is not logged in when you started the bot
  3. the character screen where the HP/MP/FP bar resides is not open (press T to toggle)
  4. or your character has some very strange name.


Please check all of that.
02/05/2024 08:46 atorgaara#13
hey bro, i am getting this flyff pid is 1, error
02/05/2024 09:14 jntokar#14
Having an issue.

Downloaded the bot, extracted to desktop in a fold named "bot" lol.
opened it up and had my flyff running. clicked the EXE to the bot. it opened a black box and closed instantly.

Wont start the program.
02/05/2024 09:25 atorgaara#15
pid error is now solved, but new error exist -> "unable to assign possible_player_target_match in initial check at byte 26835444"