Register for your free account! | Forgot your password?

You last visited: Today at 07:53

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

Advertisement



YFeeder: An Ego Weapon Macro

Discussion on YFeeder: An Ego Weapon Macro within the Mabinogi Hacks, Bots, Cheats & Exploits forum part of the Mabinogi category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 13
Received Thanks: 4
YFeeder: An Ego Weapon Macro

This is a working ego feeder for the post-G13 Mabinogi client. (If anyone would like to provide a virus report, feel free).

The program is meant to only feed a spirit weapon when it is hungry. To do that, it will hover over your weapon every minute and pixelsearch for the stats being in red. If red is detected, it will run through the feed() and buy() loops. If not, it will check again in another minute.

The feed() and buy() cycles are fairly intuitive and you can look at the script to see what it is supposed to be doing, if it is not self-evident.

~~~~~
A few notes:
- Download and install AutoIt v3.

- You will have to replace all of the images with images of your own, as detection will depend on your resolution and font. Which images they are should be obvious, but if you can't figure it out just run through the cycle of feeding on your own and you'll see where they came from. Saving your images as 24-bit bitmaps will work the best.

- Keep your inventory on the upper left hand side of your mabi window when running.

- The popup GUI in the beginning will allow you to choose at which coordinates you are buying an item. These coordinates are denoted by the squares in shops. The upper left square will be (1,1).

