Hey :]
I have this i've been playing with learning my way around AutoItv3 for a yearish now
and.
there is a few problems i've encountered.
Ill start and run bot but it stops at the point to click the bottles.
i plan on working on this till you can use it for multiple types of alcohol.
but all im worried about now is Lvl3 [or Grog,Firewater,etc.]
Heres code.
if you and offer any help i'd appreciate it :]
its very... rough. very noob as well. but ehh.
it keeps me thinking. i need help tho with this no clicking problem :\
Speacial thankx to:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
I have this i've been playing with learning my way around AutoItv3 for a yearish now
and.
there is a few problems i've encountered.
Ill start and run bot but it stops at the point to click the bottles.
i plan on working on this till you can use it for multiple types of alcohol.
but all im worried about now is Lvl3 [or Grog,Firewater,etc.]
Heres code.
if you and offer any help i'd appreciate it :]
Code:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.0.0
Author: N.ick
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <GUIConstants.au3>
#include "tt6.au3"
#include "nomadmemory.au3"
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Drunk_On_Grog_Bot", 256, 348, 259, 209)
GUISetBkColor(0xC0C0C0)
$Label1 = GUICtrlCreateLabel("Drunk On Grog Bot", 0, 0, 255, 23)
GUICtrlSetFont(-1, 12, 800, 0, "Arial")
GUICtrlSetBkColor(-1, 0x808080)
$StorageBox1 = GUICtrlCreateGroup("StorageBox1", 16, 64, 225, 41)
GUICtrlSetBkColor(-1, 0x008080)
$Lable2 = GUICtrlCreateLabel("HowMany?:", 112, 80, 55, 17)
$Input1 = GUICtrlCreateInput("0", 176, 80, 49, 21)
$Checkbox1 = GUICtrlCreateCheckbox("Has Some?", 24, 80, 73, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$StorageBox2 = GUICtrlCreateGroup("StorageBox2", 16, 120, 225, 41)
GUICtrlSetBkColor(-1, 0x008080)
$Label3 = GUICtrlCreateLabel("HowMany?:", 112, 136, 55, 17)
$Input2 = GUICtrlCreateInput("0", 176, 136, 49, 21)
$Checkbox2 = GUICtrlCreateCheckbox("Has Some?", 24, 136, 73, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$StorageBox3 = GUICtrlCreateGroup("StorageBox3", 16, 176, 225, 41)
GUICtrlSetBkColor(-1, 0x008080)
$Label4 = GUICtrlCreateLabel("HowMany?:", 112, 192, 55, 17)
$Input3 = GUICtrlCreateInput("0", 176, 192, 49, 21)
$Checkbox3 = GUICtrlCreateCheckbox("Has Some?", 24, 192, 73, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$StorageBox4 = GUICtrlCreateGroup("StorageBox4", 16, 232, 225, 41)
GUICtrlSetBkColor(-1, 0x008080)
$Label5 = GUICtrlCreateLabel("HowMany?:", 112, 248, 55, 17)
$Input4 = GUICtrlCreateInput("0", 176, 248, 49, 21)
$Checkbox4 = GUICtrlCreateCheckbox("Has Some?", 24, 248, 73, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$StorageBox5 = GUICtrlCreateGroup("StorageBox5", 16, 288, 225, 41)
GUICtrlSetBkColor(-1, 0x008080)
$Label6 = GUICtrlCreateLabel("HowMany?:", 112, 304, 55, 17)
$Input5 = GUICtrlCreateInput("0", 176, 304, 49, 21)
$Checkbox5 = GUICtrlCreateCheckbox("Has Some?", 24, 304, 81, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Start = GUICtrlCreateButton("Start", 8, 32, 65, 25)
GUICtrlSetBkColor(-1, 0x808080)
$Adapt_GW = GUICtrlCreateButton("Adapt_GW", 88, 32, 81, 25)
GUICtrlSetBkColor(-1, 0x8808080)
$End = GUICtrlCreateButton("End", 184, 32, 65, 25)
GUICtrlSetBkColor(-1, 0x808080)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
If $nmsg=$Start Then button1()
If $nmsg=$End Then button2()
If $nmsg=$Adapt_GW Then button4()
WEnd
HotKeySet("{END}","_exitit")
HotKeySet("{PAUSE}", "_TogglePause")
Global $Paused = False
func button1()
WinActivate("Guild Wars")
If Not WinActivate("Guild Wars") Then
WinActivate("Guild Wars")
Sleep(500)
ControlMove("Guild Wars", "", "", 0, 0, 800, 600)
EndIf
Sleep(2000)
Call("_Running")
EndFunc
func button2()
Call("_exitit")
EndFunc
func button3()
Call("_TogglePause")
EndFunc
func button4()
call("_anpassen")
EndFunc
func _anpassen()
sleep(250)
ControlMove("Guild Wars", "", "", 0, 0, 800, 600)
EndFunc
Func _exitit()
Exit
EndFunc
Func _TogglePause()
$Paused = NOT $Paused
While $Paused
Sleep(100)
ToolTip("Script is 'Paused'" & @CRLF & @CRLF)
WEnd
ToolTip("Script is running")
If Not WinActivate("Guild Wars") Then
WinActivate("Guild Wars")
EndIf
Sleep(2000)
EndFunc
Func _Running()
While 1
If $Input1 < 251 And GUICtrlRead($Input1)=$GUI_CHECKED Then
_Clickhere()
ElseIf $Input1 = 0 And GUICtrlRead($Input1)=$GUI_CHECKED And $Input2 < 251 And GUICtrlRead($Input2)=$GUI_CHECKED Or $Input2 < 251 And GUICtrlRead($Input2)=$GUI_CHECKED Then
_Clickhere2()
ElseIf $Input1 = 0 And GUICtrlRead($Input1)=$GUI_CHECKED And $Input2=0 And GUICtrlRead($Input2)=$GUI_CHECKED And $Input3 < 251 And GUICtrlRead($Input3)=$GUI_CHECKED Or $Input3 < 251 And GUICtrlRead($Input3)=$GUI_CHECKED Then
_Clickhere3()
ElseIf $Input1 = 0 And GUICtrlRead($Input1)=$GUI_CHECKED And $Input2=0 And GUICtrlRead($Input2)=$GUI_CHECKED And $Input3=0 And GUICtrlRead($Input3)=$GUI_CHECKED And $Input4 < 251 And GUICtrlRead($Input4)=$GUI_CHECKED Or $Input4 < 251 And GUICtrlRead($Input4)=$GUI_CHECKED Then
_Clickhere4()
ElseIf $Input1 = 0 And GUICtrlRead($Input1)=$GUI_CHECKED And $Input2=0 And GUICtrlRead($Input2)=$GUI_CHECKED And $Input3=0 And GUICtrlRead($Input3)=$GUI_CHECKED And $Input4=0 And $Input5 < 251 And GUICtrlRead($Input5)=$GUI_CHECKED Or $Input5 < 251 And GUICtrlRead($Input5)=$GUI_CHECKED Then
_Clickhere5()
ElseIf $Input1 = 0 And $Input2=0 And $Input3=0 And $Input4=0 And $Input5=0 Then
Exit
EndIf
WEnd
EndFunc
Func _Clickhere()
$rndx = Random(35,36)
$rndy = Random(300,301)
ControlClick("Guild Wars", "", "", "left", 2, $rndx, $rndy)
$Input1=($Input1-1)
Sleep(180000)
Call("_Running")
EndFunc
Func _Clickhere2()
$rndx2 = Random(65,66)
$rndy2 = Random(300,301)
ControlClick("Guild Wars", "", "", "left", 2, $rndx2, $rndy2)
$Input2=($Input2-1)
Sleep(180000)
Call("_Running")
EndFunc
Func _Clickhere3()
$rndx3 = Random(95,96)
$rndy3 = Random(300,301)
ControlClick("Guild Wars", "", "", "left", 2, $rndx3, $rndy3)
$Input3=($Input3-1)
Sleep(180000)
Call("_Running")
EndFunc
Func _Clickhere4()
$rndx4 = Random(130,131)
$rndy4 = Random(300,301)
ControlClick("Guild Wars", "", "", "left", 2, $rndx4, $rndy4)
$Input4=($Input4-1)
Sleep(180000)
Call("_Running")
EndFunc
Func _Clickhere5()
$rndx5 = Random(165,166)
$rndy5 = Random(300,301)
ControlClick("Guild Wars", "", "", "left", 2, $rndx5, $rndy5)
$Input5=($Input5-1)
Sleep(180000)
Call("_Running")
EndFunc
it keeps me thinking. i need help tho with this no clicking problem :\
Speacial thankx to:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]