Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- import random
- import pyautogui
- import keyboard
- import mouse
- #How much we want to successfully crouch jump from 1-100%, 100% will always crouch jump.
- #example 80 = 80% chance of successfully doing a crouch jump
- success_rate = 90#%t
- #You can change the key to whatever you want.
- #example. '/' = / or keypad devide, '*' = numpad mult or shift+8
- ads_act_deact = 'f5'
- crouch_jump_act_deact = 'f6'
- panic_quit_act_deact = 'f7'
- #What key/'s to push to make you crouch jump
- #If you want it to be when you press shift and space do 'shift+space' add a '#' to line 40 just like in like 39 if you dont know what to do.
- #you can make it control space do 'ctrl+space' or any other comb of keys. uncomment line 39.
- #If you want just one key make it look like 'alt' and uncomment like 39. do not make it 'c' space needs to come first
- crouch_jump_keybind = 'shift+alt'
- ads = 0
- crouchJ = 0
- start = 0
- def stop_now():
- print('STOPPED!')
- mouse.unhook_all()
- keyboard.unhook_all()
- sleep(43232)
- stop_now()
- def crouch_jump():
- if crouchJ == 1:
- success_chance = random.randint(1, 100)
- if success_chance <= success_rate:
- #keyboard.send('shift')
- keyboard.send('space')
- keyboard.send('c')
- else:
- keyboard.send('c')
- keyboard.send('space')
- def ads_start():
- global start
- sleep(0.2)
- mouse.unhook_all()
- if ads == 1:
- if mouse.is_pressed(button='right') is True:
- sleep(0.1)
- mouse.click(button='right')
- mouse.click(button='right')
- mouse.wait(button='right', target_types=('up'))
- mouse.wait(button='right', target_types=('down'))
- start = 1
- ads_start()
- else:
- sleep(0.4)
- if start != 0:
- mouse.click(button='right')
- mouse.wait(button='right', target_types=('down'))
- start = 1
- ads_start()
- else:
- mouse.wait(button='right', target_types=('down'))
- ads_start()
- def start_ads():
- global ads
- if ads == 0:
- ads = 1
- print('Ads Activated')
- elif ads == 1:
- ads = 0
- print('Ads Deactivated')
- else:
- return
- def new_ads_check():
- global ads
- if keyboard.is_pressed('tab') is True or keyboard.is_pressed('i') is True:
- if ads == 1:
- sleep(0.3)
- if pyautogui.pixelMatchesColor(469, 118, (255, 232, 0 )) is True and pyautogui.pixelMatchesColor(509, 118, (255, 255, 255)) is True:
- for p in range(1,1000):
- print(p)
- sleep(0.1)
- ads = 0
- if pyautogui.pixelMatchesColor(469, 118, (255, 232, 0 )) is not True and pyautogui.pixelMatchesColor(509, 118, (255, 255, 255)) is not True:
- ads = 1
- return
- if pyautogui.pixelMatchesColor(469, 118, (255, 255, 255)) is True and pyautogui.pixelMatchesColor(509, 118, (255, 232, 0)) is True:
- for p in range(1,1000):
- print(p)
- sleep(0.1)
- ads = 0
- if pyautogui.pixelMatchesColor(469, 118, (255, 255, 255)) is not True and pyautogui.pixelMatchesColor(509, 118, (255, 232, 0)) is not True:
- ads = 1
- return
- else:
- return
- return
- def start_cj():
- global crouchJ
- if crouchJ == 0:
- crouchJ = 1
- print('Crouch Jump is Activated')
- elif crouchJ == 1:
- crouchJ = 0
- print('Crouch Jump is Deactivated')
- else:
- return
- def auto_fall():
- print('working')
- for i in range(1, 150):
- a = pyautogui.pixelMatchesColor(33, 988, (255, 255, 255)) is True
- b = pyautogui.pixelMatchesColor(33, 1032, (255, 255, 255)) is True
- c = pyautogui.pixelMatchesColor(33, 1053, (255, 255, 255)) is True
- d = pyautogui.pixelMatchesColor(33, 1053, (0, 0, 0)) is True
- e = pyautogui.pixelMatchesColor(777, 444, (255, 255, 255)) is True
- f = pyautogui.pixelMatchesColor(469, 118, (255, 232, 0 )) is True
- g = pyautogui.pixelMatchesColor(469, 118, (255, 255, 255)) is True
- if a or b or c or d:#checks to see if you are in a parachute
- if e or f or g:#checks to see if you are in tab or esc menu
- break
- print('ahh')
- pyautogui.keyDown('w')
- sleep(0.5)
- pyautogui.keyUp('w')
- sleep(0.9)
- else:
- if pyautogui.pixelMatchesColor(33, 988, (255, 255, 255)) is not True:
- print('not true')
- break
- keyboard.add_hotkey(ads_act_deact, start_ads, trigger_on_release=True)
- keyboard.add_hotkey('tab', new_ads_check, trigger_on_release=True)
- keyboard.add_hotkey('i', new_ads_check, trigger_on_release=True)
- keyboard.add_hotkey(crouch_jump_act_deact, start_cj, trigger_on_release=True)
- keyboard.add_hotkey(panic_quit_act_deact, stop_now)
- keyboard.add_hotkey(crouch_jump_keybind, crouch_jump)
- keyboard.add_hotkey('alt+f', auto_fall, suppress=True, trigger_on_release=True)
- ads_start()
Advertisement
Add Comment
Please, Sign In to add comment