Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #Warn
- SendMode Input
- SetWorkingDir %A_ScriptDir%
- ;_______________________________
- ; Global Usage
- ;_______________________________
- ; Date of last update: April 10th, 2016
- ;Added the extra clicks needed at reset
- ;Added starting weapons 3000 and 3500
- ;Added weapons 5500 - 6500 for longer runs
- global Player = 666
- global count = 0
- global Colour = 0
- global BRed = 0x000040
- global BBlack = 0x000000
- global BOrange = 0x007BFF
- global BBlue = 0xFF6700
- global DBlue = 0x401A00
- global BGreen = 0x00FF29
- global BGreen2 = 0x00E525
- global DGreen2 = 0x004029
- global DGreen = 0x00400A
- global DRed = 0x000020
- global DBlack = 0x000001 ;need to fix
- global DOrange = 0x001F40
- global Times_Restarted = 0
- global Reset = 0
- global Weapon_Level = 100
- global SlowDown = 0
- global SlowItEvenMore = 0
- global Display_Weapon_Name = 0
- global Set_Colour = 0
- global Set_Weapon = 0
- global X = 0
- global Y = 0
- global Temp = 0
- global Colour_Fail = 0
- global Reset_Ticks = 0
- global Highest_SlowDown = 0
- global Lowest_SlowDown = 0
- global Total_SlowDown = 0
- global Number_of_SlowDowns = 0
- global Total_SpeedUps = 0
- global Number_of_SpeedUps = 0
- global Training = 0
- global Training_Is_Set = 0
- global First_Skip = 0
- global Red_Count = 0
- global Is_Black = 0
- global Red_First_Pass = 0
- global Red_Second_Pass = 0
- global Skip = 0
- global First_Stall = 0
- global Starting_weapon_choice = 0
- global Red_Wait = 0
- global Wait_After_Start = 0
- global Ignore_Reset = 0
- global Resets_Ignored = 0
- global Trigger_Reset = 0
- global Activate_Minimize_Mode = 0
- global Sanity_Mode = 0
- global How_Sane_Do_You_Want_To_Be = 0
- global Extra_OverPowered_Delay = 0
- global Stop_Weapon_Upgrade = 0
- global Set_Weapon_Stop_Level = 0
- global Set_Weapon_Delay_Time = 0
- CoordMode, Pixel , Window ; added this to fix issue of other users not getting the right colour
- ;------------------------------------------------------------------------------------------------------------
- ;---------------------------------------------------------------------------------------------------
- ;-------------------------------------------------------------------------------------
- ;-----------------------------------------------------------------------
- ; Update Log
- ; added weapon levels 4500 - 5500 for longer runs before auto reset.
- ; added a usre options area, user will be able to quickly make any changes they need from one location now.
- ; added a control to change the delay before entering training rounds.
- ; added a control to set delay option for players whos starting gold would put them early training levels.
- ; added a control to add extra ignore reset commands so it will ignore more than just the OP start if player wants.
- ; added a control for reset value into user opitons area.
- ; added a control to turn on or off the minimize feature
- ; added "Sanity Mode" as a control
- ; added control to stop a weapon upgrade at a level for a short time.
- ; Pause has been changed to Ctrl+z
- ; ExitApp has been changed to Ctrl+x
- ; Next update will feature
- ; A way to skip a weapon if you upgrade yourself by mistake
- ; All the new short cut keys will be added to replace all the clicks but the reset clicks.
- ; Not sure what else at the moment, if you have any ideas on what you would like to see let me know.
- ;--------------------------------------------------------------------------------------------------------------------
- Starting_weapon_choice = 500 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;----------------------------
- ;----------------------------
- ; This will buy your stating weapon level to 100, 500, 1000, 1500, 2000, 2500, 3000, or 3500.
- ; This will speed up the first few mins of the game.
- ; change the value of "Starting_weapon_choice" to 100, 500, 1000, 1500, 2000, 2500, 3000, or 3500.
- ; Make sure you have the gold to do your weapon level choice! <<<<----- All 5 Weapons!!!!!!!!
- ;158/200 = 3000 weapons
- ;195/200 = 3500 weapons
- ;-----------------------------------------------------------------------------------------------------
- Red_Wait = 4 ; <<<<<<<<<<<<<<<<-------------------------- Change This Number <<<<<<<<<<<<<<<<<<<<
- ;--------------------
- ;---------------------
- ; sets a delay before entering traing levels
- ; lets you build up gold to buy deeper into the training levels
- ; uses up extra DPS before the slow down of training
- ; values are 0 - 7
- ; 0 = no delay
- ; 1 = 30 sec delay
- ; 2 = 1 min delay
- ; 3 = 2 min delay
- ; 4 = 3 min delay <--------------- default recomended for first few runs
- ; 5 = 4 min delay
- ; 6 = 5 min delay
- ; 7 = 6 min delay
- ;----------------------------------------------------------------------------------------------------------------
- Wait_After_Start = 0 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;--------------------
- ;---------------------
- ; This sets a wait time for right after you buy your starting weapon level
- ; This is only used if your starting weapon level is just before a traing level (i.e 500, 1500, 2500)
- ; Only use this if your DPS is much higher than it needs to be
- ; This will allow you to keep your weapon speed maxed out for a few mins before buying into training
- ; If your starting gold can buy you to the last training level leave this at "0"
- ; A value greater that 0 will disable "Stop_Weapon_Upgrade". <<<<<<----------------- Important Info
- ; values are 0 - 5
- ; 0 = no delay <<<<<------- use as default
- ; 1 = 2 min delay
- ; 2 = 4 min delay
- ; 3 = 6 min delay
- ; 4 = 8 min delay
- ; 5 = 10 min delay
- ;--------------------------------------------------------------------------------------------------------------------
- Ignore_Reset = 3 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Sets the number of times the conditions for a game reset are ignored
- ; (Reset is based on number of times a weapon fails to be fully upgraded from one lvl to the next)
- ; Ignoring a reset for is needed for OP Mode <<<<<<---------------------------------- important info
- ; Usefull for preventing a reset caused by Rainbow balls
- ; 2 - 4 reset ignores are the recomended amount <------------ Do This
- ; values are 0 - 100,000,000,000,000,000,000,000,000,000,000 <--- Be smart about this
- ;----------------------------------------------------------------------------------------------------------------------------------------
- Trigger_Reset = 4 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Sets how many times a weapon can fail to be fully upgraded before a game reset is triggerd
- ; If Ignore_Reset's are remaining the reset is ignored
- ; Play around with different values after every few runs to try to find the value that gets you the most TC/min.
- ; The value of this should be between 3 - 5 (Recomended) <------------Do This
- ; values are 1 - 100,000,000,000,000,000,000,000,000,000,000 <--- Be smart about this
- ;---------------------------------------------------------------------------------------------------------------------------------------------
- Activate_Minimize_Mode = 0 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Turns on or off the function to minimize the game after each failed atempt to buy a weapon.
- ; Works well for users that want to do other things on thier computer other than watch the bot buy thier weapons.
- ; *Warning* Game will pop open when you are not expecting it to, if you are typing, there is the risk that you will buy a weapon upgrade when it does.
- ; Feature works well with "Sanity_Mode"
- ; Not needed for when away from computer.
- ; Values are
- ; 0 = Off (window stays on game) <<<<------- use as default
- ; 1 = On (window opens and closes as needed)
- ;------------------------------------------------------------------------------------------------------------------------------------------------
- Sanity_Mode = 0 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Turns on or off a "extra delay" for after a weapon upgrade fail.
- ; Ment to be used with Activate_Minimize_Mode turned on.
- ; Game will remain minimized for longer.
- ; *Warning* Will reduce the number of TC/min earned, but you keep more of you sanity :) <<<<------- Important Info
- ; Turn Off if you are not going to be at your computer, or if Minimize Mode is turned off.
- ; Values are.
- ; 0 = Off. <<<<<-------- use as default
- ; 1 = On.
- ;----------------------------------------------------------------------------------------------------------------------------------------------------
- How_Sane_Do_You_Want_To_Be = 1 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Sets how long the "extra delay" after a weapon upgrade fail will be.
- ; Only works if Saintiy_Mode is turned on.
- ; This will keep the game minimized longer.
- ; *Warning* This will reduce your TC/min. <<<<------- Important Info
- ; Values are:
- ; 1 = 30 seconds
- ; 2 = 1 min
- ; 3 = 1 min, 30 seconds
- ; 4 = 2 mins
- ; 5 = 3 mins
- ;--------------------------------------------------------------------------------------------------------------------------------------------------
- Extra_OverPowered_Delay = 3 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Sets a "extra delay" for when in over Powered mode at the begining of a run.
- ; Once OP is over the delay cuts off.
- ; Is additive with Sanity Mode. <<<<------- Important Info
- ; Is not needed if Minimize Game is turned off.
- ; The values are:
- ; 0 = no delay <<<------- use as default
- ; 1 = 1 min
- ; 2 = 2 min
- ; 3 = 3 min
- ;-------------------------------------------------------------------------------------------------------------------------------------------------
- Stop_Weapon_Upgrade = 0 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Turns on or off a delay at the begining of a run
- ; This is related to your starting gold.
- ; Once a set weapon has reached your preset level (See below) it will turn on a one time delay before upgrading again.
- ; Usefull to keep weapon sets at max speed (Full Upgrade Level) for longer
- ; Best used to keep Pulse Pistol, Flak Cannon, and Spread Shot Maxed.
- ; Only use if DPS is high.
- ; Intended for "NON" training levels. <<<<<------- DUH
- ; If you have set a delay in "Wait_After_Start" greater that 0, this delay will be disabled <<<<<------ Important Info
- ; Weapon level to stop at is set below this control.
- ; Values are:
- ; 0 = Off. <<<<------- Use as default
- ; 1 = On.
- ;---------------------------------------------------------------------------------------------------------------------------------------------
- Set_Weapon_Stop_Level = 2100 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Sets the last weapon set that will be upgraded before the delay.
- ; Works with "Stop_Weapon_Upgrade" turned 'On' and "Wait_After_Start" turned 'Off'.
- ; Example: if you set 2700 every weapon will get upgraded to 2700 and then the delay will kick in.
- ; Make sure you can buy the full set of weapons that you pick or this is pointless. <<<<<------ Important Info
- ; Levels are:
- ; If you don't know what this does by now, just leave it alone... <<<------ This
- ;----------------------------------------------------------------------------------------------------------------------------------------------
- Set_Weapon_Delay_Time = 0 ; <<<<<<<<<<<<----------- change this number <<<<<<<<<<<
- ;---------------------
- ;-----------------------
- ; Sets the delay time for "Set_Weapon_Stop_Level".
- ; Be sure you have checked approx how much time there is from game start and when you need to start upgrading again. <<<<<------ Important Info
- ; Values are:
- ; 0 = no delay. <<<<-------- default
- ; 1 = 2 min
- ; 2 = 4 min
- ; 3 = 6 min
- ; 4 = 8 min
- ; 5 = 10 min
- ; 6 = 15 min
- Weapon_Delay()
- {
- ;temp = Weapon_Set_
- if(Wait_After_Start==0&&Stop_Weapon_Upgrade==1)
- {
- if(Weapon_Level==Set_Weapon_Stop_Level&&Set_Weapon==6)
- {
- if(Set_Weapon_Delay_Time==0)
- {
- ;MsgBox, ,Demo ,0 min delay is working , 5
- }
- if(Set_Weapon_Delay_Time==1)
- {
- Close_Time_Clickers()
- ;MsgBox, ,Demo ,2 min delay is working , 5
- Sleep, 120000
- }
- if(Set_Weapon_Delay_Time==2)
- {
- Close_Time_Clickers()
- ;MsgBox, ,Demo ,4 min delay is working , 5
- Sleep, 240000
- }
- if(Set_Weapon_Delay_Time==3)
- {
- Close_Time_Clickers()
- ;MsgBox, ,Demo ,6 min delay is working , 5
- Sleep, 360000
- }
- if(Set_Weapon_Delay_Time==4)
- {
- Close_Time_Clickers()
- ;MsgBox, ,Demo ,8 min delay is working , 5
- Sleep, 480000
- }
- if(Set_Weapon_Delay_Time==5)
- {
- Close_Time_Clickers()
- ;MsgBox, ,Demo ,10 min delay is working , 5
- Sleep, 600000
- }
- if(Set_Weapon_Delay_Time==6)
- {
- Close_Time_Clickers()
- ;MsgBox, ,Demo ,10 min delay is working , 5
- Sleep, 900000
- }
- }
- }
- }
- Over_Powered_Delay()
- {
- if(Extra_OverPowered_Delay==1)
- {
- ;MsgBox, ,Demo ,over powered delay is working , 5
- Sleep, 60000
- }
- if(Extra_OverPowered_Delay==2)
- {
- Sleep, 120000
- }
- if(Extra_OverPowered_Delay==3)
- {
- Sleep, 180000
- }
- }
- Im_Going_Insane()
- {
- if(Sanity_Mode==1)
- {
- if(How_Sane_Do_You_Want_To_Be==1)
- {
- ;MsgBox, ,Demo ,Sanity delay is working , 5
- Sleep, 30000
- }
- if(How_Sane_Do_You_Want_To_Be==2)
- {
- Sleep, 60000
- }
- if(How_Sane_Do_You_Want_To_Be==3)
- {
- Sleep, 90000
- }
- if(How_Sane_Do_You_Want_To_Be==4)
- {
- Sleep, 120000
- }
- if(How_Sane_Do_You_Want_To_Be==5)
- {
- Sleep, 180000
- }
- }
- }
- Set_Starting_Weapons()
- {
- break_out = 0
- if(Starting_weapon_choice==100)
- {
- Weapon_Level = 100
- Buy_Promotion()
- Buy_Max()
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- break_out = 1
- }
- if(Starting_weapon_choice==500)
- {
- Weapon_Level = 500
- Buy_Promotion()
- Buy_Max()
- Loop 10
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- break_out = 1
- }
- if(Starting_weapon_choice==1000)
- {
- Weapon_Level = 1000
- Buy_Max()
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- Buy_Promotion()
- break_out = 1
- }
- if(Starting_weapon_choice==1500)
- {
- Weapon_Level = 1500
- Buy_Max()
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- Buy_Promotion()
- Loop 10
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- break_out = 1
- }
- if(Starting_weapon_choice==2000)
- {
- Weapon_Level = 2000
- Buy_Max()
- Loop 3
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- Buy_Promotion()
- break_out = 1
- }
- if(Starting_weapon_choice==2500)
- {
- Weapon_Level = 2500
- Buy_Max()
- Loop 3
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- Buy_Promotion()
- Loop 10
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- break_out = 1
- }
- if(Starting_weapon_choice==3000)
- {
- Weapon_Level = 3000
- Buy_Max()
- Loop 5
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- Buy_Promotion()
- break_out = 1
- }
- if(Starting_weapon_choice==3500)
- {
- Weapon_Level = 3000
- Buy_Max()
- Loop 5
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- Buy_Promotion()
- Loop 10
- {
- send, a
- Sleep_Short()
- send, s
- Sleep_Short()
- send, d
- Sleep_Short()
- send, f
- Sleep_Short()
- send, g
- Sleep_Short()
- }
- break_out = 1
- }
- if(break_out==0)
- {
- MsgBox, ,Starting level fail ,You need to enter a starting weapon level , 5
- }
- }
- Red_Delay()
- {
- if(Red_Wait==0)
- {
- ;You Are Dumb For Picking No Wait Time
- }
- if(Red_Wait==1)
- {
- Sleep, 30000
- }
- if(Red_Wait==2)
- {
- Sleep, 60000
- }
- if(Red_Wait==3)
- {
- Sleep, 120000
- }
- if(Red_Wait==4)
- {
- Sleep, 180000
- }
- if(Red_Wait==5)
- {
- Sleep, 240000
- }
- if(Red_Wait==6)
- {
- Sleep, 300000
- }
- if(Red_Wait==7)
- {
- Sleep, 360000
- }
- }
- Game_Start_Delay()
- {
- if(Wait_After_Start==1)
- {
- ;MsgBox, ,Demo ,2 min start delay is working , 5
- Sleep, 120000
- }
- if(Wait_After_Start==2)
- {
- Sleep, 240000
- }
- if(Wait_After_Start==3)
- {
- Sleep, 360000
- }
- if(Wait_After_Start==4)
- {
- Sleep, 480000
- }
- if(Wait_After_Start==5)
- {
- Sleep, 600000
- }
- }
- ;_______________________________
- ; Functions (PRIMARY)
- ;_______________________________
- Open_Time_Clickers()
- {
- WinActivate, Time Clickers ahk_class UnityWndClass
- ;WinActivate, Time Clickers
- Sleep, 1000
- }
- Close_Time_Clickers()
- {
- if(Activate_Minimize_Mode==1)
- {
- WinMinimize, Time Clickers ahk_class UnityWndClass
- ;Click 750 730
- Sleep_Short()
- }
- }
- Sleep_Long()
- {
- Sleep, 20000
- }
- Sleep_Short()
- {
- Sleep, 500
- }
- Sleep_Pause()
- {
- Sleep, 250
- }
- Sleep_1k()
- {
- Sleep, 1000
- }
- Buy_Pistol_Upgrades()
- {
- Loop 12
- {
- Click 1200 250
- Sleep_Short()
- }
- }
- Buy_Abilities_Upgrades()
- {
- Loop 10
- {
- Click 1200 350
- Sleep_Short()
- }
- }
- Set_Idle()
- {
- Click 875 700
- Sleep_Short()
- Click 375 700
- Sleep_Short()
- send, w
- Sleep_Short()
- }
- Buy_Max()
- {
- Click 50 700
- Sleep_Short()
- }
- Buy_Promotion()
- {
- Loop 3
- {
- Click 50 700
- Sleep_Short()
- }
- }
- Activate_Abilities()
- {
- send, {SPACE}
- Sleep_Short()
- Send, 7
- Sleep_Short()
- Send, 0
- Sleep_Short()
- }
- Weapon_Colour_X_Y()
- {
- if(Set_Weapon==1) ;Pulse Pistol
- {
- X = 23
- Y = 260
- }
- if(Set_Weapon==2) ;Flak Cannon
- {
- X = 23
- Y = 340
- }
- if(Set_Weapon==3) ;Spread Rifle
- {
- X = 23
- Y = 450
- }
- if(Set_Weapon==4) ;Rocket Launcher
- {
- X = 23
- Y = 540
- }
- if(Set_Weapon==5) ;Particle Ball
- {
- X = 23
- Y = 630
- }
- }
- Set_Weapon_Name()
- {
- if(Set_Weapon==1) ;Pulse Pistol
- {
- Display_Weapon_Name := "Pulse Pistol"
- }
- if(Set_Weapon==2) ;Flak Cannon
- {
- Display_Weapon_Name := "Flak Cannon"
- }
- if(Set_Weapon==3) ;Spread Rifle
- {
- Display_Weapon_Name := "Spread Rifle"
- }
- if(Set_Weapon==4) ;Rocket Launcher
- {
- Display_Weapon_Name := "Rocket Launcher"
- }
- if(Set_Weapon==5) ;Particle Ball
- {
- Display_Weapon_Name := "Particle Ball"
- }
- }
- Send_Weapon_Buy()
- {
- if(Set_Weapon==1) ;Pulse Pistol
- {
- send, a
- Sleep, 500
- }
- if(Set_Weapon==2) ;Flak Cannon
- {
- send, s
- Sleep, 500
- }
- if(Set_Weapon==3) ;Spread Rifle
- {
- send, d
- Sleep, 500
- }
- if(Set_Weapon==4) ;Rocket Launcher
- {
- send, f
- Sleep, 500
- }
- if(Set_Weapon==5) ;Particle Ball
- {
- send, g
- Sleep, 500
- }
- }
- CoordMode, Pixel , Window
- Set_The_Colour_Of_Weapon()
- {
- break_out = 0
- loop_count = 0
- Loop
- {
- if(break_out==0)
- {
- colour1 = 0
- colour2 = 0
- colour3 = 0
- colour4 = 0
- colour5 = 0
- colour6 = 0
- colour7 = 0
- colour8 = 0
- colour9 = 0
- colour10 = 0
- colour11 = 0
- Open_Time_Clickers()
- Weapon_Colour_X_Y()
- Set_Weapon_Name()
- Loop 25
- {
- PixelGetColor,Colour,X,Y,
- if(Colour==BGreen)
- {
- colour1 += 1
- }
- if(Colour==BGreen2)
- {
- colour2 += 1
- }
- if(Colour==DGreen)
- {
- colour3 += 1
- }
- if(Colour==DGreen2)
- {
- colour4 += 1
- }
- if(Colour==BBlue)
- {
- colour5 += 1
- }
- if(Colour==DBlue)
- {
- colour6 += 1
- }
- if(Colour==BRed)
- {
- colour7 += 1
- }
- if(Colour==DRed)
- {
- colour8 += 1
- }
- if(Colour==BOrange)
- {
- colour9 += 1
- }
- if(Colour==DOrange)
- {
- colour10 += 1
- }
- if(Colour==BBlack)
- {
- colour11 += 1
- }
- }
- if(colour1>15)
- {
- Set_Colour = BGreen
- break_out = 1
- }
- if(colour2>15)
- {
- Set_Colour = BGreen2
- break_out = 1
- }
- if(colour3>15)
- {
- Set_Colour = DGreen
- break_out = 1
- }
- if(colour4>15)
- {
- Set_Colour = DGreen2
- break_out = 1
- }
- if(colour5>15)
- {
- Set_Colour = BBlue
- break_out = 1
- }
- if(colour6>15)
- {
- Set_Colour = DBlue
- break_out = 1
- }
- if(colour7>15)
- {
- Set_Colour = BRed
- break_out = 1
- }
- if(colour8>15)
- {
- Set_Colour = DRed
- break_out = 1
- }
- if(colour9>15)
- {
- Set_Colour = BOrange
- break_out = 1
- }
- if(colour10>15)
- {
- Set_Colour = DOrange
- break_out = 1
- }
- if(colour11>15)
- {
- Set_Colour = BBlack
- break_out = 1
- }
- loop_count += 1
- }
- if(break_out==1)
- {
- Colour_Fail += (loop_count-1)
- break
- }
- }
- ;MsgBox, , %Set_Colour%, The Colour of %Display_Weapon_Name% is Bright Blue The count is %colour1%, 5
- }
- Game_Start_Setup()
- {
- ;MsgBox, ,Demo ,Script is about to run game setup , 5
- Open_Time_Clickers()
- Set_Starting_Weapons()
- Set_Idle()
- Buy_Pistol_Upgrades()
- Buy_Abilities_Upgrades()
- Activate_Abilities()
- Close_Time_Clickers()
- Game_Start_Delay()
- ;MsgBox, ,Demo ,Setup is done , 5
- }
- Reset_Game()
- {
- Sleep, 10000
- Skip = 0
- Reset = 0
- First_Stall = 0
- Resets_Ignored = 0
- MsgBox, , GAME OVER, Game is about to reset, 10
- Open_Time_Clickers()
- Click 1230 350
- Sleep_Short()
- Click 500 555
- Sleep, 7000
- Click 1200 350
- Sleep, 11000
- }
- ; Weapon Functions
- ;______________________________
- Weapons_100_500()
- {
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 20
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Weapons_500_1000()
- {
- break_out = 0
- Close_Time_Clickers()
- if(Starting_weapon_choice!=500)
- {
- Red_Delay()
- }
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 5
- {
- if(Skip==0)
- {
- Red_Phaze1()
- }
- }
- Loop 20
- {
- if(skip==0)
- {
- Red_Phaze2()
- }
- }
- }
- Weapons_1000_1500()
- {
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 25
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Weapons_1500_2000()
- {
- break_out = 0
- Close_Time_Clickers()
- if(Starting_weapon_choice!=1500)
- {
- Red_Delay()
- }
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 5
- {
- if(Skip==0)
- {
- Red_Phaze1()
- }
- }
- Loop 20
- {
- if(skip==0)
- {
- Red_Phaze2()
- }
- }
- }
- Weapons_2000_2500()
- {
- ;MsgBox, ,Demo ,Script is about to start buying`nWeapon levels 2000 to 2500 , 5
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 25
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Weapons_2500_3000()
- {
- ;MsgBox, ,Demo ,Script is about to start buying`nWeapon levels 2000 to 2500 , 5
- break_out = 0
- Close_Time_Clickers()
- if(Starting_weapon_choice!=2500)
- {
- Red_Delay()
- }
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 5
- {
- if(Skip==0)
- {
- Red_Phaze1()
- }
- }
- Loop 20
- {
- if(skip==0)
- {
- Red_Phaze2()
- }
- }
- }
- Weapons_3000_3500()
- {
- ;MsgBox, ,Demo ,Script is about to start buying`nWeapon levels 2000 to 2500 , 5
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 25
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Weapons_3500_4000()
- {
- break_out = 0
- Close_Time_Clickers()
- Red_Delay()
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 5
- {
- if(Skip==0)
- {
- Red_Phaze1()
- }
- }
- Loop 20
- {
- if(skip==0)
- {
- Red_Phaze2()
- }
- }
- }
- Weapons_4000_4500()
- {
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 25
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Weapons_4500_5000()
- {
- break_out = 0
- Close_Time_Clickers()
- Red_Delay()
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 5
- {
- if(Skip==0)
- {
- Red_Phaze1()
- }
- }
- Loop 20
- {
- if(skip==0)
- {
- Red_Phaze2()
- }
- }
- }
- Weapons_5000_5500()
- {
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 25
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Weapons_5500_6000()
- {
- break_out = 0
- Close_Time_Clickers()
- Red_Delay()
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 5
- {
- if(Skip==0)
- {
- Red_Phaze1()
- }
- }
- Loop 20
- {
- if(skip==0)
- {
- Red_Phaze2()
- }
- }
- }
- Weapons_6000_6500()
- {
- break_out = 0
- Open_Time_Clickers()
- Set_weapon = 0
- Loop 25
- {
- if(Skip==0)
- {
- Green_Weapons()
- }
- }
- Red_First_Pass = 0
- Red_Second_Pass = 0
- }
- Green_Weapons()
- {
- Set_Weapon += 1
- Weapon_Delay() ; adds Set_Weapon_Stop_Level values
- if(Set_Weapon==6)
- {
- Set_Weapon = 1
- }
- break_out = 0
- first_pass = 0
- Open_Time_Clickers()
- Activate_Abilities()
- Loop 60
- {
- if(Reset==Trigger_Reset&&First_Stall==2)
- {
- Resets_Ignored += 1
- }
- if(Resets_Ignored>Ignore_Reset)
- {
- break_out = 1
- Skip = 1
- }
- if(break_out==0)
- {
- if(first_pass==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BGreen||%Set_Colour%==BGreen2||%Set_Colour%==BBlack)
- {
- Send_Weapon_Buy()
- Send_Weapon_Buy()
- first_pass = 1
- }
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BGreen||%Set_Colour%==BGreen2||%Set_Colour%==DGreen||%Set_Colour%==DGreen2||%Set_Colour%==BRed||%Set_Colour%==DRed)
- {
- SlowDown -= 1
- break_out = 1
- if(First_Stall = 1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- Reset = 0
- ;MsgBox, ,Demo ,Script Has bought this weapons upgrade without any need to delay , 5
- }
- if(break_out==0)
- {
- if(first_pass==0)
- {
- Activate_Abilities()
- Close_Time_Clickers()
- if(First_Stall==0)
- {
- First_Stall = 1
- }
- if(First_Stall==1)
- {
- Over_Powered_Delay()
- }
- Sleep, 30000
- Im_Going_Insane()
- Open_Time_Clickers()
- Activate_Abilities()
- Reset += 1
- Reset_Ticks += 1
- ;MsgBox, ,Demo ,This is a major problem likely caused by too much starting gold or too high of a starting wave , 5
- if(Reset==3)
- {
- ;MsgBox, ,Reset Alert!!!!! ,Reset has hit a value of 3!!!`n`n`nThis is in the Green weapons`n`n`nThis is also in first pass = 0 , 200
- }
- }
- }
- }
- if(first_pass==1)
- {
- if(break_out==0)
- {
- if(First_Stall==0)
- {
- First_Stall = 1
- }
- ;MsgBox, ,Demo ,Not enough gold to buy full level`n`nScript will wait 30 seconds and try again , 5
- Activate_Abilities()
- Close_Time_Clickers()
- if(First_Stall==1)
- {
- Over_Powered_Delay()
- }
- Im_Going_Insane()
- Sleep, 30000
- Open_Time_Clickers()
- Activate_Abilities()
- Reset += 1
- Reset_Ticks += 1
- if(Reset==3)
- {
- ;MsgBox, ,Reset Alert!!!!! ,Reset has hit a value of 3!!!`n`n`nThis is in the Green weapons`n`n`nThis is also in first pass = 1 , 200
- }
- Loop 2
- {
- if(break_out==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BBlue||%Set_Colour%==DBlue||%Set_Colour%==BOrange||%Set_Colour%==DOrange)
- {
- Send_Weapon_Buy()
- SlowDown += 1
- }
- if(%Set_Colour%==BGreen||%Set_Colour%==BGreen2||%Set_Colour%==DGreen||%Set_Colour%==DGreen2||%Set_Colour%==BRed||%Set_Colour%==DRed)
- {
- ;MsgBox, ,Demo ,Script Has bought this weapons upgrade with a short delay , 5
- break_out = 1
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- Reset = 0
- }
- }
- }
- }
- }
- }
- if(break_out==1)
- {
- if(Set_Weapon==1)
- {
- Weapon_Level += 100
- }
- break
- }
- }
- }
- Red_Phaze1()
- {
- Set_Weapon += 1
- Weapon_Delay() ; adds Set_Weapon_Stop_Level values
- if(Set_Weapon==6)
- {
- Set_Weapon = 1
- }
- break_out = 0
- first_pass = 0
- Open_Time_Clickers()
- Activate_Abilities()
- Loop 60
- {
- if(Reset==Trigger_Reset&&First_Stall==2)
- {
- Resets_Ignored += 1
- }
- if(Resets_Ignored==Ignore_Reset)
- {
- break_out = 1
- Skip = 1
- }
- if(break_out==0)
- {
- if(Red_First_Pass==0)
- {
- Set_Weapon = 2
- Red_First_Pass = 1
- }
- if(first_pass==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BRed)
- {
- Send_Weapon_Buy()
- Send_Weapon_Buy()
- first_pass = 1
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BRed)
- {
- Send_Weapon_Buy()
- ;MsgBox, ,Demo ,Script Has bought this weapons upgrade without any need to delay , 5
- SlowDown -= 1
- break_out = 1
- Reset = 0
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- }
- }
- if(first_pass==0)
- {
- if(First_Stall==0)
- {
- First_Stall = 1
- }
- if(First_Stall==2)
- {
- ;MsgBox, ,Error ,This Early Draft Has No Soloution To This Problem Yet`n`n`n`nRestart The Game And Script To Fix , 5000
- }
- Activate_Abilities()
- Close_Time_Clickers()
- if(First_Stall==1)
- {
- Over_Powered_Delay()
- }
- Im_Going_Insane()
- Sleep, 30000
- Open_Time_Clickers()
- Activate_Abilities()
- Reset += 1
- Reset_Ticks += 1
- if(Reset==3)
- {
- ;MsgBox, ,Reset Alert!!!!! ,Reset has hit a value of 3!!!`n`n`nThis is in Red Phaze1`n`n`nThis is also in first pass = 0 , 200
- }
- }
- }
- if(first_pass==1)
- {
- if(break_out==0)
- {
- ;MsgBox, ,Demo ,Not enough gold to buy full level`n`nScript will wait 30 seconds and try again , 5
- Activate_Abilities()
- Close_Time_Clickers()
- if(First_Stall==0)
- {
- First_Stall = 1
- }
- if(First_Stall==1)
- {
- Over_Powered_Delay()
- }
- Im_Going_Insane()
- Sleep, 30000
- Open_Time_Clickers()
- Activate_Abilities()
- Reset += 1
- Reset_Ticks += 1
- if(Reset==3)
- {
- ;MsgBox, ,Reset Alert!!!!! ,Reset has hit a value of 3!!!`n`n`nThis is in Red Phaze1`n`n`nThis is also in first pass = 1 , 200
- }
- Loop 2
- {
- if(break_out==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BRed)
- {
- Send_Weapon_Buy()
- ;MsgBox, ,Demo ,Script Has bought this weapons upgrade with a short delay , 5
- SlowDown -= 1
- break_out = 1
- Reset = 0
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- }
- if(break_out==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BBlue||%Set_Colour%==DBlue)
- {
- Send_Weapon_Buy()
- SlowDown += 1
- }
- }
- }
- }
- }
- }
- }
- if(break_out==1)
- {
- if(Set_Weapon==1)
- {
- Weapon_Level += 100
- }
- break
- }
- }
- }
- Red_Phaze2()
- {
- Set_Weapon += 1
- Weapon_Delay() ; adds Set_Weapon_Stop_Level values
- if(Set_Weapon==6)
- {
- Set_Weapon = 1
- }
- break_out = 0
- first_pass = 0
- Open_Time_Clickers()
- Activate_Abilities()
- Loop 60
- {
- if(Reset==Trigger_Reset&&First_Stall==2)
- {
- Resets_Ignored += 1
- }
- if(Resets_Ignored==Ignore_Reset)
- {
- break_out = 1
- Skip = 1
- }
- if(break_out==0)
- {
- if(Red_Second_Pass==0)
- {
- Red_Second_Pass = 1
- Set_Weapon = 1
- }
- if(first_pass==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BBlue)
- {
- Send_Weapon_Buy()
- first_pass = 1
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BRed)
- {
- Send_Weapon_Buy()
- ;MsgBox, ,Demo ,Script Has bought this weapons upgrade without any need to delay , 5
- SlowDown -= 1
- break_out = 1
- Reset = 0
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- }
- if(%Set_Colour%==BBlack)
- {
- SlowDown -= 1
- break_out = 1
- Reset = 0
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- }
- }
- if(first_pass==0)
- {
- ;MsgBox, ,Demo ,This is a major problem likely caused by too much starting gold or too high of a starting wave , 5
- Activate_Abilities()
- Close_Time_Clickers()
- if(First_Stall==0)
- {
- First_Stall = 1
- }
- if(First_Stall==1)
- {
- Over_Powered_Delay()
- }
- Im_Going_Insane()
- Sleep, 30000
- Open_Time_Clickers()
- Activate_Abilities()
- Reset += 1
- Reset_Ticks += 1
- if(Reset==3)
- {
- ;MsgBox, ,Reset Alert!!!!! ,Reset has hit a value of 3!!!`n`n`nThis is in Red Phaze2`n`n`nThis is also in first pass = 0 , 200
- }
- }
- }
- if(first_pass==1)
- {
- if(break_out==0)
- {
- ;MsgBox, ,Demo ,Not enough gold to buy full level`n`nScript will wait 30 seconds and try again , 5
- Activate_Abilities()
- Close_Time_Clickers()
- if(First_Stall==0)
- {
- First_Stall = 1
- }
- if(First_Stall==1)
- {
- Over_Powered_Delay()
- }
- Im_Going_Insane()
- Sleep, 30000
- Open_Time_Clickers()
- Activate_Abilities()
- Reset += 1
- Reset_Ticks += 1
- if(Reset==3)
- {
- ;MsgBox, ,Reset Alert!!!!! ,Reset has hit a value of 3!!!`n`n`nThis is in Red Phaze1`n`n`nThis is also in first pass = 1 , 200
- }
- Loop 2
- {
- if(break_out==0)
- {
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BBlue||%Set_Colour%==DBlue)
- {
- Send_Weapon_Buy()
- SlowDown += 1
- }
- Set_The_Colour_Of_Weapon()
- Sleep, 500
- if(%Set_Colour%==BRed)
- {
- Send_Weapon_Buy()
- ;MsgBox, ,Demo ,Script Has bought this weapons upgrade with a short delay , 5
- break_out = 1
- Reset = 0
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- }
- if(%Set_Colour%==BBlack)
- {
- break_out = 1
- Reset = 0
- if(First_Stall==1)
- {
- First_Stall = 2
- Resets_Ignored += 1
- }
- }
- }
- }
- }
- }
- }
- if(break_out==1)
- {
- if(Set_Weapon==1)
- {
- Weapon_Level += 100
- }
- break
- }
- }
- }
- Main_Game_Cycle()
- {
- if(Starting_weapon_choice==100)
- {
- if(Skip==0)
- {
- Weapons_100_500()
- }
- if(Skip==0)
- {
- Weapons_500_1000()
- }
- if(Skip==0)
- {
- Weapons_1000_1500()
- }
- if(Skip==0)
- {
- Weapons_1500_2000()
- }
- if(Skip==0)
- {
- Weapons_2000_2500()
- }
- if(Skip==0)
- {
- Weapons_2500_3000()
- }
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==500)
- {
- if(Skip==0)
- {
- Weapons_500_1000()
- }
- if(Skip==0)
- {
- Weapons_1000_1500()
- }
- if(Skip==0)
- {
- Weapons_1500_2000()
- }
- if(Skip==0)
- {
- Weapons_2000_2500()
- }
- if(Skip==0)
- {
- Weapons_2500_3000()
- }
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==1000)
- {
- if(Skip==0)
- {
- Weapons_1000_1500()
- }
- if(Skip==0)
- {
- Weapons_1500_2000()
- }
- if(Skip==0)
- {
- Weapons_2000_2500()
- }
- if(Skip==0)
- {
- Weapons_2500_3000()
- }
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==1500)
- {
- if(Skip==0)
- {
- Weapons_1500_2000()
- }
- if(Skip==0)
- {
- Weapons_2000_2500()
- }
- if(Skip==0)
- {
- Weapons_2500_3000()
- }
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==2000)
- {
- if(Skip==0)
- {
- Weapons_2000_2500()
- }
- if(Skip==0)
- {
- Weapons_2500_3000()
- }
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==2500)
- {
- if(Skip==0)
- {
- Weapons_2500_3000()
- }
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==3000)
- {
- if(Skip==0)
- {
- Weapons_3000_3500()
- }
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- if(Starting_weapon_choice==3500)
- {
- if(Skip==0)
- {
- Weapons_3500_4000()
- }
- if(Skip==0)
- {
- Weapons_4000_4500()
- }
- if(Skip==0)
- {
- Weapons_4500_5000()
- }
- if(Skip==0)
- {
- Weapons_5000_5500()
- }
- if(Skip==0)
- {
- Weapons_5500_6000()
- }
- if(Skip==0)
- {
- Weapons_6000_6500()
- }
- }
- }
- ;--------------------------------------------------;
- ;--------------------------------------------------;
- ; MAIN ;
- ; SCRIPT ;
- ;--------------------------------------------------;
- ;--------------------------------------------------;
- Pause Off
- Loop
- {
- Game_Start_Setup()
- Main_Game_Cycle()
- Reset_Game()
- }
- ExitApp
- q:: MsgBox, , Current Run Details,`n`nReset Ticks = %Reset_Ticks%`n`nCurret Reset Count = %Reset%`n`nColour Match Fails = %Colour_Fail%`n`nWeapon Level = %Weapon_Level%`n`n SlowDown Count = %SlowDown%`n`nSkip = %Skip%`n`n`nResets Ignored = %Resets_Ignored%, 10
- ^z:: Pause
- ^x::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement