Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ;set your keyboard controls here
  3.  
  4. global up := "up" ; arrow key up
  5. global down := "down" ; arrow key down
  6. global left := "left" ; arrow key left
  7. global right := "right" ; arrow key right
  8.  
  9. global start := "s"
  10. global LP := "a"
  11. global MP := "m"
  12. global HP := "p"
  13. global LK := "l"
  14. global MK := "k"
  15. global HK := "h"
  16.  
  17. /*
  18.  
  19. if you use wasd instead of arrow keys to move, then change above to
  20.  
  21. global up := "w"
  22. global down := "s"
  23. global left := "a"
  24. global right := "d"
  25.  
  26.  
  27. etc.
  28.  
  29. */
  30.  
  31. global helpers
  32. global sleep_duration
  33.  
  34. if exist settings.ini
  35.     fileread settings, settings.ini
  36. if settings
  37. {
  38.    
  39.        
  40.    
  41.    
  42. }
  43.  
  44. helpers=
  45. (
  46. Collosus,LP MP MK
  47. Psylocke,MK
  48. Lou, MP
  49. Michelle Heart, LP LK
  50. Devilot, MP HP
  51. Magneto, LK HP
  52. Juggernaught, LP MK
  53. Sentinel,MP MK HP
  54. Shadow Charlie, LP MK HP
  55. Storm, LP LK HP
  56. Anita, LP MP HP
  57. Arthur, LP MP
  58. Cyclops, LP LK MP
  59. Iceman, MP MK
  60. Jubilee, LK MP HP
  61. Pure and Fur, LK
  62. Saki, HP
  63. Unknown Soldier, LP
  64. U.S Agent, HP MK
  65. Rogue N/A, LP MP LK HP
  66. Thor, LK MP
  67. Ton-Pooh, LP HP
  68. )
  69.  
  70. helper_list=
  71. loop parse, helpers, `n,`r
  72. {
  73.     if not a_loopfield
  74.         continue
  75.     loop parse, a_loopfield, `,
  76.     {
  77.         if a_index = 1
  78.         {
  79.             helper_list=%helper_list%%a_loopfield%|
  80.         }
  81.         else
  82.             break
  83.     }
  84.        
  85. }
  86. stringreplace helper_list, helper_list,`n,|,a
  87. stringreplace helper_list, helper_list,Collosus|,Collosus|| ; make collosus selected by default
  88. gui, font, s12
  89.  
  90. gui, font, bold
  91. gui, add, text, xm y+20 w80 , CHARACTERS:
  92. gui, font, norm
  93. 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)
  94.  
  95. ;gui, add, dropdownlist, w150,Shadow Lady||Red Venom|Gold War Machine|Lilith|Orange Hulk|Roll
  96. gui, font, bold
  97. gui, add, text, xm y+10 w180 , HELPERS (TOGGLE):
  98. gui, font, norm
  99. gui, add, text,y+1,F6: Auto-Select
  100. gui, font, s10
  101. gui, add, dropdownlist, x+5 vHelperDDL w100, %helper_list%
  102.  
  103. gui, font, s12
  104.  
  105. gui, font, bold
  106. gui, font, s12
  107. gui, add, text, ys, DELAY:
  108. gui, add, edit, center w60 vsleep,1
  109. gui, Add, UpDown, w60 Horz vsleepUpDown Range1-5 gSleepAdjust, 1
  110. gui, font, norm
  111. gui, add, button, w60 valwaystop galwaystop,Make top
  112.  
  113. gosub sleepadjust
  114. ;`nF5: Sentinel`nF4: Shadow
  115.  
  116. gui, show,, MvC Secret Char/Helper Selector
  117.  
  118. return
  119.  
  120. alwaystop:
  121. {
  122.     target := "FB Alpha (pid:"
  123.     winwait, %target%, , 1
  124.     if errorlevel
  125.     {
  126.         tooltip fail
  127.         settimer removetooltip, 1000
  128.     }
  129.     else
  130.     {
  131.         tooltip found
  132.         settimer removetooltip, 1000
  133.         WinSet, AlwaysOnTop, toggle, FB Alpha (pid:
  134.     }
  135.    
  136.     return
  137. }
  138.  
  139. SleepAdjust:
  140. {
  141.     if sleepupdown =
  142.     {
  143.         guicontrolget,sleep
  144.         sleepupdown = %sleep%
  145.     }
  146.     guicontrol,,sleep,%sleepupdown%
  147.     if sleepupdown = 1
  148.         sleep_duration = 4
  149.     else if sleepupdown = 4
  150.         sleep_duration = 1
  151.     else if sleepupdown = 3
  152.         sleep_duration = 25
  153.     else if sleepupdown = 4
  154.         sleep_duration = 50
  155.     else if sleepupdown = 5
  156.         sleep_duration = 75
  157.     return
  158. }
  159. changedirection(direction)
  160. {
  161.     loop {
  162.         random, ran, 1,4
  163.         if ran != %direction%
  164.             break  
  165.         }
  166.        
  167.         return ransamk
  168.    
  169.     return
  170. }
  171.  
  172. oldRandom:
  173. {
  174.    
  175.     settimer catchRandomizeEnd,10
  176.     randomizeEnd =
  177.     loop
  178.     {
  179.         random, random,1,4
  180.         last_3 := last_2
  181.         last_2 := last_1
  182.         last_1 := random
  183.         ;tooltip %last_3% => %last_2% => %last_1%
  184.         if (last_1 == last_2) and (last_2 == last_3)
  185.         {
  186.            
  187.            
  188.             ;if random = 1
  189.             ;   random = 2
  190.             ;else if random = 2
  191.             ;   random = 1
  192.             ;else if random = 3
  193.             ;   random
  194.             ;else if random = 4
  195.             ;   random = 3
  196.                
  197.             random := changedirection(random)
  198.            
  199.         }
  200.        
  201.         last_1 := random
  202.                    
  203.         if random = 1
  204.             move(up)
  205.         else if random = 2
  206.             move(down)
  207.         else if random = 3
  208.             move(left)
  209.         else if random = 4
  210.             move(right)
  211.        
  212.         if randomizeEnd
  213.             break
  214.  
  215.     }
  216.  
  217.  
  218. return
  219. }
  220.  
  221. f5::
  222. {
  223.     if patternRunning
  224.     {
  225.         stopPattern = Yes
  226.         settimer pattern1, off
  227.         ToolTip
  228.     }
  229.     else
  230.     {
  231.         stopPattern =
  232.         settimer pattern1, 10
  233.         tooltip
  234.     }
  235.    
  236.     return
  237.    
  238. }
  239.    
  240.  
  241. pattern1:
  242. {
  243.     patternRunning = yes
  244.     /*
  245.     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"
  246.    
  247.     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"
  248.     */
  249.    
  250.     code:= "left, down, down, down, down, right, right, up, left, up, right, up, left, up"
  251.     loop
  252.     {
  253.         loop parse, code, `,,%a_space%
  254.         {
  255.             if not stopPattern
  256.                 move(%a_loopfield%)
  257.             else
  258.                 break
  259.         }
  260.        
  261.         if stopPattern
  262.             break
  263.     }
  264.     patternRunning =
  265.     settimer pattern1, off
  266.     return
  267. }
  268.  
  269. catchRandomizeEnd:
  270. {
  271.     keywait F5, Up L
  272.     randomizeEnd = Yes
  273.     settimer catchRandomizeEnd, off
  274.     return
  275. }
  276.  
  277. f6::
  278. {
  279.     guicontrol,disable,helperDDL
  280.     guicontrol,disable,sleep
  281.     guicontrolget, helperDDL
  282.     correct_code=
  283.  
  284.     loop parse, helpers, `n,`r
  285.     {
  286.         if not a_loopfield
  287.             continue
  288.        
  289.         name=
  290.         code=
  291.         loop parse, A_Loopfield, csv
  292.         {
  293.             if a_index = 1
  294.                 name = %a_loopfield%
  295.             else if a_index = 2
  296.                 code = %a_loopfield%
  297.         }
  298.        
  299.         if (name = helperDDL)
  300.         {
  301.             correct_code = %code%
  302.             break
  303.         }
  304.        
  305.     }
  306.  
  307.     if not correct_code
  308.         correct_code := "LP MP MK"
  309.  
  310.     button1=
  311.     button2=
  312.     button3=
  313.     button4=
  314.  
  315.     correct_code = %correct_code% ;trim white space
  316.     loop parse, correct_code, %a_space%
  317.     {
  318.         if a_index = 1
  319.             button1 = %a_loopfield%
  320.         if a_index = 2
  321.             button2 = %a_loopfield%
  322.         if a_index = 3
  323.             button3 = %a_loopfield%
  324.         if a_index = 4
  325.             button4 = %a_loopfield%
  326.     }
  327.  
  328.     if button1
  329.         button1 := %button1% ; "convert LP to a, etc."
  330.     if button2
  331.         button2 := %button2%
  332.     if button3
  333.         button3 := %button3%
  334.     if button4
  335.         button4 := %button4%
  336.  
  337.     tooltip %HelperDDL% Activated`n(%correct_code%)
  338.     sleep 5
  339.  
  340.     send {%start% down}
  341.     if button1
  342.         send {%button1% down}
  343.     if button2
  344.         send {%button2% down}
  345.     if button3
  346.         send {%button3% down}
  347.     if button4
  348.         send {%button4% down}
  349.  
  350.  
  351.     keywait F6, Up
  352.     Keywait F6, down
  353.  
  354.     sleep 5
  355.  
  356.     send {%start% up}
  357.     if button1
  358.         send {%button1% up}
  359.     if button2
  360.         send {%button2% up}
  361.     if button3
  362.         send {%button3% up}
  363.     if button4
  364.         send {%button4% up}
  365.  
  366.     tooltip
  367.     guicontrol,enable,helperDDL
  368.     guicontrol,enable,sleep
  369.  
  370.     return
  371.  
  372. }
  373.  
  374.  
  375. f7::
  376. {
  377.     PickRoll()
  378.     return
  379. }
  380.  
  381. f8::
  382. {  
  383.     PickOrangeHulk()
  384.     return
  385. }
  386.  
  387. f9::
  388. {  
  389.     PickLilith()
  390.     return 
  391. }
  392.  
  393. f10::
  394. {
  395.     PickGoldWM()
  396.     return
  397. }
  398.  
  399. f11::
  400. {
  401.     PickRedVenom()
  402.     return
  403. }
  404.  
  405. f12::
  406. {
  407.     PickShadowLady()
  408.     return
  409. }
  410.  
  411. PickRoll()
  412. {
  413.    
  414.     code := "Right, Left, Left, Down, Down, Right, Right, Down, Down, Left, Left, Up, Right, Up, Up, Right, Right"
  415.     loop parse, code, `,,%a_space%
  416.     {
  417.        
  418.         move(%a_loopfield%)
  419.     }
  420.  
  421.     return
  422.    
  423. }
  424.  
  425. PickOrangeHulk()
  426. {
  427.     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"
  428.    
  429.     loop parse, code, `,,%a_space%
  430.     {
  431.         move(%a_loopfield%)
  432.     }
  433.  
  434.     return
  435. }
  436.  
  437. PickLilith()
  438. {
  439.    
  440.     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"
  441.  
  442.     loop parse, code, `,,%a_space%
  443.     {
  444.         move(%a_loopfield%)
  445.     }
  446.  
  447.     return
  448.  
  449. }
  450.  
  451. PickGoldWm()
  452. {
  453.    
  454.     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"
  455.    
  456.     loop parse, code, `,,%a_space%
  457.     {
  458.         move(%a_loopfield%)
  459.     }
  460.  
  461.     return
  462. }
  463.  
  464. PickRedVenom()
  465. {
  466.     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"
  467.    
  468.     loop parse, code, `,,%a_space%
  469.     {
  470.         move(%a_loopfield%)
  471.     }
  472.  
  473.     return
  474.    
  475. }
  476.  
  477. PickShadowLady()
  478. {
  479.    
  480.     move(left)
  481.     move(down)
  482.     move(up)
  483.     move(right)
  484.     move(right)
  485.     move(down)
  486.     move(down)
  487.     move(down)
  488.     move(down) 
  489.     move(left)
  490.     move(left)
  491.     move(up)
  492.     move(up)
  493.     move(up)
  494.     move(up)
  495.     move(right)
  496.     move(right)
  497.     move(left)
  498.     move(left)
  499.     move(down)
  500.     move(down)
  501.     move(right)
  502.     move(right)
  503.     move(down)
  504.     move(down)
  505.     move(left)
  506.     move(left)
  507.     move(up)
  508.     move(up)
  509.     move(right)
  510.     move(right)
  511.     move(up)
  512.     move(up)
  513.     move(left)
  514.     move(left)
  515.     move(down)
  516.     move(down)
  517.     move(down)
  518.     move(down)
  519.     move(down)
  520.     return
  521.    
  522. }
  523.  
  524. Move(direction)
  525. {
  526.     delay = %sleep_duration%
  527.     sleep %delay%
  528.     if (direction = "up")
  529.     {
  530.        
  531.         send {Up down}
  532.         sleep %delay%
  533.         send {Up up}
  534.     }
  535.     else if (direction = "down")
  536.     {
  537.         send {down down}
  538.         sleep %delay%
  539.         send {Down up}
  540.     }
  541.     else if (direction = "left")
  542.     {
  543.         send {Left down}
  544.         sleep %delay%
  545.         send {Left up}
  546.     }
  547.     else if (direction = "right")
  548.     {
  549.         send {Right down}
  550.         sleep %delay%
  551.         send {Right up}
  552.     }
  553.    
  554.  
  555.     return
  556. }
  557.  
  558. removetooltip:
  559. {
  560.     settimer removetooltip, off
  561.     tooltip
  562.     return
  563. }
  564.  
  565. guiclose:
  566. exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement