: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
Something like:Quote:
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?
#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
Cant you just put Send ("{ALTDOWN}") at the start? :rolleyes:Quote:
Use my simple script...
Hold ALT...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
#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
#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
#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