[Guide] PickUp Bot

09/02/2009 04:28 refinemaniac#31
:confused: i followed the instruction got everything setup and running, but my mouse only hover over the cobwebs. it doesnt seem to be clicking. i used the script from above. can someone help me pls
09/02/2009 16:20 Kittymew#32
This could also be useful for sheep. Might mess with it.
09/02/2009 20:05 Iriai#33
Ello im trying to make a working script for mabinogi bot. This bot needs to be able to attack and pickup items. I can get the bot to do one ore the other but not both and i hae experimented with the script multiple time and i just cant figure it out. Can anyone post a working autoit script that does both kill and pickup?
09/03/2009 02:12 Trismic#34
Quote:
Originally Posted by Iriai View Post
Ello im trying to make a working script for mabinogi bot. This bot needs to be able to attack and pickup items. I can get the bot to do one ore the other but not both and i hae experimented with the script multiple time and i just cant figure it out. Can anyone post a working autoit script that does both kill and pickup?
Something like:

Hold down CTRL
Click
Wait few sec
Click
Up CTRL
Check for gold
Repeat
09/03/2009 12:48 Iriai#35
ive tryed many verious ways but i still cant get it to pick up the items. killing vreatures is eas ybut getting them to pick up the items after is hard. i tryed pixel search and i cant get that to work at all. i got screen shots and set it to 50% still wont pick them up. i tried jpg and bmp still nothing any help be aprictiated. Be even better if someone that has a script that does both to post it here.
09/03/2009 20:42 Dark Raccoon#36
AutoHotkey sounds like AutoIT..

I still prefer AutoIT. :l
09/04/2009 00:20 spazzzedout#37
well... i tried autoit, but when the msg box that tells you to press ok to start and to make sure mabinogi is maximized, i cant figure out how to have mabinogi maximized while still being able to click the ok button

if i just click ok with mabinogi minimized, it just gives me an error message

and i cant click ok when mabinogi is maximized.... should i just remove the box from the script?
09/09/2009 02:26 Trismic#38
Use my simple script...
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
Hold ALT...
09/09/2009 03:20 Dark Raccoon#39
Quote:
Originally Posted by Trismic View Post
Use my simple script...
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
Hold ALT...
Cant you just put Send ("{ALTDOWN}") at the start? :rolleyes:
09/09/2009 08:26 cloudkiller2006#40
Code:
#include <ImageSearch.au3>
$x1=0
$y1=0
While WinActive("Mabinogi : Ancient Secrets of Irinid") ;Might change depending on the current generation
Send("{ALTDOWN}")
$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
edited the code with send("ALTDOWN") and updated the mabinogi title
tho i dont think this one loops
09/18/2009 04:33 Trismic#41
Quote:
Originally Posted by rghosts View Post
hm cant get any of these to work run the script and nothing happens
What did you do?
09/18/2009 20:50 Dark Raccoon#42
Ill convert it into a .exe once I feel like it~
09/22/2009 10:23 XDFACE#43
Is this function able to find images in order?
like picture A then picture B ect. ect.
09/22/2009 19:05 cloudkiller2006#44
yes it is

the line explains it:

_ImageSearch("cobweb.bmp",1,$x1,$y1,100)

xD now just change cobweb.bmp to what you call the picture (and use multiple lines for more searches)

i.e:

Code:
#include <ImageSearch.au3>
While WinActive("Mabinogi : Ancient Secrets of Irinid")
Send {ALTDown}
Cobweb101 = _ImageSearch ("cobweb.bmp",1,$x1,$y1,100)
Goldcoins101 = _ImageSearch ("moneyz.bmp",1 $x1,$y1,100)
	if Cobweb101 = 1 Then
		MouseMove($x1,$y1,3)
		MouseClick("left",$x1,$y1,1,3)
	end if
Sleep(5000) ;5 seconds of waiting
	if Goldcoins101 = 1 Then
		MouseMove($x1,$y1,3)
		MouseClick("left",$x1,$y1,1,3)
	end if
end if
WEnd


(Some parts taken from the first post in the thread, this should work but im still learning so im not sure if the layout is correct)
09/23/2009 21:42 XDFACE#45
Here be my First Script
after using AutoIT for 3 days

Any noticeable mistakes?
Code:
#include <ImageSearch.au3>


MsgBox(0, "MSG", "Press Ok to Start")
WinActivate("Mabinogi : Ancient Secrets of Irinid")
While (1)
	Send("{LALT down}")
	Send("{Ctrl down}")
	$x1 = 0
	$y1 = 0
	;
	; finds the target monter
	$result = _ImageSearch("monster.bmp", 1, $x1, $y1, 0)

	If $result = 1 Then

		MouseMove($x1, $y1, 1)
		MouseClick("Left", $x1, $y1, 1, 1)
		MouseClick("Left", $x1, $y1, 1, 1)
		MouseClick("Left", $x1, $y1, 1, 1)
		MouseClick("Left", $x1, $y1, 1, 1)
		MouseClick("Left", $x1, $y1, 1, 1)
		Send ("{ctrl up}")
		Sleep(2000)
	EndIf
WEnd

While (1)
	; Picks up loot
	$result = _ImageSearch("gold.bmp", 0, $x1, $y1, 0)
	If $result = 1 Then
		MouseMove($x1, $y1, 3)
		MouseClick("Left")
		Sleep(2000)
	EndIf
WEnd