Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 11:35

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt Coder Brauche hilfe

Discussion on AutoIt Coder Brauche hilfe within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 57
Join Date: Jan 2009
Posts: 128
Received Thanks: 152
AutoIt Coder Brauche hilfe

Es ist ein Angelbot oder eher soll einer werden (für metin2) nur leider starte oder schließt er net wenn ich auf F11 bzw. F12 klicke warum?

Code:
opt ("MouseCoordMode",2)
opt ("PixelCoordMode",2)
Msgbox(0,"Angelbot","stellt metin2 auf Fesntermodus mit der Größe 1024x768 32bpp und Gamma wert 3")
while 2
	sleep(100)
WEnd
HotKeySet("{F11}","_Main")
HotKeySet("{F12}","_Exit2")
Func _Main()
	while 1
	_Koedersuche()
	_NimmKoeder($SlotNr)
	_AngelHinein()
	_BlasenWarten()
	_Rausziehen()
	sleep(2000)
WEnd

EndFunc
Global $Slot [8][2]
$Slot[1][0] = 442
$Slot[1][1] = 747
$Slot[2][0] = 474
$Slot[2][1] = 747
$Slot[3][0] = 506
$Slot[3][1] = 747
$Slot[4][0] = 538
$Slot[4][1] = 747
$Slot[5][0] = 584
$Slot[5][1] = 747
$Slot[6][0] = 616
$Slot[6][1] = 747
$Slot[7][0] = 648
$Slot[7][1] = 747
$Koeder = 0x8A736C
$FischBlase = 0xECE8EC
$KoederSlot = _Koedersuche()
$min = 1800
$max = 2300

Func _Koedersuche()
	For $i = 1 to UBound($Slot) -1
		If PixelGetColor($Slot[$i][0],$Slot[$i][1]) = $Koeder Then
			return $i
		EndIf
	Next
Return 0
	
EndFunc
Func _NimmKoeder($SlotNr)
	If $SlotNr > 4 Then
		$Taste = "F" & ($SlotNr -4)
		Elseif $SlotNr = 0
		Msgbox(0,"Angelbot","Keine Köder mehr!")
		Exit
	Else
		$taste = $SlotNr
	EndIf
	Send("{" & $Taste & " DOWN}")
	sleep(500)
	Send("{" & $Taste & " UP}")
EndFunc
Func _AngelHinein()
	Send ("{F4 DOWN}")
	sleep(500)
	Send ("{F4 UP}")	
EndFunc
Func _BlasenWarten()
	While 1
		$Coord = Pixelsearch(337,13,657,348,$FischBlase,10)
		If Not @error Then
			Exit Loop()
		EndIf
		Sleep(100)
	WEnd
EndFunc
Func _Rausziehen()
	$Wartezeit = Random($min,$max,1)
	sleep($Wartezeit)
	Send("{F4 DOWN}")
	sleep(500)
	Send("{F4 UP}")
EndFunc
Func _Exit2()
	Exit
EndFunc
Knower is offline  
Old 10/12/2009, 22:11   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Und warum nen pixelbot? Geht anders doch viel schöner...

btw, wir haben ne autoit section.
MoepMeep is offline  
Old 10/12/2009, 22:44   #3
 
^darkwing's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 148
Received Thanks: 31
Code:
HotKeySet("{F11}","_Main")
HotKeySet("{F12}","_Exit2")
Der Teil gehört wohl eher in die Hauptschleife deines Programmes.
^darkwing is offline  
Reply


Similar Threads Similar Threads
Brauche Hilfe mit AutoIT
04/01/2012 - AutoIt - 9 Replies
Hallo zusammen, ich brauche mal Hilfe mit einem Programm. Es ist ein werbebot. So soll er funzen: 1.) Einen Text eingeben der... 2.) ... in einem wählbaren abstand ... 3.) ... nach einer wählbaren wartezeit geschrieben werden soll. Das Problem liegt bei Punkt 3, der im folgenden Code zu finden ist.
Brauche Hilfe bei Autoit
06/08/2010 - AutoIt - 16 Replies
Hallo leute Könnt ihr bitte Mir Helfen ich hab vor ein hack für 4story zu schreiben aber bei mir klappt was nicht #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <NomadMemory.au3> #include <StaticConstants.au3>
AutoIt Coder Brauche hilfe
10/12/2009 - Metin2 Private Server - 4 Replies
#Closed Pls
brauche hilfe (AutoIt)
07/08/2008 - Metin2 - 8 Replies
brauchte ein script für mich und habe es versucht zu schreiben... so siehts jetzt aus und ich bekomme dauernd errors HotKeySet ( "{Numpad1}" , "Start" ) HotKeySet ( "{Numpad0}" , "Ende" ) While (1) Sleep (1000) WEnd



All times are GMT +1. The time now is 11:35.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.