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
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
As you can see, while Mabinogi is open, AutoIt will search the image of the word cobweb
The cobweb.bmp is this image
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 !
Quote:
Originally Posted by argentino
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
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
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
As you can see, while Mabinogi is open, AutoIt will search the image of the word cobweb
The cobweb.bmp is this image
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 !
First i want to say thank you very much this post helped me fix the bot i was having problems with
now i have a few questions to ask i hope you can answer them
Quote:
Originally Posted by Trismic
MouseClick("left",$x1,$y1,1,3)
ok i get that "left" is for the left mouse button
and the $x1 , $y1 are for the stored data but what are the 1 and 3 for?
also how would i go about searching for more than one image? would i be able to use
$result = _ImageSearch("image1.bmp","image2.bmp","image3.bmp ","image4.bmp",1,$x1,$y1,100)
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
Pickup. 04/02/2010 - Metin2 - 2 Replies Hey.
hab mal ne frage..
kann mir jmd den DL oder link zum thread geben,wo der pickup bot ist wo man von anderen die items aufheben kann?
also z.b. sein name draufsteht aber ich das item trotzdem aufheben kann?
danke im vorraus :D
Pickup bot mit großem pickup-Umkreis 11/17/2009 - Metin2 - 1 Replies Ich habe im Metin2 forum gelesen, dass es einen neuen "Pickup_Bot" gibt.
Mithilfe diesem Hack kannst du Items, die nicht in deiner Reichweite sind, aufheben. Giebt es sowas wirklich, oder haben die metin2 GMs sich das nur ausgedacht?
(es gibt ja den Trick, um etwas mit Speedhack aufzuheben, obwohl es aussieht als wärest du noch ausser Reichweite...)
Meinen die damit den Speedhack Trick? Oder gibt es wirklich so einen wunderbaren Hack?
Pickup Bot 09/06/2009 - Metin2 Private Server - 2 Replies Suche einen Pickup bot für longjut2 server bitte um hilfe !!!
[GUIDE] Item Filter Guide | Cabal Crafting & Dungeon Guide by Dewa Gempak. 06/15/2008 - Cabal Guides & Templates - 5 Replies Since its his work, just SHARING it here, i just gonna link his URL from his work. because i dont like copy and pasting other ppl's guides:
http://119.110.98.150:90/ipb/index.php?showtopic= 1145
Q#1: Does it work with CabalRider (PH)?
A#1: Yes, it works, i tried it personally myself.
Q#2: I'm too dumb to understand it, how to make it work.
A#2: Try reading it again and again, if u still don't know how, don't use it then sleep.gif