So I just figured out how to make a item pick up bot with AutoIt.
1. Download AutoItv3
2. Download ImageSearch (See attachement)
3. Extract ImageSearch.rar
4. Put ImageSearchDLL.dll into C:\Windows
5. Put ImageSearch.au3 into C:\Program Files\AutoIt3\Include
Now you are ready to use the ImageSearch function.
I made the bot so it can pick up Cobwebs (Pretty useful for me Weaving character)
Here's the .au3 code
As you can see, while Mabinogi is open, AutoIt will search the image of the word cobweb
The cobweb.bmp is this image
[Only registered and activated users can see links. Click Here To Register...]
Everytime AutoIt founds this image on your screen, it will move the mouse over it and clicks it, waits for 2 seconds, then rescan your screen for the same image.
When you run the .au3 put a coin or something to hold the ALT key. (I haven't put the hold ALT key in the .au3)
If you want to pick something else, like gold. Hold ALT and make a screenshot of a gold on the ground. Then, cut the image until you can only see the word Gold. Then save it into a .bmp format and change cobweb.bmp
Make sure the image and the .au3 are in the same folder !
[Only registered and activated users can see links. Click Here To Register...]
1. Download AutoItv3
2. Download ImageSearch (See attachement)
3. Extract ImageSearch.rar
4. Put ImageSearchDLL.dll into C:\Windows
5. Put ImageSearch.au3 into C:\Program Files\AutoIt3\Include
Now you are ready to use the ImageSearch function.
I made the bot so it can pick up Cobwebs (Pretty useful for me Weaving character)
Here's the .au3 code
Code:
#include <ImageSearch.au3>
MsgBox(0,"Notice","Click Ok to start. make sure your ATL key is pressed.")
$x1=0
$y1=0
While WinActive("Mabinogi G7") ;Might change depending on the current generation
$result = _ImageSearch("cobweb.bmp",1,$x1,$y1,100) ;change the cobweb.bmp if you want to pick up something else.
if $result=1 Then
MouseMove($x1,$y1,3)
MouseClick("left",$x1,$y1,1,3)
Sleep(2000) ;Enough time for the character to go pick up the cobweb. You can change it if you want (2000 = 2 seconds so 1000 = 1 second)
EndIf
WEnd
The cobweb.bmp is this image
[Only registered and activated users can see links. Click Here To Register...]
Everytime AutoIt founds this image on your screen, it will move the mouse over it and clicks it, waits for 2 seconds, then rescan your screen for the same image.
When you run the .au3 put a coin or something to hold the ALT key. (I haven't put the hold ALT key in the .au3)
If you want to pick something else, like gold. Hold ALT and make a screenshot of a gold on the ground. Then, cut the image until you can only see the word Gold. Then save it into a .bmp format and change cobweb.bmp
Make sure the image and the .au3 are in the same folder !
[Only registered and activated users can see links. Click Here To Register...]
Use the Thanks button [Only registered and activated users can see links. Click Here To Register...]Quote:
I did some changes to the script to make it look a little like mine, with this you can download the OP jpg file and rename to cobweb.jpg and use it directly, and it will automatically hold alt down no need for a coin.
Code:#include <ImageSearch.au3> MsgBox(0,"Notice","Click Ok to start. Make sure you have Mabinogi window maximized.") Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("!{ESC}", "Stop") ;script can be stopped by pressing ESC $x1=0 $y1=0 While (1) Send("{LALT down}") $result = _ImageSearch("cobweb.jpg",1,$x1,$y1,100) ;change the cobweb.jpg if you want to pick up something else. if $result=1 Then MouseMove($x1,$y1,3) MouseClick("left",$x1,$y1,1,3) Sleep(2000) ;Enough time for the character to go pick up the cobweb. You can change it if you want (2000 = 2 seconds so 1000 = 1 second) EndIf WEnd Func TogglePause() $Paused = not $Paused While $Paused ToolTip("paused") sleep(100) WEnd EndFunc Func Stop() ;to allow the script to stop Exit ;same EndFunc ;same