Results 1 to 12 of 12
  1. #1
    buzzzboy's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed

    My Ultimate Script (Regrets)

    hello guys, this is my very first release of anything in mpgh. hope you like it

    YOU NEED:
    -widescreen 16:10 -> 1280 X 768 resolution
    -lowest graphics settings (you might still need to modify the coordinates and pixel hex codes)
    -1hko secondaries
    -have the hero mode tab as your default tab (just press the hero tab when you're looking for boats, that's it)
    -make sure you disable ai so you don't die unexpectedly

    you will need to modify the bindings because I am using my own bindings

    EDIT: If you're having troubles with pixelsearch, simply increase the last parameter of every pixelsearch function (to 6 maybe). This basically expands the search to 6 shades of that color.

    without further ado, here it is:

    Code:
    ;thanks to Nunya and Riceking for first introducing the two pixel functions and getting me motivated to play around with the scripts to make my own, improved version.
    
    AutoItSetOption("PixelCoordMode", 0)
    AutoItSetOption("MouseCoordMode", 0)
    HotKeySet("{F9}", "start")
    HotKeySet("{F10}", "stop")
    HotKeySet("{pause}", "pause")
    
    Global $pause
    
    While 1
    	WinWaitActive("Vindictus", "")
    WEnd
    
    Func start()
    	While 1
    		Do ;this whole first part is an attempt at dock protection. sometimes when the server is laggy, you get docked after pressing 'replay', and the exp window is still stuck on your screen.
    			pixelsearch(1260, 749, 1262, 751, 0x727472, 6)
    			if @error Then
    				pixelsearch(1260, 749, 1262, 751, 0xC5CAC5, 6)
    				if not @error then
    					sleep(500)
    					Send("{numpad4}") ;big size (50)
    					sleep(2000)
    					Send("{numpadadd}") ;normal size
    					Send("{alt down}")
    					sleep(100)
    					MouseClick("left", 92, 603, 3, 0) ;click leave party
    					sleep(1500)
    					MouseClick("left", 614, 469, 3, 0) ;click ok
    					sleep(100)
    					Send("{alt up}")
    					sleep(500)
    					Send("{numpad6}") ;big size (10)
    					sleep(1500)
    					Send("{numpadadd}") ;normal size
    					sleep(500)
    					Send("{a down}")
    					sleep(500)
    					Send("{a up}")
    					Send("{w down}")
    					sleep(3000)
    					Send("{w up}")
    					MouseClick("left", 566, 509, 3, 0) ;click ainle
    					Do
    						PixelSearch(326, 89, 328, 91, 0xBA4D26, 6) ;wait for red part of hero mode tab
    					Until Not @error
    					MouseClick("left", 318, 674, 3, 0) ;click launch
    					sleep(1000)
    					MouseClickDrag("left", 818, 386, 818, 515, 2) ;scroll down
    					sleep(1000)
    					MouseClick("left", 584, 389, 3, 0) ;click regrets
    					sleep(1000)
    					MouseClick("left", 233, 523, 3, 0) ;click launch
    					exitloop
    				EndIf
    			EndIf
    		until not @error
    		
    		Do
    			PixelSearch(53, 638, 55, 640, 0x911813, 6) ;wait for start button
    		Until Not @error
    		ControlClick("Vindictus", "", "", "left", 3, 54, 639) ;click start
    		ControlSend("Vindictus", "", "", "{NUMPAD9}") ;fast forward
    		Do
    			PixelSearch(1054, 672, 1056, 674, 0x105472, 6) ;wait for blue loading bar towards the end when loading almost finishes
    		Until Not @error
    		ControlSend("Vindictus", "", "", "{NUMPAD7}") ;normal speed
    		ControlSend("Vindictus", "", "", "{NUMPADENTER}") ;skip map
    		sleep(500)
    		ControlSend("Vindictus", "", "", "{NUMPADENTER}") ;skip map
    		sleep(500)
    		ControlSend("Vindictus", "", "", "{NUMPADENTER}") ;skip map
    		Do
    			PixelSearch(826, 547, 828, 549, 0xF7F7F7, 6) ;wait for white chatbox
    		Until Not @error
    		sleep(500)
    		Controlsend("Vindictus", "", "", "9") ;bombs
    		sleep(500)
    		Controlsend("Vindictus", "", "", "{NUMPAD4}") ;big size
    		sleep(500)
    		Controlsend("Vindictus", "", "", "{NUMPADSUB}") ;small size
    		sleep(500)
    		ControlSend("Vindictus", "", "", "f") ;pull out
    		sleep(500)
    		ControlClick("Vindictus", "", "", "left", 4) ;throw
    		Do
    			PixelSearch(359, 135, 361, 137, 0x252625, 6) ;wait for exp screen
    		Until Not @error
    		MouseMove(350, 350, 0)
    		sleep(1)
    		MouseDown("left") ;click and hold to speed up exp screen
    		Do
    			PixelSearch(206, 729, 208, 731, 0x8E765E, 6) ;wait for replay button
    		Until Not @error
    		MouseUP("left")
    		ControlClick("Vindictus", "", "", "left", 3, 207, 730) ;click replay
    	WEnd
    EndFunc   ;==>start
    
    Func pause()
    $pause = NOT $pause
    While $pause
    sleep(100)
    ToolTip('Script is PAUSED, press PAUSE to UNPAUSE',0,0)
    WEnd
    ToolTip("")
    EndFunc
    
    Func stop()
    Exit
    EndFunc   ;==>stop
    Last edited by Nico; 07-25-2011 at 03:41 PM.

  2. #2
    Sid's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    New York
    Posts
    10,712
    Reputation
    927
    Thanks
    1,265
    Daum daum daum
    Nice nice

  3. #3
    shawnstuh's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    0
    holding down left mouse button makes the ending wait time shorter?
    I didn't know that.. lol

  4. #4
    Paladin's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    In my swamp, taking a fat ogre shit
    Posts
    7,564
    Reputation
    744
    Thanks
    1,535
    My Mood
    Yeehaw
    Grats on your first release, and good job contributing.



  5. #5
    sejend's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Germany :D
    Posts
    156
    Reputation
    9
    Thanks
    43
    My Mood
    Innocent
    Quote Originally Posted by shawnstuh View Post
    holding down left mouse button makes the ending wait time shorter?
    I didn't know that.. lol
    It does ?
    Mainly here for Vindictus and Rotmg
    Source Engine ftw


     


     



  6. #6
    buzzzboy's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    only for the exp screen, just click and hold in the menu when it's showing gold, bp, exp 1 at a time. it should increase the speed it shows.
    Last edited by buzzzboy; 06-09-2011 at 10:04 AM.

  7. #7
    buzzzboy's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    I can't seem to edit my OP, but if you're having troubles with the dock protection, change all the controlsend to the normal send function (in that first part).

  8. #8
    riceking's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    b
    Posts
    478
    Reputation
    12
    Thanks
    301
    My Mood
    Amazed
    Is this a universal one? :O great job


    [img]https://i37.photobucke*****m/albums/e52zies/Rainbow.png?[/img]


  9. #9
    buzzzboy's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    Quote Originally Posted by riceking View Post
    Is this a universal one? :O great job
    lol yeah, it is.

    man, I wish I could edit my first post since I've changed the dock protection.
    1) Since camera angles change, moving isn't the most reliable way. So instead of moving, I used the big size trick to go in/out of dock.
    2) Controlsend was buggy, so I switched to send.

  10. #10
    Pie's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    Michigan
    Posts
    6,911
    Reputation
    161
    Thanks
    3,296
    My Mood
    Bitchy
    Quote Originally Posted by buzzzboy View Post
    lol yeah, it is.

    man, I wish I could edit my first post since I've changed the dock protection.
    1) Since camera angles change, moving isn't the most reliable way. So instead of moving, I used the big size trick to go in/out of dock.
    2) Controlsend was buggy, so I switched to send.
    @buzzzboy just post the updated version on this thread and ask Sid or Hell_Demon to edit it for you.

  11. #11
    buzzzboy's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    134
    Reputation
    10
    Thanks
    2
    My Mood
    Relaxed
    Ok, I will do that.

    @Sid
    @Hell_Demon

    please edit my code with this one, thanks:

    Code:
    ;thanks to Nunya and Riceking for first introducing the two pixel functions and getting me motivated to play around with the scripts to make my own, improved version.
    
    AutoItSetOption("PixelCoordMode", 0)
    AutoItSetOption("MouseCoordMode", 0)
    HotKeySet("{F9}", "start")
    HotKeySet("{F10}", "stop")
    HotKeySet("{pause}", "pause")
    
    Global $pause
    
    While 1
    	WinWaitActive("Vindictus", "")
    WEnd
    
    Func start()
    	While 1
    		Do ;this whole first part is an attempt at dock protection. sometimes when the server is laggy, you get docked after pressing 'replay', and the exp window is still stuck on your screen.
    			pixelsearch(1260, 749, 1262, 751, 0x727472, 6)
    			if @error Then
    				pixelsearch(1260, 749, 1262, 751, 0xC5CAC5, 6)
    				if not @error then
    					sleep(500)
    					Send("{numpad4}") ;big size (50)
    					sleep(2000)
    					Send("{numpadadd}") ;normal size
    					Send("{alt down}")
    					sleep(100)
    					MouseClick("left", 92, 603, 3, 0) ;click leave party
    					sleep(1500)
    					MouseClick("left", 614, 469, 3, 0) ;click ok
    					sleep(100)
    					Send("{alt up}")
    					sleep(500)
    					Send("{numpad6}") ;big size (15)
    					sleep(1500)
    					Send("{numpadadd}") ;normal size
    					sleep(500)
    					Send("{a down}")
    					sleep(500)
    					Send("{a up}")
    					Send("{w down}")
    					sleep(3000)
    					Send("{w up}")
    					MouseClick("left", 566, 509, 3, 0) ;click ainle
    					Do
    						PixelSearch(326, 89, 328, 91, 0xBA4D26, 6) ;wait for red part of hero mode tab
    					Until Not @error
    					MouseClick("left", 318, 674, 3, 0) ;click launch
    					sleep(1000)
    					MouseClickDrag("left", 818, 386, 818, 515, 2) ;scroll down
    					sleep(1000)
    					MouseClick("left", 584, 389, 3, 0) ;click regrets
    					sleep(1000)
    					MouseClick("left", 233, 523, 3, 0) ;click launch
    					exitloop
    				EndIf
    			EndIf
    		until not @error
    		
    		Do
    			PixelSearch(53, 638, 55, 640, 0x911813, 6) ;wait for start button
    		Until Not @error
    		ControlClick("Vindictus", "", "", "left", 3, 54, 639) ;click start
    		ControlSend("Vindictus", "", "", "{NUMPAD9}") ;fast forward
    		Do
    			PixelSearch(1054, 672, 1056, 674, 0x105472, 6) ;wait for blue loading bar towards the end when loading almost finishes
    		Until Not @error
    		ControlSend("Vindictus", "", "", "{NUMPAD7}") ;normal speed
    		ControlSend("Vindictus", "", "", "{NUMPADENTER}") ;skip map
    		sleep(500)
    		ControlSend("Vindictus", "", "", "{NUMPADENTER}") ;skip map
    		sleep(500)
    		ControlSend("Vindictus", "", "", "{NUMPADENTER}") ;skip map
    		Do
    			PixelSearch(826, 547, 828, 549, 0xF7F7F7, 6) ;wait for white chatbox
    		Until Not @error
    		sleep(500)
    		Controlsend("Vindictus", "", "", "9") ;bombs
    		sleep(500)
    		Controlsend("Vindictus", "", "", "{NUMPAD4}") ;big size
    		sleep(500)
    		Controlsend("Vindictus", "", "", "{NUMPADSUB}") ;small size
    		sleep(500)
    		ControlSend("Vindictus", "", "", "f") ;pull out
    		sleep(500)
    		ControlClick("Vindictus", "", "", "left", 4) ;throw
    		Do
    			PixelSearch(359, 135, 361, 137, 0x252625, 6) ;wait for exp screen
    		Until Not @error
    		MouseMove(350, 350, 0)
    		sleep(1)
    		MouseDown("left") ;click and hold to speed up exp screen
    		Do
    			PixelSearch(206, 729, 208, 731, 0x8E765E, 6) ;wait for replay button
    		Until Not @error
    		MouseUP("left")
    		ControlClick("Vindictus", "", "", "left", 3, 207, 730) ;click replay
    	WEnd
    EndFunc   ;==>start
    
    Func pause()
    $pause = NOT $pause
    While $pause
    sleep(100)
    ToolTip('Script is PAUSED, press PAUSE to UNPAUSE',0,0)
    WEnd
    ToolTip("")
    EndFunc
    
    Func stop()
    Exit
    EndFunc   ;==>stop
    Last edited by buzzzboy; 06-11-2011 at 02:53 PM.

  12. #12
    Nico's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Germany :D
    Posts
    15,918
    Reputation
    1121
    Thanks
    8,617
    Wont work anymore. Closed.