[Guide] PickUp Bot

11/13/2009 01:02 foxz360#61
Could you use this to tell the program to search for Enchant or Burn buttons when someone requests (As in automatically press it when it sees it)? That way you can leave your enchanter online and go afk while it enchants/burn..
11/13/2009 01:19 Trismic#62
Quote:
Originally Posted by foxz360 View Post
Could you use this to tell the program to search for Enchant or Burn buttons when someone requests (As in automatically press it when it sees it)? That way you can leave your enchanter online and go afk while it enchants/burn..
Yes.
It's the same thing, instead of the cobweb image, use the burn/enchant button.
11/13/2009 01:43 foxz360#63
So I can use the same codes but replace the images? Because pressing alt wont make much a of a difference, right?
11/13/2009 01:54 Trismic#64
Quote:
Originally Posted by foxz360 View Post
So I can use the same codes but replace the images? Because pressing alt wont make much a of a difference, right?
yup you can use the same code, you can remove the alt.
11/13/2009 03:57 johnny073412#65
Okay I'm sorry if I sound like a complete scripting noob (havent messed with scripts for a few years :x) but im trying to run a cobweb collecting and a wool collecting script and based off of the scripts here, I'm getting the same error. I mean it will start up and ask me to press okay to continue, but a few seconds after that i get this error

"Line 40(file location)

if $result[0]0="0" then return 0
if result^ ERROR

Error:Subscript used with non-Array variable."


any help please ? :X
11/13/2009 04:06 Trismic#66
Quote:
Originally Posted by johnny073412 View Post
Okay I'm sorry if I sound like a complete scripting noob (havent messed with scripts for a few years :x) but im trying to run a cobweb collecting and a wool collecting script and based off of the scripts here, I'm getting the same error. I mean it will start up and ask me to press okay to continue, but a few seconds after that i get this error

"Line 40(file location)

if $result[0]0="0" then return 0
if result^ ERROR

Error:Subscript used with non-Array variable."


any help please ? :X
Show me your whole code...
I think is because you put " after the variable
11/13/2009 04:29 foxz360#67
"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"

Okay so I did all this then I went and opened ImageSearch.au3 to put the code in right under this:

; Description: Find the position of an image on the desktop
; Syntax: _ImageSearchArea, _ImageSearch
; Parameter(s):
; $findImage - the image to locate on the desktop
; $tolerance - 0 for no tolerance (0-255). Needed when colors of
; image differ from desktop. e.g GIF
; $resultPosition - Set where the returned x,y location of the image is.
; 1 for centre of image, 0 for top left of image
; $x $y - Return the x and y location of the image
;
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
;
; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify
; a desktop region to search

then I saved it and ran it with the coweb.bmp inside that folder but it still don't do anything. I think it's the coweb image but I'm not sure. I saved as jpeg from your first post, then took it in paint and re-saved it as bmp. But then I have 4 different types of bmp: 16-bit, 24-bit, 256-bit, and Monochrome, which do I use?

And does mabi need to be full screen, certain resolution/ font?
11/13/2009 10:06 johnny073412#68
Quote:
Originally Posted by Trismic View Post
Show me your whole code...
I think is because you put " after the variable
;#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")
;$x1=0
;$y1=0
;While (1)
;Send("{LALT down}")
;$result = _ImageSearch("cobweb.jpg",1,$x1,$y1,80)
;if $result=1 Then
; Tooltip("Nomnomnom cobwebs ^^...", 0, 0)
; MouseMove($x1,$y1,3)
; MouseClick("left",$x1,$y1,1,3)
; Sleep(3000)
;EndIf
;If $result=0 Then
; Sleep (2000)
; MouseMove (722, 445)
; Sleep (1000)
; Tooltip("Searching for cobwebs...", 0, 0)
; MouseDown("right")
; Sleep (1000)
; MouseMove (750, 455)
; Sleep (1000)
; MouseUp("right")
; EndIf
;WEnd
;Func TogglePause()
;$Paused = not $Paused
;While $Paused
; ToolTip("paused")
;sleep(100)
;WEnd
;EndFunc
;
;Func Stop()
;Exit ;same
;EndFunc ;same
11/14/2009 01:38 Trismic#69
Quote:
Originally Posted by johnny073412 View Post
;#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")
;$x1=0
;$y1=0
;While (1)
;Send("{LALT down}")
;$result = _ImageSearch("cobweb.jpg",1,$x1,$y1,80)
;if $result=1 Then
; Tooltip("Nomnomnom cobwebs ^^...", 0, 0)
; MouseMove($x1,$y1,3)
; MouseClick("left",$x1,$y1,1,3)
; Sleep(3000)
;EndIf
;If $result=0 Then
; Sleep (2000)
; MouseMove (722, 445)
; Sleep (1000)
; Tooltip("Searching for cobwebs...", 0, 0)
; MouseDown("right")
; Sleep (1000)
; MouseMove (750, 455)
; Sleep (1000)
; MouseUp("right")
; EndIf
;WEnd
;Func TogglePause()
;$Paused = not $Paused
;While $Paused
; ToolTip("paused")
;sleep(100)
;WEnd
;EndFunc
;
;Func Stop()
;Exit ;same
;EndFunc ;same
Remove all the ; at the beginning... The ; is used for commenting.
11/14/2009 07:27 foxz360#70
Quote:
"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"

Okay so I did all this then I went and opened ImageSearch.au3 to put the code in right under this:

; Description: Find the position of an image on the desktop
; Syntax: _ImageSearchArea, _ImageSearch
; Parameter(s):
; $findImage - the image to locate on the desktop
; $tolerance - 0 for no tolerance (0-255). Needed when colors of
; image differ from desktop. e.g GIF
; $resultPosition - Set where the returned x,y location of the image is.
; 1 for centre of image, 0 for top left of image
; $x $y - Return the x and y location of the image
;
; Return Value(s): On Success - Returns 1
; On Failure - Returns 0
;
; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify
; a desktop region to search

then I saved it and ran it with the coweb.bmp inside that folder but it still don't do anything. I think it's the coweb image but I'm not sure. I saved as jpeg from your first post, then took it in paint and re-saved it as bmp. But then I have 4 different types of bmp: 16-bit, 24-bit, 256-bit, and Monochrome, which do I use?

And does mabi need to be full screen, certain resolution/ font?
So how do I fix mine?
11/14/2009 15:37 johnny073412#71
Quote:
Originally Posted by Trismic View Post
Remove all the ; at the beginning... The ; is used for commenting.
lol I dont have ; in the beginning, I was just using them to seperate lines :x
11/25/2009 16:36 cnaoinca#72
I know this is uh newbish i guess but how do you make the script with notepad or something? x.x
11/25/2009 16:55 thekeytothedoor#73
Quote:
Originally Posted by cnaoinca View Post
I know this is uh newbish i guess but how do you make the script with notepad or something? x.x
yes and no. you need autohkey or autoit3. google and read the previous posts in this thread.

EDIT: yes, you edit with notepad. the programs above run the script. file needs to be saved as a .ahk if you're using autohkey. no idea about what kind for autoit3.
11/25/2009 19:28 Dark Raccoon#74
Dont use Notepad.

Use Scite.
11/25/2009 21:47 cnaoinca#75
ok i figured out how to do it but now when i try it out nothing happens there's no error (or atleast it doesnt say there is) it just doesnt pick anything up.