Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include bezier_main.ahk
- click_random()
- {
- global color
- global MouseyX
- global MouseyY
- global start_posit_x
- global start_posit_y
- global end_posit_x
- global end_posit_y
- click down
- Random, KKaper,-3,3
- Random,KKona,-3,3
- Random, TriHard,-3,3
- Random,cmonBruh,-3,3
- Random, rand,100,300
- RandomBezier( (start_posit_x+KKaper),(start_posit_y+KKona), (end_posit_x+TriHard),(end_posit_y+cmonBruh), "T"rand "P8 OT0 OB0 OL0 OR0")
- sleep 100
- PixelGetColor, runtimecolor, %MouseyX%, %MouseyY%
- if(runtimecolor=color)
- {
- click
- }
- else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }
- else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }
- else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {sleep 100
- if(runtimecolor=color)
- {
- click
- }
- else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }else
- {
- sleep 100
- if(runtimecolor=color)
- {
- click
- }
- else
- {
- SoundPlay, error.WAV
- MsgBox,0,,out of sync pausing script color:%color% runtime color:%runtimecolor%
- pause
- }}}}}}}}}}}}}}}}}}}}}}}}}}
- Random, KKaper,-3,3
- Random,KKona,-3,3
- Random, TriHard,-3,3
- Random,cmonBruh,-3,3
- RandomBezier((end_posit_x+KKaper),(end_posit_y+KKona),(start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand "P8 OT0 OB0 OL0 OR0")
- sleep 100
- click
- }
- sleep_random(time_msec, range_msec = 100)
- {
- global exit_flag
- time_start := A_TickCount
- Random, rand, -%range_msec%, %range_msec%
- time_msec := time_msec + rand
- loop
- {
- sleep 100
- MouseGetPos, xnew, ynew
- if (exit_flag)
- {
- exit_script()
- }
- if (time_msec < (A_TickCount - time_start + 100))
- {
- st = time_msec - (A_TickCount - time_start)
- sleep %st%
- return
- }
- }
- }
- init_start_position()
- {
- global start_posit_x
- global start_posit_y
- MouseGetPos,start_posit_x_t,start_posit_y_t
- start_posit_x:=start_posit_x_t
- start_posit_y:=start_posit_y_t
- }
- init_end_position()
- {
- global end_posit_x
- global end_posit_y
- MouseGetPos,end_posit_x_t,end_posit_y_t
- end_posit_x:=end_posit_x_t
- end_posit_y:=end_posit_y_t
- }
- init_color_pixel()
- {
- global color
- global MouseyX
- global MouseyY
- MouseGetPos, MouseyX, MouseyY
- PixelGetColor, color, %MouseyX%, %MouseyY%
- MsgBox,0,,%color%
- }
- take_a_break_routine()
- {
- global start_posit_x
- global start_posit_y
- global end_posit_x
- global end_posit_y
- global spell_book_pos_x
- global spell_book_pos_y
- global position_of_the_stats_bar_x
- global position_of_the_stats_bar_y
- global Position_off_screen_x
- SoundPlay, S_Blueprints_Buterrest.WAV
- Random, What_should_we_do ,1,4
- Random,random_speed,800,1200
- Random,Dither_x,50,-50
- Random,Dither_y,50,-50
- Random ,pos_alternatorx,-50,50
- Random ,pos_alternatory,-50,50
- Random, TriHard,-3,3
- Random,cmonBruh,-3,3
- Random, rand,100,300
- Random, rand_2, 400,450
- Random, rand_3,200,300
- Random,another_alternator,1,4
- Random,wait_time,100000,140000
- if(What_should_we_do=1)
- {click down
- RandomBezier( 0,0, (-200+pos_alternatorx),(100+pos_alternatory), "T"random_speed "RO RD P6 OT0 OB0 OL0 OR0")
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P4 OT0 OB0 OL0 OR0")
- sleep 50
- }
- if (What_should_we_do=2)
- {click down
- RandomBezier( 0,0, (position_of_the_stats_bar_x+TriHard),(position_of_the_stats_bar_y+cmonBruh), "T"rand "RO P4 OT0 OB0 OL0 OR0")
- sleep 50
- click
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- click
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P4 OT0 OB0 OL0 OR0")
- sleep 50
- }
- if(What_should_we_do=3)
- {
- click down
- if (another_alternator=1){
- RandomBezier( 0,0, (Position_off_screen_x+Dither_x),(800+Dither_y), "T"rand "RO P10 OT0 OB0 OL0 OR0")
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P10 OT0 OB0 OL0 OR0")
- sleep 50
- }
- if(another_alternator=2){
- RandomBezier( 0,0, (Position_off_screen_x+Dither_x),(600+Dither_y), "T"rand "RO P10 OT0 OB0 OL0 OR0")
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P10 OT0 OB0 OL0 OR0")
- sleep 50
- }
- if(another_alternator=3){
- RandomBezier( 0,0, (Position_off_screen_x+Dither_x),(400+Dither_y), "T"rand "RO P10 OT0 OB0 OL0 OR0")
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P10 OT0 OB0 OL0 OR0")
- sleep 50
- }
- if(another_alternator=4){
- RandomBezier( 0,0, (Position_off_screen_x+Dither_x),(200+Dither_y), "T"rand "RO P10 OT0 OB0 OL0 OR0")
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P10 OT0 OB0 OL0 OR0")
- sleep 50
- }
- }
- if (What_should_we_do =4)
- {click down
- RandomBezier( 0,0, (-300+pos_alternatorx),(100+pos_alternatory), "T"random_speed "RO RD P6 OT0 OB0 OL0 OR0")
- sleep %wait_time%
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"rand_2 "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"rand_3 "RO P4 OT0 OB0 OL0 OR0")
- sleep 50
- }
- }
- mistake_routine()
- {
- global mistake_array_position
- global mistake_array_x
- global mistake_array_y
- global spell_book_pos_x
- global spell_book_pos_y
- global start_posit_x
- global start_posit_y
- click down
- Random, TriHard,-3,3
- Random,cmonBruh,-3,3
- Random, rand_42500,100,300
- Random, rand_425001,400,500
- Random, rand_4250011,200,300
- Random choose_mistake_path,1,(mistake_array_position-1)
- gotox:=mistake_array_x[choose_mistake_path]
- gotoy:=mistake_array_y[choose_mistake_path]
- ;MsgBox, X: %gotox% Y: %gotoy% RANDOM_PATH: %choose_mistake_path%
- RandomBezier( 0,0, (gotox+TriHard),(gotoy+cmonBruh), "T"rand_42500 "RO P4 OT0 OB0 OL0 OR0")
- sleep 50
- click
- sleep 5000
- RandomBezier( 0,0, (spell_book_pos_x+TriHard),(spell_book_pos_y+cmonBruh), "T"(rand_425001+300) "RO P7 OT0 OB0 OL0 OR0")
- sleep 50
- click
- sleep 50
- RandomBezier( 0,0, (start_posit_x+TriHard),(start_posit_y+cmonBruh), "T"(rand_4250011+300) "RO P4 OT0 OB0 OL0 OR0")
- sleep 50
- }
- init_position_of_the_stats_bar()
- {
- global position_of_the_stats_bar_x
- global position_of_the_stats_bar_y
- MouseGetPos,position_of_the_stats_bar_x,position_of_the_stats_bar_y
- }
- init_mistake_click_array()
- {
- global mistake_array_x
- global mistake_array_y
- global mistake_array_position
- MouseGetPos,random_x,random_y
- MouseGetPos,mistakex,mistakey
- MsgBox,0,,current_x_location x: %random_x% y: %random_y% map: %mistake_array_position% mistakex: %mistakex% mistakey %mistakey%
- mistake_array_x.Push(mistakex)
- mistake_array_y.Push(mistakey)
- ;MsgBox,0,,mistake_array_x[1]
- mistake_array_position++
- bobby:=global mistake_array_x[(mistake_array_position-1)]
- bobbyy:=global mistake_array_y[(mistake_array_position-1)]
- MsgBox,0,,boby: %bobby%bobx: %bobbyy% %mistakex% %mistakey%
- }
- init_off_screen_position()
- {
- global Position_off_screen_x
- MouseGetPos,Position_off_screen_x,temp_variable
- }
- final_init()
- {
- global color
- global start_posit_x
- global start_posit_y
- global end_posit_x
- global end_posit_y
- global MouseyX
- global MouseyY
- global position_of_the_stats_bar_y
- global position_of_the_stats_bar_x
- global Position_off_screen_x
- global spell_book_pos_x
- global spell_book_pos_y
- global mistakex
- global mistakey
- global mistake_array_x:= []
- global mistake_array_y:= []
- global mistake_array_position
- global color
- mistake_array_position:=1
- }
- init_spell_book_pos()
- {
- global spell_book_pos_x
- global spell_book_pos_y
- MouseGetPos,spell_book_pos_x,spell_book_pos_y
- }
- set_exit_flag(new_value)
- {
- global exit_flag, script_start_tick, alch_cnt
- exit_flag := new_value
- if (0 == new_value)
- {
- script_start_tick := A_TickCount
- alch_cnt := 0
- }
- }
- exit_script()
- {
- global script_start_tick, alch_cnt
- elapsed_time_min := (A_TickCount - script_start_tick)*0.0000167
- msgbox, 0, , Exiting. Alch Count = %alch_cnt%. Elapsed Time = %elapsed_time_min% minutes
- Exit
- }
- count_alch()
- {
- global alch_cnt
- alch_cnt := alch_cnt + 1
- }
- F1::init_start_position()
- F2::init_end_position()
- F3::init_color_pixel()
- F4::init_spell_book_pos()
- F5::init_position_of_the_stats_bar()
- F6::init_off_screen_position()
- F7::init_mistake_click_array()
- F8::reload
- F9::mistake_routine()
- F10:: final_init()
- ^g::pause
- ^T::take_a_break_routine()
- ^e::
- MouseGetPos, xStart, yStart
- set_exit_flag(0)
- loop 1000
- {
- Random, variance_tick, 1, 60
- Random, mistake_tick, 1, 40
- click_random()
- count_alch()
- sleep_random(2300, 300)
- click_random()
- count_alch()
- sleep_random(2300, 300)
- if(variance_tick=14)
- {
- take_a_break_routine()
- }
- if (mistake_tick=13)
- {
- mistake_routine()
- }
- }
- exit_script()
- ^r::
- set_exit_flag(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement