Minigame Bot

11/11/2008 20:24 Chrisiwbi#1
-ist für den steinbruch-BOT 1
PHP Code:
#include <file.au3>
#include <array.au3>
#include <String.au3>
#include <GuiConstantsEX.au3>
#include <Staticconstants.au3>

;Hotkeys
#Region "HotKeys"
HotKeySet("{F1}""SetMiningStuff")
HotKeySet("{F2}""MiningWithTori")
HotKeySet("{ESC}","Close")
#EndRegion

;Globals
#Region "Globals"
Global $LeftCritter$RightCritter$LCPixel$RCPixel$pos$hWnd$LPixel$RPixel$miner
Global $LeftCritter_X$LeftCritter_Y$RightCritter_X$RightCritter_Y
#EndRegion


$LeftCritter StringSplit("524,693",",")
$RightCritter StringSplit("768,693",",")

;
Self Explainitory
$LeftCritter_X 
$LeftCritter[1]
$LeftCritter_Y $LeftCritter[2]

$RightCritter_X $RightCritter[1]
$RightCritter_Y $RightCritter[2]




while 
1
    
    sleep
(100)    
WEnd

Func SetMiningStuff
()
    
$hWnd WinGetHandle('Nostale')
;Use 
this as SOON as the Start button of the Minigame is clicked
;This sets the Pixel colors to watch for.

    
$RCPixel PixelGetColor($RightCritter_X$RightCritter_Y$hWnd)
    
$LCPixel PixelGetColor($LeftCritter_X$LeftCritter_Y$hWnd)    
EndFunc

Func MiningWithTori
()
    
$miner NOT $miner
    
    
While $miner
            $hWnd 
WinGetHandle('Nostale')
            
       ;
This Sets new Variables as the Constant Pixel Color within ths given coords
            $RPixel 
PixelGetColor($RightCritter_X$RightCritter_Y$hWnd)
            
$LPixel PixelGetColor($LeftCritter_X$LeftCritter_Y$hWnd)

            ;If 
the Constant Pixel color changes
            Sleep
("40")
            If 
$RPixel <> $RCPixel then
                Send
("{RIGHT}",0)
                
Sleep("40")
            EndIf
            
            
            If 
$LPixel <> $LCPixel then
                Send
("{LEFT}",0)
                
Sleep("40")
            EndIf
            ;If 
no change is present Keep Hitting that Rock you crackhead i know u like it !
                
Send("{UP}")
                
Sleep("1")
    
            
    
WEnd
    
EndFunc

Func Close
()
    Exit 
0
EndFunc 
-------------BOT2--------------------
kommt noch
11/11/2008 20:27 Abraxas Ethar#2
Es gibt auch Wörter wie Bitte und Danke aber nein immer "Macht man Bot"
Tss ich glaub des wäre auch nicht so leicht oder?
11/11/2008 21:49 Chrisiwbi#3
weis ich nicht deswegen frag ich ja:D
11/12/2008 23:23 uni3#4
Quote:
Originally Posted by Chrisiwbi View Post
weis ich nicht deswegen frag ich ja:D
ein bot schreiben dafür ist eigendlich ganz leicht versuche ich gerade abr habe leider proble beim schreiben da ich mich niht wirklich mit pixelsearch auskenne wer könnte mir denn da mal helfen damit auch ein ausenseier mal was lernt
11/13/2008 08:55 blinko#5
As i've stated i do not speak German but i Believe you are "asking" about a MiniGame Bot.

I haven't finished it yet since it sometime will miss it's attacks however it does work, and i think it's my RAM that make it not work 100% cause when i run it my Nostale client kinda slows down a bit and appears laggy.So if you have good RAM then this should run 100% with a little bit of editing of course.

This Bot is designed for the Quarry (Rock Mining Game) and it was set to a Windowed Client.So basically you'll just have to replace the x & y coordinates for the pixel watching and you'll be fine.But Test this and see how it works !

