Minigame Bot

11/19/2008 01:02 uni3#31
Quote:
Originally Posted by uni3 View Post
#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, $UpCritter, $DownCritter, $LCPixel, $RCPixel, $UCPixel, $DCPixel, $pos, $hWnd, $LPixel, $RPixel, $UPixel, $DPixel, $miner
Global $LeftCritter_X, $LeftCritter_Y, $RightCritter_X, $RightCritter_Y $UpCritter_X, $UpCritter_Y, $DownCritter_X, $DownCritter_Y
#EndRegion

$RightCritter = StringSplit("772,500",",")
$LeftCritter = StringSplit("619,562",",")
$UpCritter = StringSplit("618,560",",")
$DownCritter = StringSplit("649,457",",")

;Self Explainitory
$RightCritter_X = $RightCritter[1]
$RightCritter_Y = $RightCritter[2]

$LeftCritter_X = $LeftCritter[1]
$LeftCritter_Y = $LeftCritter[2]

$UpCritter_X = $UpCritter[1]
$UpCritter_Y = $UpCritter[2]

$DownCritter_X = $DownCritter[1]
$DownCritter_Y = $DownCritter[2]

while 1

sleep(20)
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)
$UCPixel = PixelGetColor($UpCritter_X, $UpCritter_Y, $hWnd)
$DCPixel = PixelGetColor($DownCritter_X, $DownCritter_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
$RCPixel = PixelGetColor($RightCritter_X, $RightCritter_Y, $hWnd)
$LCPixel = PixelGetColor($LeftCritter_X, $LeftCritter_Y, $hWnd)
$UCPixel = PixelGetColor($UpCritter_X, $UpCritter_Y, $hWnd)
$DCPixel = PixelGetColor($DownCritter_X, $DownCritter_Y, $hWnd)

;If the Constant Pixel color changes
Sleep("40")
If $RPixel <> $RCPixel then
Send("{RIGHT}",0)
Sleep("300")
EndIf

If $LPixel <> $LCPixel then
Send("{LEFT}",0)
Sleep("300")
EndIf
If $UPixel <> $UCPixel then
Send("{Up}",0)
Sleep("300")
EndIf
If $DPixel <> $DCPixel then
Send("{Down}",0)
Sleep("300")


WEnd

EndFunc

Func Close()
Exit 0
EndFunc



habe mal etwas probiert aber komme einfach nicht weiter ! helft mal bitte aud die sprünge danke ! und keine doofen komentare hier wird ja immer nur gemeckert besser machen !

Ach der steinbot funtzt solltet mal die bildeinstellungen richtig einstellen ! ist vollbild bei mir nach umstellundg des bots !
11/19/2008 09:10 blinko#32
Quote:
Originally Posted by Atheuz View Post
You rather want to use GetDIBits for a faster processing.
[Only registered and activated users can see links. Click Here To Register...]
That's alot like using the GDIPlus.au3 file for autoit.However whenever i use it it never Hook's to Nostale Client for some reason.However the _GDIPlus_LockBits is the method i believe you would use. Again thats copying the image to a buffer to be read/written to. We're gathering the constantly changing pixels from the game as it runs.Placing a Image into a buffer wouldnt really be a good idea to speed up anything
11/19/2008 13:05 Atheuz#33
Quote:
Originally Posted by blinko View Post
That's alot like using the GDIPlus.au3 file for autoit.However whenever i use it it never Hook's to Nostale Client for some reason.However the _GDIPlus_LockBits is the method i believe you would use. Again thats copying the image to a buffer to be read/written to. We're gathering the constantly changing pixels from the game as it runs.Placing a Image into a buffer wouldnt really be a good idea to speed up anything
I'm am sure you already know that the usual way is worser, its constantly creating & destroying which is very bad for the CPU. You could compare it to a code that has a while loop and you always Open, Write & Close the file during the Loop just to be reopened again later, noone wouldn't want to avoid that kind of situation. For me it totally works fine in Nostale, also on my Operation7 Triggerbot its almost twice faster and uses less resources.

Quote:
Placing a Image into a buffer wouldnt really be a good idea to speed up anything
Correct me if I'm wrong, but GetDIBits does only get a small part of a bitmap. While the regular functions used by people here are getting the whole screen. They all have to go through a buffer. If not, you wouldn't have any Problems with AutoIt and those so called _Anti-Cheat_.
11/20/2008 07:08 CrunkJuice#34
Quote:
Originally Posted by Lialf View Post
nunja habe versucht, aber kein peil davon..
ich gehe so vor..
Starte Nostale
gehe ins Miniland
öffne steinbruch.
sobald das Game losgeht starte ich das Bot.
Anleitung:
Esc beenden
F1 start
F2 (wofür ist der da?)

sobald ich auf F1 drück haut er ans Stein immer und immer
Jedoch uaf diese Wriggler macht der nichts.
was mache ich da falsch?
sagt bitte wie ihr vorgeht.
Vielen dank im Vorraus.
F2 macht i-wie dass der auf die wiggler haut
11/20/2008 13:20 Lialf#35
Quote:
Originally Posted by Atheuz View Post
I'm am sure you already know that the usual way is worser, its constantly creating & destroying which is very bad for the CPU. You could compare it to a code that has a while loop and you always Open, Write & Close the file during the Loop just to be reopened again later, noone wouldn't want to avoid that kind of situation. For me it totally works fine in Nostale, also on my Operation7 Triggerbot its almost twice faster and uses less resources.


Correct me if I'm wrong, but GetDIBits does only get a small part of a bitmap. While the regular functions used by people here are getting the whole screen. They all have to go through a buffer. If not, you wouldn't have any Problems with AutoIt and those so called _Anti-Cheat_.
da passiert mir nichts..

wie gehst du vor?
11/20/2008 14:58 Atheuz#36
Quote:
Originally Posted by Lialf View Post
da passiert mir nichts..

wie gehst du vor?
Was meinst du überhaupt?
11/21/2008 16:11 Lialf#37
Quote:
Originally Posted by Atheuz View Post
I'm am sure you already know that the usual way is worser, its constantly creating & destroying which is very bad for the CPU. You could compare it to a code that has a while loop and you always Open, Write & Close the file during the Loop just to be reopened again later, noone wouldn't want to avoid that kind of situation. For me it totally works fine in Nostale, also on my Operation7 Triggerbot its almost twice faster and uses less resources.


Correct me if I'm wrong, but GetDIBits does only get a small part of a bitmap. While the regular functions used by people here are getting the whole screen. They all have to go through a buffer. If not, you wouldn't have any Problems with AutoIt and those so called _Anti-Cheat_.
sorry hab den falschen zitiert wolte den posting von CrunkJuice zitieren
11/22/2008 06:50 witth#38
-*-
11/22/2008 11:16 =) =) xDD#39
was muss man mit dem Text machen ich kapier das nicht richtig =(
12/12/2008 18:00 EliasDestiny#40
Hmm doofe Frage aber wie benutzt man so einen Bot?
Hab hier schon ein bisschen gesucht aber da ich nicht so genau weiß
wonach ich eigentlich suche, nichts gefunden.
Wär nett wenn mir das jemand erklären könnte =)

