[Release] Metallurgy Bot

12/30/2010 21:47 SSDarkLink#16
@gummdrop123, You leave all that stuff in the same folder and it will all work as is, or should at least. :p
Picking out bugs, making bot way faster ect. adding later.
12/31/2010 19:49 PridefulGod#17
Doesn't work :/

I'm at the waterfalls, have metallurgy on F1, have both sieves, but whenever I start it, it simply does 2 steps (moves towards the middle of the screen and stops there). If i click on the Mabinogi, it pauses :O!

Any solution?o3o
Btw I'm grateful for making it, although it doesn't work for me :(

[Edit] After running it as administrator, there's some response. The program clicks "Alt" to search for ores, but as if nothing was found, it turns the camera view and starts again. This repeats itself several times =/

[Edit 2] Could it be that this bot requires an specific font? After tiara stopped working, I had to use Gerent, and the font changed...
01/03/2011 14:42 adam_j#18
All the code seems very unnecessary, as you could just define functions, and then repeat them, as per Diometer's bot.

I thought this had sieve changing when the sieve was done, so I was interested to see how you did this, but, all you were doing is pressing tab, which is hardly a solution..

I am also totally baffled as to why you perform the same search more than once.

To again, point you in the direction of Diometer's bot (it's really useful code, I threw sections of it into a number of bots that I've made since), here is his loot function:

Func Loot()
; Look for and pick up items
Send("{ALTDOWN}")
Sleep(200)

; Search area is 200 x 200 pixel around centre of screen
$loot=0
$counter=0
While ($loot=0 AND $counter<5)
$loot = _ImageSearchArea("loot.BMP",0,$centre_x-100,$centre_y-100,$centre_x+100,$centre_y+100,$loot_x,$loot_y,10 0)
$counter = $counter + 1
Sleep(200)
WEnd
; If we found at least 1 item, we keep looking till we pick up all! :D
While ($loot=1)
MouseMove($loot_x,$loot_y,0)
Sleep(100)
MouseClick("left",$loot_x,$loot_y,3,0)
ResetMouse()
Sleep(300)
$loot = _ImageSearchArea("loot.BMP",0,$centre_x-100,$centre_y-100,$centre_x+100,$centre_y+100,$loot_x,$loot_y,10 0)
WEnd

Send("{ALTUP}")
Sleep(200)
EndFunc


This picks up everything with "ore" in, and, doesn't need to be repeated in your code.

Infact, his bot is so well defined, the main loop is only the basic search/skill/useskill element, and then function calls to perform the other required sections, which keeps it cleaner, and easier to read.

Also makes it easier for the programmer, as you have essentially created standalone scripts that function together.


The only thing I'm not very clear on is how people work out the co-ordinates, but it's cool guys, I don't need a lmgtfy :D


@Pridefulgod (..seriously...?) Just take replace all the images in the folder with images you took yourself. Just use the screenshot function under the Celtic Start button to take pictures of something if you're holding alt.
01/04/2011 05:53 shaggyze#19
@adam_j
that code would also need to be repeated for each loot.BMP or item unless you edited the gems to have "ore" in the name but then it would pick up what? like 15 different items and have no priority or choice.
also not everyone's font or theme is the same so doing it like this means most people have to take all new screen shots or be forced to use same mods or theme; so with my bots they will generally work with many themes and are capable of using several images in case its daytime, nighttime or raining.
Theri made a better find items function that i have improved on, i guess i'll add my bots even though they are unfinished...
01/04/2011 14:52 adam_j#20
Shaggy, my point was, you don't need to write it 90528409278 times, you can just define a function, and then call that function where necessary, making your code NOT a massive, ridiculous block of text.

I don't even know why you're telling me about fonts and screenshots, I just told him to take new ones for the reasons you're apparently telling me about..

No priority? It picks them all up fast enough that they don't vanish. No choice? Why would you put "ore" in the name of something you DIDN'T want to pick up? Hell, why would you ever not want gems to feed to your ego..?
01/05/2011 22:16 larich01#21
is there a way to make it so we can use this at other places? besides the falls, i wouldnt want people to know im botting just because of my location.
01/06/2011 00:21 larich01#22
broken link for the newer version
01/06/2011 00:58 larich01#23
how do you get it so it says silver above where the metalurgy spots are? is it a mod or?
01/06/2011 01:46 shaggyze#24
you need a mod that enables data folder like unofficial tiara [Only registered and activated users can see links. Click Here To Register...]
01/06/2011 02:18 larich01#25
kay is it easy to remove the mod also? or once its in its in untill u uninstall? and her mod doesnt add labels which wouldnt help this hack, i was wondering which adds the labels.
01/06/2011 05:59 shaggyze#26
yes it does add the labels over metallurgy sites and that is required for this bot to work and yes it is easy to uninstall it and no you don't need to uninstall mabinogi to get rid of it
01/07/2011 19:21 SSDarkLink#27
I fixed my bot where it is 100% real speed, I also used a bit of dio's codings some some thanks go out to him. This also features Sieve swapping from your inv or pets, you can choose which you want to do, from pets or from your inv, it has been 100% tested by 3 people, including myself would make 4 that it works perfectly. I plan to release it out before not to long, but not so sure if releasing one with sieve swapping is the proper idea.
01/07/2011 21:37 adam_j#28
Tbh, there's not really a lot of good/bad points either way. Ore might become more available (On EU, it's scarce), or it might flood the market. Demand for ore may fall, ingot sales might rise.

It's not really something that you can gauge, but, with all the negatives come positives.
01/07/2011 22:42 minitaco#29
broken link</3
01/08/2011 00:10 SSDarkLink#30
Bot added with Sieve swapping and such with the new codes as well, Tell me what you guys think.
Download from page 1 and first post by me.