Register for your free account! | Forgot your password?

You last visited: Today at 21:49

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

Advertisement



[Guide] PickUp Bot

Discussion on [Guide] PickUp Bot within the Mabinogi Hacks, Bots, Cheats & Exploits forum part of the Mabinogi category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2009
Posts: 180
Received Thanks: 102
[Guide] PickUp Bot

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 View Post
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
Use the Thanks button
Attached Files
File Type: zip ImageSearch.zip (84.0 KB, 2630 views)
Trismic is offline  
Thanks
69 Users
Old 08/21/2009, 08:43   #2
 
elite*gold: 0
Join Date: Jun 2008
Posts: 17
Received Thanks: 1
Quote:
Originally Posted by Trismic View Post
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 View Post
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)

or would i have to use seprate functions?
cry8wolf9 is offline  
Old 08/21/2009, 14:10   #3
 
elite*gold: 0
Join Date: Nov 2007
Posts: 52
Received Thanks: 1
You can't use:
Code:
$result = _ImageSearch("image1.bmp","image2.bmp","image3.bmp ","image4.bmp",1,$x1,$y1,100)
Because in ImageSearch.au3 function is:
Code:
Func _ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance)
You have to create different functions.
n3m0k54 is offline  
Old 08/21/2009, 14:18   #4
 
elite*gold: 0
Join Date: Nov 2008
Posts: 3,695
Received Thanks: 891
Here are some more Pictures:

Gold (No Background; higher Chance of finding the Item):


Fomo Scroll (No Background; higher Chance of finding the Item):


Gold (Black Background):


Fomor Scroll (Black Background):
Dark Raccoon is offline  
Old 08/21/2009, 14:27   #5
 
elite*gold: 0
Join Date: Jul 2008
Posts: 87
Received Thanks: 98
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
argentino is offline  
Thanks
3 Users
Old 08/21/2009, 14:31   #6
 
elite*gold: 0
Join Date: Jul 2008
Posts: 87
Received Thanks: 98
Sorry for the double post but im pretty sure you can repeat instructions inside a loop cry8wolf9, like this:

$result = _ImageSearch("cobweb.jpg",1,$x1,$y1,100)
$result = _ImageSearch("image2.jpg",1,$x1,$y1,100)
$result = _ImageSearch("image4.jpg",1,$x1,$y1,100)

Long time i dont use Autoit so i dont remember but should work.
argentino is offline  
Old 08/21/2009, 22:18   #7
 
Cloudsdabomb's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 142
Received Thanks: 23
so do we need to put the picture anywhere? i'm confused do i just change the picture of the gold image to cobweb.jpg if i use argentino's script?
Cloudsdabomb is offline  
Old 08/21/2009, 22:39   #8
 
elite*gold: 0
Join Date: Jan 2009
Posts: 180
Received Thanks: 102
Quote:
Originally Posted by cry8wolf9 View Post
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?
MouseClick ( "button" [, x, y [, clicks [, speed ]]] )
So 1 = Click once
and 3 = Speed of the click? I'm not sure.

Quote:
Originally Posted by Cloudsdabomb View Post
so do we need to put the picture anywhere? i'm confused do i just change the picture of the gold image to cobweb.jpg if i use argentino's script?
Change cobweb.jpg into the gold picture file name. If the picture of the gold is named gold.jpg, change cobweb.jpg into gold.jpg
Trismic is offline  
Old 08/21/2009, 23:28   #9
 
elite*gold: 0
Join Date: Nov 2008
Posts: 3,695
Received Thanks: 891
Quote:
Originally Posted by Cloudsdabomb View Post
so do we need to put the picture anywhere? i'm confused do i just change the picture of the gold image to cobweb.jpg if i use argentino's script?
I think I know what you mean.

You just gotta put the Pic you wanna use into the same folder as the .exe/.au3 and use the Pic's name in the script as told above.
Dark Raccoon is offline  
Old 08/22/2009, 16:07   #10
 
Cloudsdabomb's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 142
Received Thanks: 23
k thanks dark
Cloudsdabomb is offline  
Old 08/22/2009, 18:15   #11
 
elite*gold: 0
Join Date: Feb 2008
Posts: 21
Received Thanks: 1
Dark how did you find or make Gold with No Background ?
wossen is offline  
Old 08/22/2009, 18:34   #12
 
elite*gold: 0
Join Date: Nov 2008
Posts: 3,695
Received Thanks: 891
Quote:
Originally Posted by wossen View Post
Dark how did you find or make Gold with No Background ?
I just used a Screenie and cut everything out using Macromedia Fireworks..

Btw, this can also be used to make a GoldFarming Bot.
Dark Raccoon is offline  
Thanks
1 User
Old 08/24/2009, 04:40   #13
 
elite*gold: 0
Join Date: Jun 2008
Posts: 17
Received Thanks: 1
Quote:
Originally Posted by Dark Raccoon View Post
I just used a Screenie and cut everything out using Macromedia Fireworks..

Btw, this can also be used to make a GoldFarming Bot.
i agree and it works great, im loving it
cry8wolf9 is offline  
Old 08/24/2009, 17:31   #14
 
elite*gold: 0
Join Date: Nov 2007
Posts: 52
Received Thanks: 1
It's very useful not only for Mabinogi ^^
n3m0k54 is offline  
Old 08/24/2009, 18:38   #15
 
elite*gold: 0
Join Date: Feb 2008
Posts: 21
Received Thanks: 1
$result = _ImageSearch("cobweb.jpg",1,$x1,$y1,100) can someone help me to understand this what does the 100 do or say?
wossen is offline  
Reply


Similar Threads Similar Threads
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



All times are GMT +1. The time now is 21:50.


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.