Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;set your keyboard controls here
- global up := "up" ; arrow key up
- global down := "down" ; arrow key down
- global left := "left" ; arrow key left
- global right := "right" ; arrow key right
- global start := "s"
- global LP := "a"
- global MP := "m"
- global HP := "p"
- global LK := "l"
- global MK := "k"
- global HK := "h"
- /*
- if you use wasd instead of arrow keys to move, then change above to
- global up := "w"
- global down := "s"
- global left := "a"
- global right := "d"
- etc.
- */
- global helpers
- global sleep_duration
- if exist settings.ini
- fileread settings, settings.ini
- if settings
- {
- }
- helpers=
- (
- Collosus,LP MP MK
- Psylocke,MK
- Lou, MP
- Michelle Heart, LP LK
- Devilot, MP HP
- Magneto, LK HP
- Juggernaught, LP MK
- Sentinel,MP MK HP
- Shadow Charlie, LP MK HP
- Storm, LP LK HP
- Anita, LP MP HP
- Arthur, LP MP
- Cyclops, LP LK MP
- Iceman, MP MK
- Jubilee, LK MP HP
- Pure and Fur, LK
- Saki, HP
- Unknown Soldier, LP
- U.S Agent, HP MK
- Rogue N/A, LP MP LK HP
- Thor, LK MP
- Ton-Pooh, LP HP
- )
- helper_list=
- loop parse, helpers, `n,`r
- {
- if not a_loopfield
- continue
- loop parse, a_loopfield, `,
- {
- if a_index = 1
- {
- helper_list=%helper_list%%a_loopfield%|
- }
- else
- break
- }
- }
- stringreplace helper_list, helper_list,`n,|,a
- stringreplace helper_list, helper_list,Collosus|,Collosus|| ; make collosus selected by default
- gui, font, s12
- gui, font, bold
- gui, add, text, xm y+20 w80 , CHARACTERS:
- gui, font, norm
- gui, add, text,y+1,F12: Shadow Lady`nF11: Red Venom`nF10: Gold War Machine`nF9: Lilith`nF8: Orange Hulk`nF7: Roll`nF5: Randomize (Toggle)
- ;gui, add, dropdownlist, w150,Shadow Lady||Red Venom|Gold War Machine|Lilith|Orange Hulk|Roll
- gui, font, bold
- gui, add, text, xm y+10 w180 , HELPERS (TOGGLE):
- gui, font, norm
- gui, add, text,y+1,F6: Auto-Select
- gui, font, s10
- gui, add, dropdownlist, x+5 vHelperDDL w100, %helper_list%
- gui, font, s12
- gui, font, bold
- gui, font, s12
- gui, add, text, ys, DELAY:
- gui, add, edit, center w60 vsleep,1
- gui, Add, UpDown, w60 Horz vsleepUpDown Range1-5 gSleepAdjust, 1
- gui, font, norm
- gui, add, button, w60 valwaystop galwaystop,Make top
- gosub sleepadjust
- ;`nF5: Sentinel`nF4: Shadow
- gui, show,, MvC Secret Char/Helper Selector
- return
- alwaystop:
- {
- target := "FB Alpha (pid:"
- winwait, %target%, , 1
- if errorlevel
- {
- tooltip fail
- settimer removetooltip, 1000
- }
- else
- {
- tooltip found
- settimer removetooltip, 1000
- WinSet, AlwaysOnTop, toggle, FB Alpha (pid:
- }
- return
- }
- SleepAdjust:
- {
- if sleepupdown =
- {
- guicontrolget,sleep
- sleepupdown = %sleep%
- }
- guicontrol,,sleep,%sleepupdown%
- if sleepupdown = 1
- sleep_duration = 4
- else if sleepupdown = 4
- sleep_duration = 1
- else if sleepupdown = 3
- sleep_duration = 25
- else if sleepupdown = 4
- sleep_duration = 50
- else if sleepupdown = 5
- sleep_duration = 75
- return
- }
- changedirection(direction)
- {
- loop {
- random, ran, 1,4
- if ran != %direction%
- break
- }
- return ransamk
- return
- }
- oldRandom:
- {
- settimer catchRandomizeEnd,10
- randomizeEnd =
- loop
- {
- random, random,1,4
- last_3 := last_2
- last_2 := last_1
- last_1 := random
- ;tooltip %last_3% => %last_2% => %last_1%
- if (last_1 == last_2) and (last_2 == last_3)
- {
- ;if random = 1
- ; random = 2
- ;else if random = 2
- ; random = 1
- ;else if random = 3
- ; random
- ;else if random = 4
- ; random = 3
- random := changedirection(random)
- }
- last_1 := random
- if random = 1
- move(up)
- else if random = 2
- move(down)
- else if random = 3
- move(left)
- else if random = 4
- move(right)
- if randomizeEnd
- break
- }
- return
- }
- f5::
- {
- if patternRunning
- {
- stopPattern = Yes
- settimer pattern1, off
- ToolTip
- }
- else
- {
- stopPattern =
- settimer pattern1, 10
- tooltip
- }
- return
- }
- pattern1:
- {
- patternRunning = yes
- /*
- code := "Down, Left, Up, Right, Right, Down, Down, Left, Left, Up, Up, Right, Right, Down, Down, Down, Left, left, Up, Up, Up, Right, Right, Down, Down, Down, Down, Left, Left, Up, Up, Up, Up"
- code := "Right, Down, Down, Left, Left, Up, Up, Right, Right, Down, Down, Down, Left, left, Up, Up, Up, Right, Right, Down, Down, Down, Down, Left, Left, Up, Up, Up, Up"
- */
- code:= "left, down, down, down, down, right, right, up, left, up, right, up, left, up"
- loop
- {
- loop parse, code, `,,%a_space%
- {
- if not stopPattern
- move(%a_loopfield%)
- else
- break
- }
- if stopPattern
- break
- }
- patternRunning =
- settimer pattern1, off
- return
- }
- catchRandomizeEnd:
- {
- keywait F5, Up L
- randomizeEnd = Yes
- settimer catchRandomizeEnd, off
- return
- }
- f6::
- {
- guicontrol,disable,helperDDL
- guicontrol,disable,sleep
- guicontrolget, helperDDL
- correct_code=
- loop parse, helpers, `n,`r
- {
- if not a_loopfield
- continue
- name=
- code=
- loop parse, A_Loopfield, csv
- {
- if a_index = 1
- name = %a_loopfield%
- else if a_index = 2
- code = %a_loopfield%
- }
- if (name = helperDDL)
- {
- correct_code = %code%
- break
- }
- }
- if not correct_code
- correct_code := "LP MP MK"
- button1=
- button2=
- button3=
- button4=
- correct_code = %correct_code% ;trim white space
- loop parse, correct_code, %a_space%
- {
- if a_index = 1
- button1 = %a_loopfield%
- if a_index = 2
- button2 = %a_loopfield%
- if a_index = 3
- button3 = %a_loopfield%
- if a_index = 4
- button4 = %a_loopfield%
- }
- if button1
- button1 := %button1% ; "convert LP to a, etc."
- if button2
- button2 := %button2%
- if button3
- button3 := %button3%
- if button4
- button4 := %button4%
- tooltip %HelperDDL% Activated`n(%correct_code%)
- sleep 5
- send {%start% down}
- if button1
- send {%button1% down}
- if button2
- send {%button2% down}
- if button3
- send {%button3% down}
- if button4
- send {%button4% down}
- keywait F6, Up
- Keywait F6, down
- sleep 5
- send {%start% up}
- if button1
- send {%button1% up}
- if button2
- send {%button2% up}
- if button3
- send {%button3% up}
- if button4
- send {%button4% up}
- tooltip
- guicontrol,enable,helperDDL
- guicontrol,enable,sleep
- return
- }
- f7::
- {
- PickRoll()
- return
- }
- f8::
- {
- PickOrangeHulk()
- return
- }
- f9::
- {
- PickLilith()
- return
- }
- f10::
- {
- PickGoldWM()
- return
- }
- f11::
- {
- PickRedVenom()
- return
- }
- f12::
- {
- PickShadowLady()
- return
- }
- PickRoll()
- {
- code := "Right, Left, Left, Down, Down, Right, Right, Down, Down, Left, Left, Up, Right, Up, Up, Right, Right"
- loop parse, code, `,,%a_space%
- {
- move(%a_loopfield%)
- }
- return
- }
- PickOrangeHulk()
- {
- code := "Left, Right, Right, Down, Down, Left, Left, Right, Right, Down, Down, Left, Left, Up, Up, Up, Up, Down, Down, Right, Right, Up, Up, Down, Down, Down, Down, Up, Up, Up, Up, Left, Up"
- loop parse, code, `,,%a_space%
- {
- move(%a_loopfield%)
- }
- return
- }
- PickLilith()
- {
- code := "Right, Left, Left, Down, Down, Right, Right, Up, Up, Down, Down, Down, Down, Left, Left, Up, Up, Up, Up, Right, Left, Down, Down, Down, Down, Right, Right, Up, Up, Up, Up, Left, left, Down, Down, Down, Down, Right, Down"
- loop parse, code, `,,%a_space%
- {
- move(%a_loopfield%)
- }
- return
- }
- PickGoldWm()
- {
- code := "Right, Left, Left, Down, Down, Right, Right, Down, Down, Left, Left, Up, Up, Up, Up, Right, Right, Left, Left, Down, Down, Down, Down, Right, Right, Up, Up, Left, Left, Down, Down, Right, Right, Up, Up, Up, Up, Up"
- loop parse, code, `,,%a_space%
- {
- move(%a_loopfield%)
- }
- return
- }
- PickRedVenom()
- {
- code := "Left, Right, Down, Down, Down, Down, Left, Up, Up, Up, Up, Right, Right, Down, Down, Left, Left, Down, Down, Right, Right, Up, Up, Up, Up, Left, Left, Up"
- loop parse, code, `,,%a_space%
- {
- move(%a_loopfield%)
- }
- return
- }
- PickShadowLady()
- {
- move(left)
- move(down)
- move(up)
- move(right)
- move(right)
- move(down)
- move(down)
- move(down)
- move(down)
- move(left)
- move(left)
- move(up)
- move(up)
- move(up)
- move(up)
- move(right)
- move(right)
- move(left)
- move(left)
- move(down)
- move(down)
- move(right)
- move(right)
- move(down)
- move(down)
- move(left)
- move(left)
- move(up)
- move(up)
- move(right)
- move(right)
- move(up)
- move(up)
- move(left)
- move(left)
- move(down)
- move(down)
- move(down)
- move(down)
- move(down)
- return
- }
- Move(direction)
- {
- delay = %sleep_duration%
- sleep %delay%
- if (direction = "up")
- {
- send {Up down}
- sleep %delay%
- send {Up up}
- }
- else if (direction = "down")
- {
- send {down down}
- sleep %delay%
- send {Down up}
- }
- else if (direction = "left")
- {
- send {Left down}
- sleep %delay%
- send {Left up}
- }
- else if (direction = "right")
- {
- send {Right down}
- sleep %delay%
- send {Right up}
- }
- return
- }
- removetooltip:
- {
- settimer removetooltip, off
- tooltip
- return
- }
- guiclose:
- exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement