public override void OnMatched(ScriptBase script)
        {
            var waitTime = 500;

            Logger.Writer("Reached Main Menu, checking if the girls need a break...");
            // Checking if hosts need a break

            if (script.MatchTemplate(N1StatusMap, 98) || script.MatchTemplate(N2StatusMap, 98) ||
                script.MatchTemplate(N3StatusMap, 98) || script.MatchTemplate(N4StatusMap, 98) ||
                script.MatchTemplate(N5StatusMap, 98) || script.MatchTemplate(N6StatusMap, 98))
            {
                Logger.Writer("Yup, girls need a break, proceeding to Assign Floor Crew...");
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script); // Entered Assign Floor Crew
            }
            else
            {
                Logger.Writer("Nope, they're all good, moving on to the shift...");
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Up", 1, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                script.Sleep(1000);
                MultiplePresses.Press("Cross", 1, waitTime, script);
            }
        }
Beispiel #2
0
        public override void OnMatched(ScriptBase script)
        {
            var waitTime = 10;

            if (Logger.LastSceneName != Name)
            {
                Logger.Writer("In the endscreen, moving on...");
            }
            Logger.LastScene(Name);

            // Just pressing X till it goes away
            MultiplePresses.Press("Cross", 1, waitTime, script);
        }
        public override void OnMatched(ScriptBase script)
        {
            var waitTime = 10;

            // Resetting guest served status if applicable
            if (script.MatchTemplate(t1GuestMap))
            {
                guest1served = false;
            }
            if (script.MatchTemplate(t2GuestMap))
            {
                guest2served = false;
            }
            if (script.MatchTemplate(t3GuestMap))
            {
                guest3served = false;
            }
            if (script.MatchTemplate(t4GuestMap))
            {
                guest4served = false;
            }

            // Cursor defaults at the first girl in the leftmost list, and returns there everytime a customer is served.

            // Table 1
            if (!script.MatchTemplate(t1GuestMap) && !guest1served)
            {
                Logger.Writer("Guest arrived at Table 1, serving on him!");
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Right", 2, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Left", 3, waitTime, script);
                guest1served = true;
            }

            // Table 2
            if (!script.MatchTemplate(t2GuestMap) && !guest2served)
            {
                Logger.Writer("Guest arrived at Table 2, serving on him!");
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Right", 2, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Up", 1, waitTime, script);
                MultiplePresses.Press("DPad_Left", 3, waitTime, script);
                guest2served = true;
            }

            // Table 3
            if (!script.MatchTemplate(t3GuestMap) && !guest3served)
            {
                Logger.Writer("Guest arrived at Table 3, serving on him!");
                MultiplePresses.Press("DPad_Left", 1, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Left", 2, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Right", 3, waitTime, script);
                guest3served = true;
            }

            // Table 4
            if (!script.MatchTemplate(t4GuestMap) && !guest4served)
            {
                Logger.Writer("Guest arrived at Table 4, serving on him!");
                MultiplePresses.Press("DPad_Left", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Left", 2, waitTime, script);
                MultiplePresses.Press("Cross", 2, waitTime, script);
                MultiplePresses.Press("DPad_Up", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 3, waitTime, script);
                guest4served = true;
            }
        }
Beispiel #4
0
        public override void OnMatched(ScriptBase script)
        {
            var waitTime = 500;

            if (script.MatchTemplate(HinaMap, 98))
            {
                Logger.Writer("Looks like it's time for the A-Team, let's get them ready for their shift...");
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Hina
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Emma
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 2, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Liz
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 3, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Bright
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Rena
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Sabrina
            }
            else
            {
                Logger.Writer("Looks like it's time for the B-Team, let's get them ready for their shift...");
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 2, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Jacqueline
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("DPad_Right", 3, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Susan
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 2, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Miriam
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 2, waitTime, script);
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Fan
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 2, waitTime, script);
                MultiplePresses.Press("DPad_Right", 2, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Jordan
                MultiplePresses.Press("DPad_Right", 1, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script);
                MultiplePresses.Press("DPad_Down", 2, waitTime, script);
                MultiplePresses.Press("DPad_Right", 3, waitTime, script);
                MultiplePresses.Press("Cross", 1, waitTime, script); // Selected Jordan
            }

            // Done! Returning to Main Menu!
            Logger.Writer("Shift staffed, returning to main menu...");
            MultiplePresses.Press("Circle", 1, waitTime, script);
            MultiplePresses.Press("DPad_Up", 1, waitTime, script);
        }