*Also this is for Nostale UK so you'll maybe have to change the WinGetHandle('Nostale') piece
11/13/2008 13:29 Chrisiwbi#6
THX (aber eigentlich kommt es zu spät ich hab selber mit pixelsearch einen gemacht
MFG Chrisiwbi

THX (but actually it is too late I have pixels themselves with a search made
MFG Chrisiwbi
11/13/2008 17:44 Souljaboy1996#7
poste den bot ma Chrisiwbi
11/14/2008 08:04 blinko#8
Quote:
Originally Posted by Chrisiwbi View Post
THX (aber eigentlich kommt es zu spät ich hab selber mit pixelsearch einen gemacht
MFG Chrisiwbi

THX (but actually it is too late I have pixels themselves with a search made
MFG Chrisiwbi
I suppose you COULD have it do a gradient color pixel search and scan through all the reds,blues,greens,yellows but thats too much work, Pixel Search also runs more CPU than the pixelgetcolor, however if you can just make the little critters themselves one solid color ^^ you'll have a perfect minigame bot.
11/14/2008 12:22 drunkenmonkey77#9
Sitze schon mittlerweile seit fast ner woche an einem minigame bot, und der hochgeladene bot von blinko tut auch nicht das, was er sollte...

wenn ich eine lösung gefunden habe, werde ich die den hochladen...
ansonsten bleibt ja bis dahin nicht großartig was übrig, als die games selbst zu spielen.
11/14/2008 14:02 Chrisiwbi#10
so der minigame bot ist oben
11/14/2008 14:24 Souljaboy1996#11
das is nur der script von blinko
11/14/2008 17:52 Chrisiwbi#12
jap aber ich hab es verbessert und abgeändert

mein böt für die Baumstäme hat ein Problem ich finde keine Farbe woran ich die Baumstamm erkennen kann^^
EDIT: is doch kein Problem^^
11/14/2008 23:33 uni3#13
Quote:
Originally Posted by Chrisiwbi View Post
Kann mal wer einen Minigame bot machen ??
:):):):rolleyes::rolleyes::rolleyes::cool::cool:
Bitte (o hätte ich fast vergessen^^)
-ist für den steinbruch-BOT 1
PHP Code:
#include <file.au3>
#include <array.au3>
#include <String.au3>
#include <GuiConstantsEX.au3>
#include <Staticconstants.au3>

;Hotkeys
#Region "HotKeys"
HotKeySet("{F1}""SetMiningStuff")
HotKeySet("{F2}""MiningWithTori")
HotKeySet("{ESC}","Close")
#EndRegion

;Globals
#Region "Globals"
Global $LeftCritter$RightCritter$LCPixel$RCPixel$pos$hWnd$LPixel$RPixel$miner
Global $LeftCritter_X$LeftCritter_Y$RightCritter_X$RightCritter_Y
#EndRegion


$LeftCritter StringSplit("524,693",",")
$RightCritter StringSplit("768,693",",")

;
Self Explainitory
$LeftCritter_X 
$LeftCritter[1]
$LeftCritter_Y $LeftCritter[2]

$RightCritter_X $RightCritter[1]
$RightCritter_Y $RightCritter[2]




while 
1
    
    sleep
(100)    
WEnd

Func SetMiningStuff
()
    
$hWnd WinGetHandle('Nostale')
;Use 
this as SOON as the Start button of the Minigame is clicked
;This sets the Pixel colors to watch for.

    
$RCPixel PixelGetColor($RightCritter_X$RightCritter_Y$hWnd)
    
$LCPixel PixelGetColor($LeftCritter_X$LeftCritter_Y$hWnd)    
EndFunc

Func MiningWithTori
()
    
$miner NOT $miner
    
    
While $miner
            $hWnd 
WinGetHandle('Nostale')
            
       ;
This Sets new Variables as the Constant Pixel Color within ths given coords
            $RPixel 
PixelGetColor($RightCritter_X$RightCritter_Y$hWnd)
            
$LPixel PixelGetColor($LeftCritter_X$LeftCritter_Y$hWnd)

            ;If 
the Constant Pixel color changes
            Sleep
("40")
            If 
$RPixel <> $RCPixel then
                Send
("{RIGHT}",0)
                
Sleep("40")
            EndIf
            
            
            If 
$LPixel <> $LCPixel then
                Send
("{LEFT}",0)
                
Sleep("40")
            EndIf
            ;If 
no change is present Keep Hitting that Rock you crackhead i know u like it !
                
Send("{UP}")
                
Sleep("1")
    
            
    
WEnd
    
EndFunc

Func Close
()
    Exit 
0
EndFunc 
-------------BOT2--------------------
kommt noch




wenn er ml das machen würde was er soll der haut bei mir immer daneben
kontrolliertmal bitte ob der bei euch läuft
11/15/2008 17:07 Chrisiwbi#14
Bei mir get es ohne daneben zu hauen
11/15/2008 17:56 Shantal123#15
was soll ich mit dem Gekrakel da oben machen??^^
Wo soll ich das einfügen??