- Calculating where the squares are was done using a low resolution. If your resolution is higher, you can either try doubling the coordinates, or modifying the script itself (you'll know where to find it). You may also need to adjust the coordinates of the box for searching for red stats if your resolution is different.

- Using the lower left corner of the chat window had to be implemented after G13, as talking to NPCs at certain times will give an extra, unpredictable message.

- Stand next to an NPC before running it, and make sure you have the proper tab.bmp set according to the NPC.

- You may find it helpful to close maps, clocks, and hide party windows while running.

- As far as troubleshooting goes, it's the same as any other AutoIt program. If things stop all of a sudden, it couldn't find the image on queue. Make a better image and try again! Don't give up and ask for help right away, you'll get there.
~~~~~

Feel free to use, edit, and enhance this program at will. Although, once you get it working, this program works perfectly or as long as you have gold in your inventory, I am not a scripter nor have much previous experience with anything of the sort, and I know a few useful features could be added. But giving credit where credit is due would be nice.

That said, I simply tried to emulate the function of an old yydzh feeder called JL. I just started looking at the documentation for AutoIt and other people's scripts and within a week had this perfect ego feeder working. Any one of you is capable of doing the same. Well, almost.

Thanks to a few friends for helping me test this, you know who you are.

The DL link:

Hope this helps and saves you time.

~Dharma
cpil is offline  
Thanks
4 Users
Old 07/11/2011, 02:47   #2
 
elite*gold: 0
Join Date: Jan 2009
Posts: 435
Received Thanks: 43
Good work! I hope to see future releases from you!
razer951 is offline  
Old 07/11/2011, 07:50   #3
 
elite*gold: 0
Join Date: Sep 2010
Posts: 8
Received Thanks: 0
Amazing. Works perfectly. Great job!
Zack007 is offline  
Old 07/11/2011, 14:15   #4
 
Ayamin's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 345
Received Thanks: 85
What resolution were you using? It doesn't seem to detect the red stats and I've tried doubling, tripling, and even quadrupling the range. ("Pixelsearch" determines the range right? I'm pretty new to using autoit)

EDIT:
It might not be a range error but a color error? I zoomed all the way out and it picked up the red (inside the wall of Simon's shop)

I screenshotted, went on paint, and looked up the color code of the red ego stats and put that in but that didn't work either.


Also, when I set the GUI for "1, 1", it bought an item from "3, 2" o_o how do I fix this?
- and what's tab2 and tab3 for ;o;

EDIT#2:
Nevermind, it was too early to ask for help. I got it to work, all I did was lower my resolution to 800x600 (I was running on 1920x1080!) and retook some pictures. Thanks for the release!

EDIT#3:
It stopped working again Q_Q
Ayamin is offline  
Old 07/11/2011, 18:31   #5
 
elite*gold: 0
Join Date: May 2009
Posts: 13
Received Thanks: 4
Quote:
Originally Posted by Ayamin View Post
What resolution were you using? It doesn't seem to detect the red stats and I've tried doubling, tripling, and even quadrupling the range. ("Pixelsearch" determines the range right? I'm pretty new to using autoit)

EDIT:
It might not be a range error but a color error? I zoomed all the way out and it picked up the red (inside the wall of Simon's shop)

I screenshotted, went on paint, and looked up the color code of the red ego stats and put that in but that didn't work either.


Also, when I set the GUI for "1, 1", it bought an item from "3, 2" o_o how do I fix this?
- and what's tab2 and tab3 for ;o;

EDIT#2:
Nevermind, it was too early to ask for help. I got it to work, all I did was lower my resolution to 800x600 (I was running on 1920x1080!) and retook some pictures. Thanks for the release!

EDIT#3:
It stopped working again Q_Q
I'm suprised it was working on 800x600, unless you edited the coordinates. I'll have to get back to you on the resolution I used, it's on another computer I don't have access to at the moment.

I didn't actually intend to leave tab2.bmp and tab3.bmp, they are just temporary names that I rename to tab.bmp depending on what NPC and food I'm feeding.

As far as (1,1) feeding at (3,2) goes, make sure your shopcorner.bmp looks like mine, as it will calculate the point from the upper left hand corner of that image. Then, you can halve or double the values from there. (This is one of the things I meant to have added but haven't had the time for - radio-button support for multiple resolutions).
cpil is offline  
Old 07/12/2011, 01:28   #6
 
Ayamin's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 345
Received Thanks: 85
Quote:
Originally Posted by cpil View Post
I'm suprised it was working on 800x600, unless you edited the coordinates. I'll have to get back to you on the resolution I used, it's on another computer I don't have access to at the moment.

I didn't actually intend to leave tab2.bmp and tab3.bmp, they are just temporary names that I rename to tab.bmp depending on what NPC and food I'm feeding.

As far as (1,1) feeding at (3,2) goes, make sure your shopcorner.bmp looks like mine, as it will calculate the point from the upper left hand corner of that image. Then, you can halve or double the values from there. (This is one of the things I meant to have added but haven't had the time for - radio-button support for multiple resolutions).
Ohh, okay, that's what I thought the tabs were for (I made Ego2.bmp and other backups for a different color layout since I switch between them often)

How do I go about halving the values of the coordinates? It won't let me enter 0.5, and I couldn't find the size of the box in the script. (It works perfectly on 800x600 though.)

It still has trouble detecting the red stats, no matter what resolution I'm on though.

And finally, a question: Is there any way for the bot to get to a tab that's not seen at first? For example, the "Casual Wear" tab at Malcolm's requires you to click the arrow to the right to get to.
Ayamin is offline  
Old 07/12/2011, 01:34   #7
 
elite*gold: 0
Join Date: May 2009
Posts: 13
Received Thanks: 4
Quote:
Originally Posted by Ayamin View Post
Ohh, okay, that's what I thought the tabs were for (I made Ego2.bmp and other backups for a different color layout since I switch between them often)

How do I go about halving the values of the coordinates? It won't let me enter 0.5, and I couldn't find the size of the box in the script. (It works perfectly on 800x600 though.)

It still has trouble detecting the red stats, no matter what resolution I'm on though.

And finally, a question: Is there any way for the bot to get to a tab that's not seen at first? For example, the "Casual Wear" tab at Malcolm's requires you to click the arrow to the right to get to.
If you need to change the coordinates for buying, just edit the multipliers on this line:
MouseMove(($x-2+($xfeed*12)),($y+38+($yfeed*12)))

And, if you're not detecting red in the attack stats, it's most likely because of this line:
$h = PixelSearch($x+100,$y+160,$x+400,$y+460,0xFF0000,1 5)

The above line will search inside the box described by those coordinates, relative to the point where your cursor hovers over the weapon. You can try taking a screenshot of that and opening it up in Paint to see exactly where that box should be on your screen.

As far as getting to a tab that's not visible, you can try making an interface edit so they are all visible (easiest), or adding a line to click on the arrow before searching for the tab.
cpil is offline  
Old 07/12/2011, 02:13   #8
 
Ayamin's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 345
Received Thanks: 85
Quote:
Originally Posted by cpil View Post
If you need to change the coordinates for buying, just edit the multipliers on this line:
MouseMove(($x-2+($xfeed*12)),($y+38+($yfeed*12)))

And, if you're not detecting red in the attack stats, it's most likely because of this line:
$h = PixelSearch($x+100,$y+160,$x+400,$y+460,0xFF0000,1 5)

The above line will search inside the box described by those coordinates, relative to the point where your cursor hovers over the weapon. You can try taking a screenshot of that and opening it up in Paint to see exactly where that box should be on your screen.

As far as getting to a tab that's not visible, you can try making an interface edit so they are all visible (easiest), or adding a line to click on the arrow before searching for the tab.
Thanks, I'm still new to all this stuff.
I tried changing 0xFF0000 to a different red, but it only worked for a little while. What does the "15" in that line mean? EDIT: I'm guessing the "15" is the margin of error out of 255? Since when I change it to 255 it always goes to "Is hungry = 1"/

I drew a diagram as to my understanding of the four $'s, is this correct?: EDIT: If this is correct, then I think it is a color recognition problem since I got the coordinates from paint but it still doesn't work.
Attached Images
File Type: jpg Coordinates 2.jpg (24.1 KB, 48 views)
Ayamin is offline  
Old 07/12/2011, 09:59   #9
 
elite*gold: 0
Join Date: Mar 2010
Posts: 912
Received Thanks: 112
Ever heard of the official documentation of AutoIT?
kotarou3 is offline  
Thanks
1 User
Old 07/12/2011, 11:27   #10
 
Ayamin's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 345
Received Thanks: 85
Quote:
Originally Posted by kotarou3 View Post
Ever heard of the official documentation of AutoIT?
Nope, but I found it just now. I never knew such a thing existed O_O
Ayamin is offline  
Old 07/12/2011, 13:50   #11
 
elite*gold: 0
Join Date: Jul 2008
Posts: 23
Received Thanks: 0
Unhappy

I took all my own SS and what not and i still keep getting an error, here is a picture of it.

uchiha20 is offline  
Old 07/12/2011, 14:17   #12
 
elite*gold: 0
Join Date: Sep 2009
Posts: 1,528
Received Thanks: 613
stop using x64, run as x86.
adam_j is offline  
Old 07/12/2011, 14:29   #13
 
elite*gold: 0
Join Date: Mar 2010
Posts: 912
Received Thanks: 112
Quote:
Originally Posted by adam_j View Post
stop using x64, run as x86.
No such thing as x64. And almost all home computers run x86, usually of the x86_64 kind. Some servers run IA32 while some supercomputers and mainframes use ppc
kotarou3 is offline  
Old 07/12/2011, 15:35   #14
 
elite*gold: 0
Join Date: Jul 2008
Posts: 23
Received Thanks: 0
how would i do that O_O
uchiha20 is offline  
Old 07/12/2011, 18:37   #15
 
elite*gold: 0
Join Date: May 2009
Posts: 13
Received Thanks: 4
I'd be glad to help out on questions relating to my script, but for general AutoIt questions and troubleshooting there are a lot of helpful threads out there, and as kotaru mentioned the AutoIt documentation is very helpful.

In fact, when I got started on this project the steps were basically 1) what do I want to do here, 2) look at autoit docs for a function that does that, 3) write it up, and 4) test and modify. You don't need any prior knowledge, just apply logic.
cpil is offline  
Reply


Similar Threads Similar Threads
[Release]Macro Files for Macro Manager (AKA BOT)
02/16/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 16 Replies
@all FYI its not a cheat its just a macro file that enables you to run dungeon so you can do other choirs like mussicca said...!! Contents Mana Valley Dungeon Macro File Xenia Frontier Dungeon UP and LEFT (Remap Dungeon)Macro File Ignis Mountain Dungeon Macro File Orc Temple Dungeon Macro File
[Macro] Making an assist Macro
10/02/2008 - General Gaming Releases - 1 Replies
This will tell you how to make an assist macro in the Warhammer Online game. This is a very useful macro that can be used in very busy surroundings such as Realm vs Realms, Scanerios and Public Quest. Step 1: Click the WAR icon Step 2: Click Macros icon Step 3: Click an empty box icon Step 4: Give your macro a name such as "Assist" Step 5: Type the following command /assist charactername Step 6: Click No Icon set box Step 7: Select an icon of your liking Step 8: Click Save
Macro Express (Help with Macro at Basilisk)
08/29/2007 - Conquer Online 2 - 4 Replies
O.K guys, so i have made a few macro's using macro express before. Now that my archer is level 128, i started making waters to plvl at basilisk. Since plvling is so repetitive, i want to leave my archer on bot running in circles around the stack killing bask's. I tried to do this with SV record route macro, but the problem w/ SV is that it will stand in one spot until it kills all the monsters. Thats why i tried to make my own macro express so it just shoots and jumps to the next coord. ...



All times are GMT +1. The time now is 07:53.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.