I updated the script a little more, so the bot have the ability to move around the camera when it cant find any cobwebs, correct the values to ur own resolution (made on 1440*900).
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
Tooltip("Nomnomnom cobwebs ^^...", 0, 0) ;Indicates the item is present on the screen
MouseMove($x1,$y1,3)
MouseClick("left",$x1,$y1,1,3)
Sleep(3000) ;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
If $result=0 Then
Sleep (2000)
MouseMove (722, 445) ;The middle of your screen, x/y mouse position
Sleep (1000)
Tooltip("Searching for cobwebs...", 0, 0) ;Starting to rotate camera
MouseDown("right")
Sleep (1000)
MouseMove (750, 455) ; The middle of your screen plus some right or left amount movement to allow camera rotation
Sleep (1000)
MouseUp("right")
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
I updated the script a little more, so the bot have the ability to move around the camera when it cant find any cobwebs, correct the values to ur own resolution (made on 1440*900).
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
Tooltip("Nomnomnom cobwebs ^^...", 0, 0) ;Indicates the item is present on the screen
MouseMove($x1,$y1,3)
MouseClick("left",$x1,$y1,1,3)
Sleep(3000) ;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
If $result=0 Then
Sleep (2000)
MouseMove (722, 445) ;The middle of your screen, x/y mouse position
Sleep (1000)
Tooltip("Searching for cobwebs...", 0, 0) ;Starting to rotate camera
MouseDown("right")
Sleep (1000)
MouseMove (750, 455) ; The middle of your screen plus some right or left amount movement to allow camera rotation
Sleep (1000)
MouseUp("right")
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
Mind if I modifiy it a bit so you can choose your resolution? ;P
Not at all thats why i post the whole source =D lol, as you know im lazy to do these kind of stuff and too much work atm to have more than 10-15 mins dedicated to these things.
autohotkey uses its own "scripting" (no idea what to call it different)
for example:
the Break stops the Loop, so it will just check for the esc key once.
(directly from the help file command list: ) Loop (normal) Perform a series of commands repeatedly: either the specified number of times or until break is encountered.
that's the only error i can find atm, hope this helps
Now it opens up mabi, it will press but NOT hold alt, and clicks but doesnt go to the gold.
and it just does that over and over untill the gold dissapears
anymore suggestions?
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