#include <GUIConstants.au3>
#include <functions.au3>
#include <bot.au3>
#Include <Date.au3>
GUICreate("nuBot Helper", 400, 600)
GUICtrlCreateTab(10,10,380,580,$TCS_MULTILINE )
;-------------------------------------------------Main
GUICtrlCreateTabitem("Main")
GUICtrlCreateLabel("Press START to start botting",20,55)
GUICtrlCreateLabel("Press SAVE to save your settings",20,70)
GUICtrlCreateLabel("At any time during botting, Press F6 to PAUSE bot",20,85)
GUICtrlCreateLabel("At any time during botting, Press F7 to CLOSE bot",20,100)
$start = GUICtrlCreateButton("START", 140,150, 100,50)
$save = GUICtrlCreateButton("SAVE", 140,210, 100,50)
$load = GUICtrlCreateButton("LOAD", 140,270, 100,50)
$exit = GUICtrlCreateButton("EXIT", 140,330, 100,50)
;-------------------------------------------------Buff
GUICtrlCreateTabitem("Setup")
$buff1check = GUICtrlCreateCheckbox("",50,150,25,25);14
$buff2check = GUICtrlCreateCheckbox("",50,180,25,25)
$buff3check = GUICtrlCreateCheckbox("",50,210,25,25)
$buff4check = GUICtrlCreateCheckbox("",50,240,25,25)
$buff5check = GUICtrlCreateCheckbox("",50,270,25,25)
$buff6check = GUICtrlCreateCheckbox("",50,300,25,25)
$buff7check = GUICtrlCreateCheckbox("",50,330,25,25)
$buff8check = GUICtrlCreateCheckbox("",50,360,25,25)
$buff1duration = GUICtrlCreateInput("",87,153,40,20)
$buff2duration = GUICtrlCreateInput("",87,183,40,20)
$buff3duration = GUICtrlCreateInput("",87,213,40,20)
$buff4duration = GUICtrlCreateInput("",87,243,40,20)
$buff5duration = GUICtrlCreateInput("",87,273,40,20)
$buff6duration = GUICtrlCreateInput("",87,303,40,20)
$buff7duration = GUICtrlCreateInput("",87,333,40,20)
$buff8duration = GUICtrlCreateInput("",87,363,40,20)
$buff1input = GUICtrlCreateInput("1",173,153,35,20)
$buff2input = GUICtrlCreateInput("2",173,183,35,20)
$buff3input = GUICtrlCreateInput("3",173,213,35,20)
$buff4input = GUICtrlCreateInput("4",173,243,35,20)
$buff5input = GUICtrlCreateInput("5",173,273,35,20)
$buff6input = GUICtrlCreateInput("6",173,303,35,20)
$buff7input = GUICtrlCreateInput("7",173,333,35,20)
$buff8input = GUICtrlCreateInput("8",173,363,35,20);37
GUICtrlCreateGroup("Buff [F3]", 20, 100, 205, 295)
GUICtrlCreateLabel("Please check the box on the left if you need the function",20,40)
GUICtrlCreateLabel("Please enter the duration if there is(in seconds)",20,50)
GUICtrlCreateLabel("It is best to use the default slots. DO not duplicate slots",20,60)
GUICtrlCreateLabel("Script will trigger when Durability is critical",20,70)
GUICtrlCreateLabel("IF you are using TOWN option, put TOWN SCROLL at slot 0",20,80)
GUICtrlCreateLabel("Enable",40,120)
GUICtrlCreateGroup("",30, 110, 55, 30)
GUICtrlCreateLabel("Duration",100,120)
GUICtrlCreateGroup("",95, 110, 50, 30)
GUICtrlCreateLabel("secs",130,158)
GUICtrlCreateLabel("secs",130,188)
GUICtrlCreateLabel("secs",130,218)
GUICtrlCreateLabel("secs",130,248)
GUICtrlCreateLabel("secs",130,278)
GUICtrlCreateLabel("secs",130,308)
GUICtrlCreateLabel("secs",130,338)
GUICtrlCreateLabel("secs",130,368)
GUICtrlCreateLabel("Slot",180,120)
GUICtrlCreateGroup("",170, 110, 40, 30)
$buff1slot = GUICtrlCreateUpdown($buff1input)
$buff2slot = GUICtrlCreateUpdown($buff2input)
$buff3slot = GUICtrlCreateUpdown($buff3input)
$buff4slot = GUICtrlCreateUpdown($buff4input)
$buff5slot = GUICtrlCreateUpdown($buff5input)
$buff6slot = GUICtrlCreateUpdown($buff6input)
$buff7slot = GUICtrlCreateUpdown($buff7input)
$buff8slot = GUICtrlCreateUpdown($buff8input)
GUICtrlSetLimit($buff1slot,8,1)
GUICtrlSetLimit($buff2slot,8,1)
GUICtrlSetLimit($buff3slot,8,1)
GUICtrlSetLimit($buff4slot,8,1)
GUICtrlSetLimit($buff5slot,8,1)
GUICtrlSetLimit($buff6slot,8,1)
GUICtrlSetLimit($buff7slot,8,1)
GUICtrlSetLimit($buff8slot,8,1)
;-------------------------------------------------
$clickscreen = GUICtrlCreateCheckbox("Right click on screen before buff",40,479,180,20);66
;-------------------------------------------------
$durcheck = GUICtrlCreateCheckbox("",260,140,25,25)
$durlog = GUICtrlCreateCheckbox("Log out",305,140,60,25)
$durtown = GUICtrlCreateCheckbox("Town",305,160,60,25)
$wepcheck = GUICtrlCreateCheckbox("Try 2th Weapon",260,185,100,25);70
GUICtrlCreateGroup("Durability", 230, 100, 155, 115)
GUICtrlCreateLabel("Enable",250,120)
GUICtrlCreateGroup("",240, 110, 55, 30)
GUICtrlCreateLabel("Reaction",310,120)
GUICtrlCreateGroup("",300, 110, 65, 30)
;-------------------------------------------------
$petcheck = GUICtrlCreateCheckbox("",260,260,25,25);76
$PetAttack = GUICtrlCreateCheckbox("Attack",260,328,50,20)
$PetFollow = GUICtrlCreateCheckbox("Follow",320,328,50,20)
$petslider = GUICtrlCreateSlider(250,298,120,18)
$pethp = GUICtrlCreateInput("6",333,263,35,20);80
$petslot = GUICtrlCreateUpdown($pethp)
GUICtrlCreateGroup("Pet Health [F4]", 230, 220, 155, 132)
GUICtrlCreateLabel("Enable",250,240)
GUICtrlCreateGroup("",240, 230, 55, 30)
GUICtrlCreateLabel("Slot",340,240)
GUICtrlCreateGroup("",330, 230, 40, 30)
GUICtrlCreateGroup("Health %", 240, 284, 140, 40)
GUICtrlSetLimit($petslot,9,1)
GUICtrlSetLimit($petslider,100,0)
GUICtrlSetData($petslider,50)
;-------------------------------------------------
$Berserk = GUICtrlCreateCheckbox("Use Berserk when full",40,500,120,20);88
$Giant = GUICtrlCreateCheckbox("Only For Giants",50,520,120,20)
;-------------------------------------------------
$HPcheck = GUICtrlCreateCheckbox("HP",260,370,40,25)
$HPlog = GUICtrlCreateCheckbox("Log out",305,370,60,25)
$HPtown = GUICtrlCreateCheckbox("Town",305,390,60,25)
$MPcheck = GUICtrlCreateCheckbox("MP",260,450,40,25)
$MPlog = GUICtrlCreateCheckbox("Log out",305,450,60,25)
$MPtown = GUICtrlCreateCheckbox("Town",305,470,60,25)
$HPinput = GUICtrlCreateInput("8",260,395,35,20)
$HPBackUp = GUICtrlCreateInput("7",260,420,35,20)
$MPinput = GUICtrlCreateInput("9",260,475,35,20);98
GUICtrlCreateGroup("Check Pots [F4]", 230, 355, 155, 155)
GUICtrlCreateLabel("Back-Up pots",300,423)
$HPslot = GUICtrlCreateUpdown($HPinput)
$MPslot = GUICtrlCreateUpdown($MPinput)
$HPSave = GUICtrlCreateUpdown($HPBackUp)
GUICtrlSetLimit($HPslot,9,1)
GUICtrlSetLimit($MPslot,9,1)
GUICtrlSetLimit($HPSave,9,1)
;-------------------------------------------------
$WepSkill = GUICtrlCreateCheckbox("Use Skills",40,415,80,25);104
$WepReg = GUICtrlCreateInput("1",130,411,35,20)
$WepChamp = GUICtrlCreateInput("3",130,433,35,20)
$WepGiant = GUICtrlCreateInput("5",130,455,35,20)
$WepTime = GUICtrlCreateInput("150",40,445,50,20);109
GUICtrlCreateGroup("Weapon Skills [F4]", 20, 400, 205, 80)
GUICtrlCreateLabel("Regular",170,415)
GUICtrlCreateLabel("Champion",170,437)
GUICtrlCreateLabel("Giant",170,459)
GUICtrlCreateLabel("msesc",95,448)
$WepNo1 = GUICtrlCreateUpdown($WepReg)
$WepNo2 = GUICtrlCreateUpdown($WepChamp)
$WepNo3 = GUICtrlCreateUpdown($WepGiant)
$WepDelay = GUICtrlCreateUpdown($WepTime)
GUICtrlSetLimit($WepNo1,9,0)
GUICtrlSetLimit($WepNo2,9,0)
GUICtrlSetLimit($WepNo3,9,0)
GUICtrlSetLimit($WepDelay,999,100)
$ShutDown = GUICtrlCreateCheckbox("Shut Down PC",20,557,90,25);114
$NODC = GUICtrlCreateCheckbox("No DC in town",120,557,90,25);115
$OhMamma = GUICtrlCreateInput("5",245,560,35,20);116
GUICtrlCreateLabel("Minimize time",283, 563, 205, 80)
$Protecting = GUICtrlCreateUpdown($OhMamma)
GUICtrlSetLimit($Protecting,60,5)
;-------------------------------------------------
GUICtrlCreateTabitem("Help")
GUICtrlCreateLabel("Follow the picture tutorials if you don't understand at all",20,40)
GUICtrlCreateLabel("",20,55)
GUICtrlCreateLabel("Example Slots(F3):",20,70)
GUICtrlCreatePic("examplef3.jpg",20,90,355,39)
GUICtrlCreateLabel("Example Slots(F4):",20,140)
GUICtrlCreatePic("examplef4.jpg",20,160,355,39)
GUICtrlCreateLabel("Enter the duration shown in the skills section",20,320)
GUICtrlCreatePic("duration.jpg",100,340,200,50)
;-------------------------------------------------
GUICtrlCreateTabitem("Credits")
GUICtrlCreateLabel("Credits all given to En5 for his original bot script",20,40)
GUICtrlCreateLabel("I only added more functions to make botting more enjoyable o.O",20,55)
GUICtrlCreateLabel("Any questions/problems please pm retard00 in GZP",20,70)
GUICtrlCreateLabel("or you may pm retard in 0x33.org",20,85)
GUICtrlCreateLabel("*Note script will work in all resulations.",20,115)
GUISetState(@SW_SHOW)
if FileExists("info.txt") Then
loadbackup()
checkDisable()
Else
checkDisable()
EndIf
While 1
$msg = GUIGetMsg()
if $Botting = True Then
LookFor()
Else
EndIf
Select
Case $msg = $GUI_EVENT_CLOSE
$permission = msgbox(4,"Save Settings","Do you want to save your settings?")
if $permission = 6 Then
if FileExists("info.txt") Then
CreateBackup()
Else
FileWrite("info.txt","")
CreateBackup()
EndIf
EndIf
ExitLoop
Case $msg = $buff1check
if GUICtrlRead($buff1check) = 1 Then
GUICtrlSetState($buff1duration, $GUI_ENABLE)
GUICtrlSetState($buff1input, $GUI_ENABLE)
Else
GUICtrlSetState($buff1duration, $GUI_DISABLE)
GUICtrlSetState($buff1input, $GUI_DISABLE)
EndIf
Case $msg = $buff2check
if GUICtrlRead($buff2check) = 1 Then
GUICtrlSetState($buff2duration, $GUI_ENABLE)
GUICtrlSetState($buff2input, $GUI_ENABLE)
Else
GUICtrlSetState($buff2duration, $GUI_DISABLE)
GUICtrlSetState($buff2input, $GUI_DISABLE)
EndIf
Case $msg = $buff3check
if GUICtrlRead($buff3check) = 1 Then
GUICtrlSetState($buff3duration, $GUI_ENABLE)
GUICtrlSetState($buff3input, $GUI_ENABLE)
Else
GUICtrlSetState($buff3duration, $GUI_DISABLE)
GUICtrlSetState($buff3input, $GUI_DISABLE)
EndIf
Case $msg = $buff4check
if GUICtrlRead($buff4check) = 1 Then
GUICtrlSetState($buff4duration, $GUI_ENABLE)
GUICtrlSetState($buff4input, $GUI_ENABLE)
Else
GUICtrlSetState($buff4duration, $GUI_DISABLE)
GUICtrlSetState($buff4input, $GUI_DISABLE)
EndIf
Case $msg = $buff5check
if GUICtrlRead($buff5check) = 1 Then
GUICtrlSetState($buff5duration, $GUI_ENABLE)
GUICtrlSetState($buff5input, $GUI_ENABLE)
Else
GUICtrlSetState($buff5duration, $GUI_DISABLE)
GUICtrlSetState($buff5input, $GUI_DISABLE)
EndIf
Case $msg = $buff6check
if GUICtrlRead($buff6check) = 1 Then
GUICtrlSetState($buff6duration, $GUI_ENABLE)
GUICtrlSetState($buff6input, $GUI_ENABLE)
Else
GUICtrlSetState($buff6duration, $GUI_DISABLE)
GUICtrlSetState($buff6input, $GUI_DISABLE)
EndIf
Case $msg = $buff7check
if GUICtrlRead($buff7check) = 1 Then
GUICtrlSetState($buff7duration, $GUI_ENABLE)
GUICtrlSetState($buff7input, $GUI_ENABLE)
Else
GUICtrlSetState($buff7duration, $GUI_DISABLE)
GUICtrlSetState($buff7input, $GUI_DISABLE)
EndIf
Case $msg = $buff8check
if GUICtrlRead($buff8check) = 1 Then
GUICtrlSetState($buff8duration, $GUI_ENABLE)
GUICtrlSetState($buff8input, $GUI_ENABLE)
Else
GUICtrlSetState($buff8duration, $GUI_DISABLE)
GUICtrlSetState($buff8input, $GUI_DISABLE)
EndIf
Case $msg = $durcheck
if GUICtrlRead($durcheck) = 1 Then
GUICtrlSetState($durlog, $GUI_ENABLE)
if GUICtrlRead($durtown) = 1 Then
GUICtrlSetState($durlog, $GUI_DISABLE)
EndIf
GUICtrlSetState($durtown, $GUI_ENABLE)
if GUICtrlRead($durlog) = 1 Then
GUICtrlSetState($durtown, $GUI_DISABLE)
EndIf
GUICtrlSetState($wepcheck, $GUI_ENABLE)
Else
GUICtrlSetState($durlog, $GUI_DISABLE)
GUICtrlSetState($durtown, $GUI_DISABLE)
GUICtrlSetState($wepcheck, $GUI_DISABLE)
EndIf
Case $msg = $durtown
if GUICtrlRead($durtown) = 1 Then
GUICtrlSetState($durlog, $GUI_DISABLE)
Else
GUICtrlSetState($durlog, $GUI_ENABLE)
EndIf
Case $msg = $durlog
if GUICtrlRead($durlog) = 1 Then
GUICtrlSetState($durtown, $GUI_DISABLE)
Else
GUICtrlSetState($durtown, $GUI_ENABLE)
EndIf
Case $msg = $petcheck
if GUICtrlRead($petcheck) = 1 Then
GUICtrlSetState($petslider, $GUI_ENABLE)
GUICtrlSetState($pethp, $GUI_ENABLE)
GUICtrlSetState($PetAttack, $GUI_ENABLE)
if GUICtrlRead($PetFollow) = 1 Then
GUICtrlSetState($PetAttack, $GUI_DISABLE)
Else
GUICtrlSetState($PetAttack, $GUI_ENABLE)
EndIf
GUICtrlSetState($PetFollow, $GUI_ENABLE)
if GUICtrlRead($PetAttack) = 1 Then
GUICtrlSetState($PetFollow, $GUI_DISABLE)
Else
GUICtrlSetState($PetFollow, $GUI_ENABLE)
EndIf
Else
GUICtrlSetState($petslider, $GUI_DISABLE)
GUICtrlSetState($pethp, $GUI_DISABLE)
GUICtrlSetState($PetAttack, $GUI_DISABLE)
GUICtrlSetState($PetFollow, $GUI_DISABLE)
EndIf
Case $msg = $PetAttack
if GUICtrlRead($PetAttack) = 1 Then
GUICtrlSetState($PetFollow, $GUI_DISABLE)
Else
GUICtrlSetState($PetFollow, $GUI_ENABLE)
EndIf
Case $msg = $PetFollow
if GUICtrlRead($PetFollow) = 1 Then
GUICtrlSetState($PetAttack, $GUI_DISABLE)
Else
GUICtrlSetState($PetAttack, $GUI_ENABLE)
EndIf
Case $msg = $HPcheck
if GUICtrlRead($HPcheck) = 1 Then
GUICtrlSetState($HPinput, $GUI_ENABLE)
GUICtrlSetState($HPBackUp, $GUI_ENABLE)
GUICtrlSetState($HPlog, $GUI_ENABLE)
if GUICtrlRead($HPtown) = 1 Then
GUICtrlSetState($HPlog, $GUI_DISABLE)
EndIf
GUICtrlSetState($HPtown, $GUI_ENABLE)
if GUICtrlRead($HPlog) = 1 Then
GUICtrlSetState($HPtown, $GUI_DISABLE)
EndIf
Else
GUICtrlSetState($HPinput, $GUI_DISABLE)
GUICtrlSetState($HPBackUp, $GUI_DISABLE)
GUICtrlSetState($HPlog, $GUI_DISABLE)
GUICtrlSetState($HPtown, $GUI_DISABLE)
EndIf
Case $msg = $MPcheck
if GUICtrlRead($MPcheck) = 1 Then
GUICtrlSetState($MPinput, $GUI_ENABLE)
GUICtrlSetState($MPlog, $GUI_ENABLE)
if GUICtrlRead($MPtown) = 1 Then
GUICtrlSetState($MPlog, $GUI_DISABLE)
EndIf
GUICtrlSetState($MPtown, $GUI_ENABLE)
if GUICtrlRead($MPlog) = 1 Then
GUICtrlSetState($MPtown, $GUI_DISABLE)
EndIf
Else
GUICtrlSetState($MPinput, $GUI_DISABLE)
GUICtrlSetState($MPlog, $GUI_DISABLE)
GUICtrlSetState($MPtown, $GUI_DISABLE)
EndIf
Case $msg = $HPlog
if GUICtrlRead($HPlog) = 1 Then
GUICtrlSetState($HPtown, $GUI_DISABLE)
Else
GUICtrlSetState($HPtown, $GUI_ENABLE)
EndIf
Case $msg = $HPtown
if GUICtrlRead($HPtown) = 1 Then
GUICtrlSetState($HPlog, $GUI_DISABLE)
Else
GUICtrlSetState($HPlog, $GUI_ENABLE)
EndIf
Case $msg = $MPlog
if GUICtrlRead($MPlog) = 1 Then
GUICtrlSetState($MPtown, $GUI_DISABLE)
Else
GUICtrlSetState($MPtown, $GUI_ENABLE)
EndIf
Case $msg = $MPtown
if GUICtrlRead($MPtown) = 1 Then
GUICtrlSetState($MPlog, $GUI_DISABLE)
Else
GUICtrlSetState($MPlog, $GUI_ENABLE)
EndIf
Case $msg = $WepSkill
if GUICtrlRead($WepSkill) = 1 Then
GUICtrlSetState($WepReg, $GUI_ENABLE)
GUICtrlSetState($WepChamp, $GUI_ENABLE)
GUICtrlSetState($WepGiant, $GUI_ENABLE)
GUICtrlSetState($WepTime, $GUI_ENABLE)
Else
GUICtrlSetState($WepReg, $GUI_DISABLE)
GUICtrlSetState($WepChamp, $GUI_DISABLE)
GUICtrlSetState($WepGiant, $GUI_DISABLE)
GUICtrlSetState($WepTime, $GUI_DISABLE)
EndIf
Case $msg = $Berserk
if GUICtrlRead($Berserk) = 1 Then
GUICtrlSetState($Giant, $GUI_ENABLE)
Else
GUICtrlSetState($Giant, $GUI_DISABLE)
EndIf
Case $msg = $start
if $Paused = False Then
if FileExists("info.txt") Then
CreateBackup()
Else
FileWrite("info.txt","")
CreateBackup()
EndIf
$Botting = True
;~ GUISetState(@SW_HIDE)
GUICtrlSetData($start,"RESUME")
if ProcessExists("sro_client.exe") Then
checkScreen()
sleep(1000)
else
$error = msgbox(4,"ERROR","Silkroad not executed! Execute now?")
if $error = 6 Then
if Not FileExists("C:/Program Files/silkroad/silkroad.exe") Then
$sroPath = FileOpenDialog("Please select silkroad.exe","C:\Program Files\","Executable(*.exe)")
run($sroPath)
Else
run("c:/program files/silkroad/silkroad.exe")
;run("notepad.exe")
EndIf
sleep(2000)
msgbox(48,"NOTICE","Bot PAUSED, F6 to resume after login")
Pause()
Else
msgbox(48,"NOTICE","Bot has to be terminated")
ExitLoop
EndIf
EndIf
Else
;~ GUISetState(@SW_HIDE)
Pause()
EndIf
Case $msg = $load
$permission = msgbox(4,"Load Settings","Are you sure you to want to load your settings?")
if $permission = 6 Then
loadbackup()
checkDisable()
EndIf
case $msg = $exit
exitloop
Case $msg = $save
$permission = msgbox(4,"Save Settings","Are you sure you to want to save your settings?")
if $permission = 6 Then
if FileExists("info.txt") Then
CreateBackup()
Else
FileWrite("info.txt","")
CreateBackup()
EndIf
EndIf
EndSelect
WEnd
|