Thread Rating:
  • 18 Vote(s) - 2.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with perfecting my Imperial MGP farm .AHK script
#1
Hey guys, I've tried my hand at scripting a flawless MGP farm with the Imperial NPC in Mor Dhona. I'm still an amateur at scripting but I can understand what's happening when something works. Here's what I've come up with so far using this deck in this order (make sure this deck is deck #1 in your saved deck list):

[Image: BdmMSN2.png]

Here is the script I've come up with (note it's currently far from perfect):

PHP Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
WinGetprogramid, List, FINAL FANTASY

CoordMode
ToolTipScreen

Win Z to Start
#Z::

Loop
{
tooltip, `nCurrent Game # : %A_Index%`n00
Create Window Tool Tip to show # of Games
           
sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
           
Sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
           
Sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
           
Sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
           
Sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
           
Sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
       
Sleep 1500
        ControlSend
,,{Numpad0}, ahk_id %programid1%
       
Sleep 12000

Game startedAlphinaud    
    
{
    
PixelGetColorcolor182416
        
if color 0x7d5c3d
       
{
          
Click180430 Pick up Alphinaud
          Sleep 1500
          Click
650425 Drop Alphinaud bottom right
          Sleep 1500
          Click
180430 Pick up Alphinaud
          Sleep 1500
          Click
510425 Drop Alphinaud middle bottom
       
}
    }
          
Sleep 7000 Imperial turn

Our turnUrianger
    
{
    
PixelGetColorcolor157284
        
if color 0x785638
       
{
          
Click125300 Pick up Urianger
          Sleep 1500
          Click
510280 Drop Urianger middle
          Sleep 1500
          Click
125300 Pick up Urianger
          Sleep 1500
          Click
650280 Drop Urianger middle right
          Sleep 1500
          Click
125300 Pick up Urianger
          Sleep 1500
          Click
510425 Drop Urianger middle bottom
       
}
    }
          
Sleep 7000 Imperial turn

Our turnThancred
    
{
    
PixelGetColorcolor203288
        
if color 0x785638
       
{
          
Click235300 Pick up Thancred
          Sleep 1500
          Click
650145 Drop Thancred top right
          Sleep 1500
          Click
235300 Pick up Thancred
          Sleep 1500
          Click
510145 Drop Thancred top middle
          Sleep 1500
          Click
235300 Pick up Thancred
          Sleep 1500
          Click
375145 Drop Thancred top left
       
}
    }
          
Sleep 7000 Imperial turn

Our turnYshtola
    
{
    
PixelGetColorcolor43469
        
if color 0x725432
       
{
          
Click70430 Pick up Yshtola
          Sleep 1500
          Click
375425 Drop Yshtola bottom left
          Sleep 1500
          Click
70430 Pick up Yshtola
          Sleep 1500
          Click
375280 Drop Yshtola middle left
          Sleep 1500
          Click
70430 Pick up Yshtola
          Sleep 1500
          Click
375145 Drop Yshtola top left
       
}
    }
          
Sleep 7000 Imperial turn

Our turnPapalymo
       
{
          
ControlSend,,{Numpad4}, ahk_id %programid1%
          
Sleep 1500
          ControlSend
,,{Numpad4}, ahk_id %programid1%
          
Sleep 1500
          ControlSend
,,{Numpad4}, ahk_id %programid1%
          
Sleep 1500
          ControlSend
,,{Numpad4}, ahk_id %programid1%
          
Sleep 1500
          ControlSend
,,{Numpad0}, ahk_id %programid1%
          
Sleep 1500
          ControlSend
,,{Numpad0}, ahk_id %programid1%
          
Sleep 7000
       
}


I'm not too worried about the card placement and strategy at this point, although I do know a 100% win rate with this deck. I would like the script to run uninterupted first with all possible placements covered.

Currently it seems to work up until after the Y'shtola placement, depending on if the NPC went first or not. It probably needs a few if/else placements in there I'm guessing but I do need a fresh eye to look over it.

I'm running these tests in 1024x768 windowed mode, so you might have to adapt the coordinates and colour info to match your own.

So I'm essentially looking for people willing to help me perfect this script (or give it an overhaul if needed). The MGP farm is cruel right now so it would be nice to have some guaranteed overnight MGP income!
Reply
#2
Disregard the above script. I've figured out a guaranteed method, will post when I finish it.
Reply
#3
(03-19-2015, 11:22 PM)brooklynbase Wrote:  Disregard the above script. I've figured out a guaranteed method, will post when I finish it.

Oh that would be quite welcome!
Thanks in advance!
Reply
#4
(03-19-2015, 11:22 PM)brooklynbase Wrote:  Disregard the above script. I've figured out a guaranteed method, will post when I finish it.

Sweet, can't wait!
Reply
#5
I guess this is dead?
Reply
#6
it's only been couple of days
let the man post when he is free to do so :p
Reply
#7
Hi Brooklyn! So how did you do here?
Reply
#8
This post was moved from general forum and think user posted the follow up there. http://www.mmominion.com/Thread-Gold-Sau...8#pid93498
Reply
#9
Heyla guys!
someone can explain to mehow program i need to run this script?
TY!
Reply
#10
(05-10-2015, 05:38 PM)roberto_mm86 Wrote:  Heyla guys!
someone can explain to mehow program i need to run this script?
TY!

you mean what programm?

use the search function.

Other than that you need

ahkscript.org

bevore asking questions that where already asked hundret of time. Try to search for an answer online.
Reply
 


Forum Jump:


Users browsing this thread: 3 Guest(s)

We help you win the game.

FFXIV Bot and More.

 

Products