Ok hab schon was gefunden aber irgendwie weiß ich trotzdem nicht so
genau wo ich den script einfügen muss bzw wie der bot dann startet...
12/13/2008 12:22 ~*~*~ReLaX~*~*~#41
kann jez mal hier irgendwer nen ordentlichn bot hoch holn, bzw erklärn, wie man die benutzt ?
wenn ich einen der bots nehme, dann haun die immer auf den bodn recht von mir
1x stein, 1x bodn, 1x stein, 1x bodn
un so geht das die ganze zeit...
also, falls ich das richtig verstanden hab:
als erstes öffnet man das spiel,
dann drückt man F2

wenn irgendwer hier ne ahnung hat, wiso des bei mir nich klappt, könnt ihr euch ja melden.
es wäre sehr nett..
schon ma danke im vorraus ^^
LG Relax
12/14/2008 18:24 -Ali-#42
also ich drück f2 und dan schlag ich nua auf den stein ein pls erkleren wie töte ich auch diese würmer



edit:/ wens vista is macht rechtskilck und dan als andministrator ausführen aba bei mia schlegt es die wiggler nich
12/18/2008 19:59 =) =) xDD#43
LEUDE ICH BRAUCHE HILFE BEIN SCRIP BITTE WO SOLL ICH DSA HINSPEICHERN?
12/19/2008 12:52 XyZmensch#44
Also im endeffekt is es das:
#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("403,582",",")
$RightCritter = StringSplit("630,582",",")

;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
If $RPixel <> $RCPixel then
Send("{RIGHT}",0)
EndIf


If $LPixel <> $LCPixel then
Send("{LEFT}",0)

EndIf
;If no change is present Keep Hitting that Rock you crackhead i know u like it !
Send("{UP}")
;Sleep(20)


WEnd

EndFunc

Func Close()
Exit 0
EndFunc




Aber wie starte ich diese Au3 Datei?
mfg
12/19/2008 14:48 -Ali-#45
rechtsklick und srcript run oda sowas das erste halt