Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ;Description
- Written By: Hellbent aka CivReborn On Youtube
- Date Started: April 24th, 2016
- Date Of Last Edit: April 24th, 2016
- Link To Last PasteBin Save:
- Link To Demo / Instructions Youtube Video: https://youtu.be/OIm8Fiwe4eE
- Program Description:
- This is a Quality Of Life Script for the game Time Clickers,
- this script buys all your starting weapons and other starting upgrades and then exits.
- */
- ;*********************************************************************************************************************************
- ;*********************************************************************************************************************************
- ;*********************************************************************************************************************************
- ;*** ***
- ;*** USER ***
- ;*** CONTROLS / SETTINGS ***
- ;*** ***
- ;*********************************************************************************************************************************
- ;*********************************************************************************************************************************
- ;*********************************************************************************************************************************
- Global Set_Starting_Weapon_Level = 100 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; This sets the level that you want to upgrade each of your 5 weapons to at the begining of each Time Warp.
- ; If your level is greater than 1000 for each weapon, the script will batch buy all 5 weapons in batches of 1000 starting with Pulse Pistol.
- ; Any remaining levels will be done in batch size of 100.
- ; Be sure that the batch size is set to "Promotion" before running the script
- ; This only upgrades by 100 or 1000 batch size
- ; The values to use are 100 - 3500.
- ; 100 = Buy each of your 5 weapons to level 100.
- ; 200 = Buy each of your 5 weapons to level 200.
- ; etc.... all the way to 3500.
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Speed_Setting = 1 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ;Sets the delay between every action
- ; If lag is a issue set this to a longer wait time
- ; values are 1 - 4
- ; 1 = 1 second (long wait time, script will be slow) / Shown as Slow on GUI
- ; 2 = 500 ms / Shown as Med on GUI
- ; 3 = 250 ms / Shown as Fast on GUI
- ; 4 = 100 ms (very fast, lag may be a issue) / Shown as Fastest on GUI
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Set_Clickers_To_Idle = 1 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; Sets Click Pistol etc to idle mode
- ; 0 = No
- ; 1 = Yes
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Buy_Click_Upgrades = 1 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; Buys the click upgrades
- ; This needs to be on for the abilities buy option below to work
- ; 0 = No
- ; 1 = Yes
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Buy_Ability_Upgrades = 1 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; Buys the Active Ability upgrades
- ; Needs to be on for Activate Abilities to work
- ; 0 = No
- ; 1 = Yes
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Activate_Abilities = 1 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; Activates the Active Abilities
- ; May not send this command in time for first boss fight
- ; 0 = No
- ; 1 = Yes
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Exit_Once_Done = 1 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; Exit the script once the setup is done
- ; 0 = No
- ; 1 = Yes
- ;---------------------------------------------------------------------------------------------------------------------------------
- Global Buy_Training = 0 ;<<<<<<----------------<<<<< Change This Number <<<<<<----------------<<<<<
- ;----------------------------------
- ;----------------------------------
- ; Sets the script to buy the extra promotion if it is a training level
- ; Only applys when your starting weapon level ends with 600, 700, 800, or 900
- ; This will give you the speed boost
- ; 0 = No
- ; 1 = Yes
- ;*********************************************************************************************************************************
- ;***************************************************************END***************************************************************
- ;************************************************************************************************************************H********
- #SingleInstance, Force
- Global Slow = 0
- Global Med = 0
- Global Fast = 0
- Global Fastest = 0
- Global Turn_On_Idle_Clickers1 = 0
- Global Turn_On_Idle_Clickers2 = 0
- Global Buy_Click_Upgrades1 = 0
- Global Buy_Click_Upgrades2 = 0
- Global Buy_Ability_Upgrades1 = 0
- Global Buy_Ability_Upgrades2 = 0
- Global Activate_Abilities1 = 0
- Global Activate_Abilities2 = 0
- Global Exit_Once_Done1 = 0
- Global Exit_Once_Done2 = 0
- Global Buy_Training1 = 0
- Global Buy_Training2 = 0
- Global Training_True = 0
- ; Gui Layout
- ;-----------------
- ;-----------------
- Gui, Add, Text,x10 y10,Auto Setup Script By: Hellbent aka (CivReborn on Youtube)
- Gui, Add, Text,x10 ,**********************************************************************
- Gui, Add, Text,x10 ,Starting Weapon Level =
- Gui, Add, Edit, x+70 y42 w100 vSet_Starting_Weapon_Level , %Set_Starting_Weapon_Level%
- Gui, Add, Text, x10 ,Turn On Idle Click Weapons?
- Gui, Add, Radio, x+50 vTurn_On_Idle_Clickers1,Yes
- Gui, Add, Radio, x+20 vTurn_On_Idle_Clickers2,No
- Gui, Add, Text, x10 ,Buy Click Upgrades?
- Gui, Add, Radio, x+91 vBuy_Click_Upgrades1,Yes
- Gui, Add, Radio, x+20 vBuy_Click_Upgrades2,No
- Gui, Add, Text, x10 ,Buy Active Ability Upgrades?
- Gui, Add, Radio, x+54 vBuy_Ability_Upgrades1,Yes
- Gui, Add, Radio, x+20 vBuy_Ability_Upgrades2,No
- Gui, Add, Text, x10 ,Activate Abilities?
- Gui, Add, Radio, x+107 vActivate_Abilities1,Yes
- Gui, Add, Radio, x+20 vActivate_Abilities2,No
- Gui, Add, Text, x10 ,Buy Training Level?
- Gui, Add, Radio, x+96 vBuy_Training1,Yes
- Gui, Add, Radio, x+20 vBuy_Training2,No
- Gui, Add, Text, x10 ,Exit Script Upon Completion?
- Gui, Add, Radio, x+54 vExit_Once_Done1,Yes
- Gui, Add, Radio, x+20 vExit_Once_Done2,No
- Gui, Add, Text, x10 ,Set Speed:
- Gui, Add, Radio, x+13 vSlow,Slow /
- Gui, Add, Radio, x+3 vMed,Med /
- Gui, Add, Radio, x+3 vFast,Fast /
- Gui, Add, Radio, x+3 vFastest,Fastest
- Gui, Add, Text,x10 y+10,**********************************************************************
- Gui, Add, Button, x20 y+1 w260 h20 gUpdate_Button, Update
- Gui, Add, Button, x20 y+10 w260 h20 gTest_Open_Game_Button, Test Open Game
- Gui, Add, Button, x20 y+10 w260 h40 gRun_Script_Button, Run Script
- Gui, Add, Text,x10 y+10,**********************************************************************
- Gui, Add, Text, x10 y+1 ,Hotkeys: ctrl+x = ExitApp / ctrl+z = Pause
- Gui, Add, Text, x10 y+5 ,Demo / Tutorial : https://youtu.be/OIm8Fiwe4eE
- Gui, Color, 38D2F8
- GUI, Show, w300 h400, Hellbent
- ;--Hellbent------------------------------------------------------------------------------------------------------------------------
- ;--------------------------------------------------------END-----------------------------------------------------------------------
- ; Button Lables
- ;---------------------
- ;---------------------
- Update_Button:
- Gui, Submit, NoHide
- return
- Test_Open_Game_Button:
- Gui, +AlwaysOnTop
- Open_Time_Clickers()
- Gui, -AlwaysOnTop
- return
- Run_Script_Button:
- Run_Script()
- return
- ;----------------------------------------------------------------------------------------------------------------------------------
- ;--------------------------------------------------------END-----------------------------------------------------------------------
- ; Functions
- ;----------------------
- ;----------------------
- Run_Script()
- {
- Open_Time_Clickers()
- Upgrade_Weapons()
- }
- Sleep_Short()
- {
- if(Slow==0 && Med==0 && Fast==0 && Fastest ==0)
- {
- if(Speed_Setting==1)
- Sleep, 1000
- if(Speed_Setting==2)
- Sleep, 500
- if(Speed_Setting==3)
- Sleep, 250
- if(Speed_Setting==4)
- Sleep, 100
- }
- if(Slow==True)
- {
- Sleep, 1000
- }
- if(Med==True)
- {
- Sleep, 500
- }
- if(Fast==True)
- {
- Sleep, 250
- }
- if(Fastest==True)
- {
- Sleep, 100
- }
- }
- Open_Time_Clickers()
- {
- Sleep, 500
- WinActivate, Time Clickers ahk_class UnityWndClass
- ;WinActivate, Time Clickers
- Sleep, 500
- }
- Set_Batch_Buy_Promotion()
- {
- Loop 3
- {
- Sleep_Short()
- Send, z
- }
- }
- Set_Batch_Buy_Max()
- {
- Sleep_Short()
- Send, z
- }
- Set_Idle_Clickers()
- {
- if(Turn_On_Idle_Clickers1==0 && Turn_On_Idle_Clickers2==0 && Set_Clickers_To_Idle==1)
- {
- Sleep_Short()
- Send, q
- Sleep_Short()
- Send, w
- Sleep_Short()
- Send, e
- ;Hellbent Was Here
- }
- if(Turn_On_Idle_Clickers1==True)
- {
- Sleep_Short()
- Send, q
- Sleep_Short()
- Send, w
- Sleep_Short()
- Send, e
- }
- }
- Upgrade_Active_Abilities()
- {
- if(Buy_Ability_Upgrades1==0 && Buy_Ability_Upgrades2==0 && Buy_Ability_Upgrades==1)
- {
- Loop 10
- {
- Sleep_Short()
- Send, c
- }
- }
- if(Buy_Ability_Upgrades1==True)
- {
- Loop 10
- {
- Sleep_Short()
- Send, c
- }
- }
- }
- Upgrade_Click_Weapons()
- {
- if(Buy_Click_Upgrades1==0 && Buy_Click_Upgrades2==0 && Buy_Click_Upgrades==1)
- {
- Loop 12
- {
- Sleep_Short()
- Send, h
- }
- }
- if(Buy_Click_Upgrades1==True)
- {
- Loop 12
- {
- Sleep_Short()
- Send, h
- }
- }
- }
- Turn_On_Abilities()
- {
- if(Activate_Abilities1==0 && Activate_Abilities2==0 && Activate_Abilities==1)
- {
- Sleep_Short()
- Send, {Space}
- Sleep_Short()
- Send, 7
- Sleep_Short()
- Send, 0
- }
- if(Activate_Abilities1==1)
- {
- Sleep_Short()
- Send, {Space}
- Sleep_Short()
- Send, 7
- Sleep_Short()
- Send, 0
- }
- }
- Upgrade_Weapons()
- {
- extra_clicks = 0
- Time_To_Train_Harder()
- if(Set_Starting_Weapon_Level>=3000)
- {
- Set_Batch_Buy_Max()
- Buy_3k_Weapons()
- Set_Batch_Buy_Promotion()
- extra_clicks = 1
- Set_Starting_Weapon_Level -= 3000
- if(Set_Starting_Weapon_Level==0)
- {
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- }
- else if(Set_Starting_Weapon_Level>=2000)
- {
- Set_Batch_Buy_Max()
- Buy_2k_Weapons()
- Set_Batch_Buy_Promotion()
- extra_clicks = 1
- Set_Starting_Weapon_Level -= 2000
- if(Set_Starting_Weapon_Level==0)
- {
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- }
- else if(Set_Starting_Weapon_Level>=1000)
- {
- Set_Batch_Buy_Max()
- Buy_1k_Weapons()
- Set_Batch_Buy_Promotion()
- extra_clicks = 1
- Set_Starting_Weapon_Level -= 1000
- if(Set_Starting_Weapon_Level==0)
- {
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- }
- if(Set_Starting_Weapon_Level==100)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Buy_100_Weapons()
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==200)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_200_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==300)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_300_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==400)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_400_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==500)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_500_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==600)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_100_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Buy_500_Weapons()
- Buy_100_Weapons()
- if(Training_True==1)
- {
- Buy_100_Weapons()
- }
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==700)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_200_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Buy_500_Weapons()
- Buy_100_Weapons()
- if(Training_True==1)
- {
- Buy_100_Weapons()
- }
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==800)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_300_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Buy_500_Weapons()
- Buy_100_Weapons()
- if(Training_True==1)
- {
- Buy_100_Weapons()
- }
- Exit_When_Done_Setup()
- }
- if(Set_Starting_Weapon_Level==900)
- {
- Set_Batch_Buy_Max()
- Set_Batch_Buy_Promotion()
- Buy_400_Weapons()
- if(extra_clicks==1)
- {
- Buy_100_Weapons()
- }
- ;Hellbent Was Here
- Set_Idle_Clickers()
- Upgrade_Click_Weapons()
- Upgrade_Active_Abilities()
- Turn_On_Abilities()
- Buy_500_Weapons()
- Buy_100_Weapons()
- if(Training_True==1)
- {
- Buy_100_Weapons()
- }
- Exit_When_Done_Setup()
- }
- }
- Time_To_Train_Harder()
- {
- if(Buy_Training1==0 && Buy_Training2==0 && Buy_Training==1)
- {
- Training_True = 1
- }
- if(Buy_Training1==1)
- {
- Training_True = 1
- }
- }
- Exit_When_Done_Setup()
- {
- if(Exit_Once_Done1==0 && Exit_Once_Done2==0 && Exit_Once_Done==1)
- {
- Sleep_Short()
- Msgbox,,, Setup is complete. App will now exit,5
- ExitApp
- }
- if(Exit_Once_Done1==True)
- {
- Sleep_Short()
- Msgbox,,, Setup is complete. App will now exit,5
- ExitApp
- }
- if(Exit_Once_Done2==True||Exit_Once_Done==0)
- {
- Sleep_Short()
- Msgbox,,, Setup is complete.,5
- }
- }
- Buy_1k_Weapons()
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- Buy_2k_Weapons()
- {
- Loop 3
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- }
- Buy_3k_Weapons()
- {
- Loop 5
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- }
- Buy_100_Weapons()
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- Buy_200_Weapons()
- {
- Loop 3
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- }
- Buy_300_Weapons()
- {
- Loop 5
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- }
- Buy_400_Weapons()
- {
- Loop 7
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- }
- Buy_500_Weapons()
- {
- Loop 9
- {
- Sleep_Short()
- Send, a
- Sleep_Short()
- Send, s
- Sleep_Short()
- Send, d
- Sleep_Short()
- Send, f
- Sleep_Short()
- Send, g
- }
- }
- ;----------------------------------------------------------------------------------------------------------------------------------
- ;--------------------------------------------------------END--------------------------------------------------------------------H--
- ; Hotkeys
- ;----------------------
- ;----------------------
- ^x::ExitApp
- ^z::Pause
- ;----------------------------------------------------------------------------------------------------------------------------------
- ;--------------------------------------------------------END-----------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement