Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 15:40

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Bot movement/targeting question

Discussion on Bot movement/targeting question within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2017
Posts: 2
Received Thanks: 0
Bot movement/targeting question

Greetings fellow humans! (tl;dr need a way to target a monster given coordinates)

I'm currently in the process of writing a leveling bot for a particular private server.

Since there is no "press tab -> target closest monster" feature, i had to implement it by myself.
So i managed to find a convenient block in the memory (map structure i suspect) which contains
the current coordinates of all the monsters in my field of vision.
That's pretty good because it serves the closest monster to my location on a silver platter.

From here we can proceed by writing some sort of a movement algorithm (using mine and the monsters' location,
and the 'W' 'A' 'S' 'D' keys) that gets me to the monster, and then just send a double click to the center of the screen to attack it.

However, i predict that this method will be long and hard to implement,
and indeed will prove to be very unaesthetic and clunky.

So (i'm referring to the bot writing veterans, and/or creative people),
do you have any idea how to avoid this mess, and solve the problem in an elegant way?
Maybe by (somehow) moving the mouse to the monster's location on the screen and click it?
Some trick to just target the monster?

Thank you.
inflames66676 is offline  
Old 11/24/2017, 16:53   #2
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,996
Received Thanks: 3,391
Arrow Flyff Main - Discussions / Questions -> Flyff PServer - D…

#moved
Nick is offline  
Old 11/25/2017, 23:27   #3
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 688
Quote:
Originally Posted by inflames66676 View Post
Since there is no "press tab -> target closest monster" feature, i had to implement it by myself
There is a Tab function but it only works in GS or in PvP in general. You can search for the function by reverse engineering the client and make it work everywhere...
In general, you will have to remove some conditions in the code so you will jump to the nearest entity in front/near your char and you will select it (set focus on it)
=> it will need some experience with RE and some logic (difficulty 7/10 )

Quote:
Originally Posted by inflames66676 View Post
So i managed to find a convenient block in the memory (map structure i suspect) which contains
the current coordinates of all the monsters in my field of vision.
That's pretty good because it serves the closest monster to my location on a silver platter.
yes, this is the right way to find entities. It is related to the camera view. If you move the camera, the entities around you will change.
Hint: if you are only visible on the game window with a big zoom, your char structure (or pointer to be correct) will be the only value contained in the "entities structure".

Quote:
Originally Posted by inflames66676 View Post
Maybe by (somehow) moving the mouse to the monster's location on the screen and click it?
This is not the right way and you can find some obstacles (trees, objects..), this would be perfect in an FPS game so you can target the head of your enemy by moving the mouse cursor with the perfect yaw and pitch.

It is just better to force the focus on the target you want by finding and writing to the "target pointer" address.
Finding the target pointer is even easier than finding all the other addresses (just select/unselect targets, search in CE, repeat...). Hint: When you are not targeting any mob, the value is 0

I hope this helped you but there is no one way to do a bot, you can do it your way! You can even mix pixel bot, memory bot and packet bot but in most cases memory bot is the best and easier way (but it is often detected if not hidden with a good technique)
cookie69 is offline  
Thanks
1 User
Old 11/26/2017, 10:50   #4
 
elite*gold: 0
Join Date: Apr 2017
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by cookie69 View Post
It is just better to force the focus on the target you want by finding and writing to the "target pointer" address.
Finding the target pointer is even easier than finding all the other addresses (just select/unselect targets, search in CE, repeat...). Hint: When you are not targeting any mob, the value is 0
Did that in the past, but instead of changing the value to a decimal, i've changed it to hex and it didn't work. Your suggestion made me retry that, and it dawned on me that you need to change it to a decimal value (the creature's address) for it to work. Thank you.

About the obstacles (trees, rocks), would you know a way to recognize them and avoid them? If not, it's still good because the main problem was solved thanks to you.
inflames66676 is offline  
Old 12/04/2017, 11:47   #5
 
C_O_R_E's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 264
Received Thanks: 54
I assume that you are capable of using CE on that server.

If you haven't selected a target, the value in the memory stays at 0.
Now, target a monster and search for changed value in memory. Repeat the
above process and find out the static addr/offset.

Not sure, what level pointer it is.

Finding the closest target is done by their relative positions to yours. Not necessary to implement such a feature like that.

To your obstacles problem: as far as I know, obstacles are avoidable by setting the client to debug mode. You can pass through them.
C_O_R_E is offline  
Old 12/08/2017, 17:51   #6
 
elite*gold: 60
Join Date: Sep 2017
Posts: 424
Received Thanks: 138
Take a look at the Game Source -> _Interface -> WndWorld.cpp
This is for Example the Code from Siege only for a new System
TAB = Target.

Dr. Peacock is offline  
Reply




All times are GMT +1. The time now is 15:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.