hi i have a request, Im playing a certain game that needs a lot of farming.. i already have a code that finds the monster and kill it but my code is not yet complete. If someone could write me a code that will determine if the monster im killing is still alive and wait until my character kills it before switching to other monster.. I could post my code here if someone will be willing to add some revisions of it.. btw im playing Flyff private server..
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#Include <FastFind.au3>
I refactor your code, can't test it because i don't play the game, but you will have to change to your values in the code, there is a bunch of comments and image reference for u to make it work.
Code:
#Include <FastFind.au3>
Global $Running = False
; $states -> "unknown","fighting","searching"
Global $state = "unknown"
HotKeySet("{PGUP}", "start")
HotKeySet("{PGDN}", "stop")
HotKeySet("{F10}", "pause")
;Function called to check if a monster is selected, it determines it by searching for blue bar that is below HP bar
;Check image for reference
Func checkMonsterSelected()
;searchBoxX0 left coordinate of pixel search area
;searchBoxY0 top coordinate of pixel search area
;searchBoxX1 right coordinate of pixel search area
;searchBoxY2 bottom coordinate of pixel search area
;From image reference this is the rectangle in violet
;(searchBoxX0,searchBoxYo)
;╔════════════════════════════════════════════════╗
;║ HP Bar ============================= ║
;║ ║
;║ Blue Bar ============================= ║
;╚════════════════════════════════════════════════╝
;(searchBoxX1,searchBoxY1)
;Change this to your box search coordinates (u can use autoit window info for this)
$searchBoxX0 = 100
$searchBoxY0 = 100
$searchBoxX1 = 400
$searchBoxY1 = 400
;PUT BLUE BAR COLOR IN HERE
$mobSelectedBlueBarColor = 0x00000000
;If monster found change state to fighting otherwise unknown
$pixel = FFNearestSpot( $searchBoxX0,$searchBoxY0,$searchBoxX1,$searchBoxY1, $mobSelectedBlueBarColor, false)
If IsArray($pixel) = True Then
$state = "fighting"
Else
$state = "unknown"
EndIf
EndFunc
While Sleep(15)
If $Running Then
;if state unknown or searching
If $state <> "fighting" Then
$state = "searching"
;[I belive this is for clicking a monster]
$pixel = FFNearestSpot( 1, 1, 1237, 91, 0xFFFAA5, false)
If IsArray($pixel) = True Then
MouseMove($pixel [0], $pixel [1], 1)
MouseDown ("Left")
Else
;[and this for walking around if no monster found]
Dim $box[4] = [253, 178, 555, 376]
MouseClick("left", Random($box[0], $box[2]), Random($box[1], $box[3]))
Sleep(3000)
EndIf
EndIf
checkMonsterSelected()
EndIf
ToolTip($state,0,0,"Current State")
WEnd
Func start()
$Running = Not $Running
WinActive("Mighty Flyff - ThomaShelby")
WinMove("Mighty Flyff - ThomaShelby", "", 0, 0)
EndFunc
Func pause()
$Running = False
EndFunc
Func stop()
Exit 0
EndFunc ;==>stop
Ich bin dabei ein Bot zu schreiben Funktion ist quasi im Code erklärt alle X millisekunden eine bestimmte Taste drücken. Doch kommen wir nun zum Problem. Ohne WinGetTitle Funktioniert es nicht. AHK script und Logitech G Tasten fuktionieren komplett nicht. Mein Autoit Script funktioniert nur unter umständen wenn ich in Game mit meiner Tastatur ALT oder mal Leertaste drücke oder die Maus bewege. Es braucht paar anläufe damit der wirklich Registriert das der Makro Enter drückt dann funktioniert es Problemlos. Die Hotkeys zum Start funktioniert im Spiel teilweise aber Stop und Ende funktioniert im Spiel garnicht. Fenstermodus und Vollbildmodus Probiert aber die Chancen im Fenstermodus sind höher...
Func Start ()
While 1
If WinGetTitle("") = "Fenstername" Then Send("{enter}")
Sleep (100)
WEnd
EndFunc
Func Ende ()
Exit
EndFunc
Func Pause()
While 1
Sleep(999999999999999)
WEnd
EndFunc
While 1
Sleep(10)
WEnd
Fenstername füge ich hinzu mit Autoit Windows Info.
€dit: Falls der Anlauf geklappt hat wird im Spiel die Taste ALT festgehalten so das ich mit den Hotkeys GeForce Experience Hotkeys öffnen oder auch etwaige andere Hotkeys in Windows. Echt etwas komisch alles ^^. Ich habe jetzt kein Fensternamrn eingegeben aus dem Grund das ich in anderen Spielen vor dem gleichen Problem hatte das teilweise sogar komplett keine Makro keys registriert wurden sind. Daher suche ich nun eine komplett Lösung vielleicht hat jemand eine Idee.
Hey, im looking for someone who can fix this Minigame from the BDO fishing Bot.
Github link for the unedited version:
File-upload for the edited version with new pics and a image is inside of the folder how the minigame looks.
I fixed pretty much everything but i dont understand how the minigame works ._.
I spend alrdy a week on this and cant get it to work
Would be nice if someone can take a look into it.
Edit: i just wanna the WASD Minigame to be fixed, everything else im gonna fix myself
AutoIt Script Requests 07/31/2008 - Dekaron - 10 Replies Meh...bored with my scripts atm (releasing another tomorrow...), so I'm gonna ask you all what you want in a script. Post your ideas here.