コード例 #1
0
        public ExpDungeon(Process APP) : base(APP)
        {
            //Globals
            App = APP;

            //Points


            //Pixel Objects
            //Menu navigation hamburger button
            menu = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(918, 32)
            };

            //Dungeon sub navigation buttons
            dungeon[0] = new Pixel
            {
                Color = Color.FromArgb(255, 189, 188, 188),
                Point = new Point(240, 667)
            };
            dungeon[1] = new Pixel
            {
                Color = Color.FromArgb(255, 193, 192, 190),
                Point = new Point(239, 549)
            };

            //Daily Dungeon Red Dot that indicates a new quest
            expDungeon = new Pixel
            {
                Color = Color.FromArgb(255, 181, 0, 20),
                Point = new Point(953, 182)
            };

            //difficulty rating
            difficulty[0] = new Pixel                     //Green Bar that indicates if the quest is Easy as aposed to normal or hard, we are looking for this to enter
            {
                Color = Color.FromArgb(255, 80, 170, 30), //green
                Point = new Point(887, 297)
            };
            difficulty[1] = new Pixel //Very Hard
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(185, 528)
            };
            difficulty[2] = new Pixel //Hard
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(185, 437)
            };
            difficulty[3] = new Pixel //Normal
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(185, 330)
            };
            difficulty[4] = new Pixel //Easy
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(185, 225)
            };

            //Enter button
            enter = new Pixel
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(1050, 645)
            };

            //Map
            map = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(1180, 106)
            };

            //Map Location
            location = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(447, 552)
            };

            //Map exit button
            mapExit = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(1245, 42)
            };

            //The auto combat button that has the character complete the quest automatically
            autoCombat = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(887, 683)
            };

            //Ok menu
            ok[0] = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(940, 634)
            };
            ok[1] = new Pixel
            {
                Color = Color.FromArgb(255, 38, 75, 118),
                Point = new Point(945, 634)
            };

            //Complete
            completeQuest[0] = new Pixel
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(952, 644)
            };
            completeQuest[1] = new Pixel
            {
                Color = Color.FromArgb(255, 77, 127, 82),
                Point = new Point(957, 640)
            };

            //Close menu and go back to combat screen
            closeMenu[0] = new Pixel
            {
                Color = Color.FromArgb(255, 217, 218, 219),
                Point = new Point(1237, 28)
            };
            closeMenu[1] = new Pixel
            {
                Color = Color.FromArgb(255, 18, 24, 33),
                Point = new Point(1247, 44)
            };
        }
コード例 #2
0
ファイル: AltarOfMadness.cs プロジェクト: xxspokiixx/L2RBot
        //logic
        /// <summary>
        /// initializes the valies of the pixel objects
        /// </summary>
        private void BuildPixels()
        {
            SpotRevive[0] = new Pixel
            {
                Color = Color.White,
                Point = new Point(1064, 417)
            };

            SpotRevive[1] = new Pixel
            {
                Color = Colors.SpotReviveBtn,
                Point = new Point(1088, 407)
            };

            CompleteOk[0] = new Pixel
            {
                Color = Colors.OffWhite,
                Point = new Point(955, 631)
            };

            CompleteOk[1] = new Pixel
            {
                Color = Colors.CompleteOk,
                Point = new Point(954, 612)
            };

            CloseRechargeWindow[0] = new Pixel
            {
                Color = Colors.CloseRechargeWindowX,
                Point = new Point(852, 223)
            };

            CloseRechargeWindow[1] = new Pixel // button bg
            {
                Color = Colors.SpotReviveBtn,
                Point = new Point(652, 480)
            };

            CloseRechargeWindow[2] = new Pixel // 1
            {
                Color = Colors.White,
                Point = new Point(716, 419)
            };

            CloseGadgetWindow[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(626, 480)
            };

            CloseGadgetWindow[1] = new Pixel
            {
                Color = Colors.CompleteOk,
                Point = new Point(632, 462)
            };

            PartyAccept[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(897, 45)
            };

            PartyAccept[1] = new Pixel
            {
                Color = Colors.CompleteOk,
                Point = new Point(911, 30)
            };

            PartyLeader[0] = new Pixel
            {
                Color = Color.FromArgb(255, 5, 88, 176),
                Point = new Point(10, 7)
            };

            PartyLeader[1] = new Pixel
            {
                Color = Color.FromArgb(91, 189, 252),
                Point = new Point(12, 10)
            };

            PartyFull[0] = new Pixel
            {
                Color = Color.FromArgb(255, 104, 0, 0),
                Point = new Point(57, 394)
            };

            PartyFull[1] = new Pixel
            {
                Color = Color.White,
                Point = new Point(229, 180)
            };

            MapPoint = new Pixel()
            {
                Color = Color.White,
                Point = new Point(1205, 90)
            };
        }
コード例 #3
0
ファイル: QuestHelper.cs プロジェクト: grosbok/L2RBot
        /// <summary>
        /// Constructs QuestHelper data objects.
        /// </summary>
        /// <param name="App">Android Emulator Process object</param>
        public QuestHelper(Process App)
        {
            app    = Process.GetProcessById(App.Id);
            Screen = L2RBot.Screen.GetRect(App);

            //QuestHelper Pixel objects initialized
            _mainQuest = new Pixel //the pixel on btn to start/stop the main quest, method isPresent will not function as desired on this pixel as it changes frequently
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(125, 250)
            };

            //SkipQuestDialog button
            _skipDialog    = new Pixel[2];
            _skipDialog[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(1165, 507)//White S on 'Skip' button.
            };
            _skipDialog[1] = new Pixel
            {
                Color = Colors.Black,
                Point = new Point(1249, 600)//Black BG of the '>' (skip arrow).
            };

            //SkipQuestDialog button
            _skipCutScene    = new Pixel[3];
            _skipCutScene[0] = new Pixel
            {
                Color = Color.FromArgb(255, 232, 232, 232),
                Point = new Point(1168, 48)//S on the 'Skip' button.
            };
            _skipCutScene[1] = new Pixel
            {
                Color = Color.White,
                Point = new Point(1149, 10)//Spot to check if whole screen is white.
            };
            _skipCutScene[2] = new Pixel
            {
                Color = Color.FromArgb(255, 232, 232, 232),
                Point = new Point(39, 16)//The navigation back logo, to make sure menu is up.
            };

            //AcceptQuest button
            _acceptQuest    = new Pixel[2];
            _acceptQuest[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(702, 617)//White A on 'Accept Quest' button.
            };
            _acceptQuest[1] = new Pixel
            {
                Color = Colors.CompleteOk,
                Point = new Point(732, 592)//Blue 'Accept Quest' button's background.
            };

            //ClaimReward button
            _claimReward    = new Pixel[2];
            _claimReward[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(563, 611)//White C on 'Claim Reward' button.
            };
            _claimReward[1] = new Pixel
            {
                Color = Colors.CompleteOk,
                Point = new Point(626, 592)//Blue BG of 'Claim Reward' button.
            };

            //Continue button
            _continue    = new Pixel[2];
            _continue[0] = new Pixel
            {
                Color = Color.FromArgb(255, 251, 251, 251),
                Point = new Point(1055, 633)
            };
            _continue[1] = new Pixel
            {
                Color = Color.FromArgb(255, 51, 88, 130),
                Point = new Point(1012, 623)
            };

            //SkipTutorial button
            _skipTutorial    = new Pixel[3];
            _skipTutorial[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(1169, 50)//White S on the 'Skip' button.
            };
            _skipTutorial[1] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(1154, 54)//Point that is not white.
            };

            //Ok button, Skip Quest
            _skipTutorialOk    = new Pixel[2];
            _skipTutorialOk[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(749, 472)//White O on 'Ok' button.
            };
            _skipTutorialOk[1] = new Pixel
            {
                Color = Colors.CompleteOk,
                Point = new Point(735, 457)//Blue bg of 'Ok' button.
            };

            //Start Quest button, Weekly Quest
            _questStart    = new Pixel[2];
            _questStart[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(864, 491)//The White S on the 'Start Quest' button.
            };
            _questStart[1] = new Pixel
            {
                Color = Color.FromArgb(255, 49, 63, 83),
                Point = new Point(887, 479)//The blue BG on the 'Start Quest' button.
            };

            //Go Now button, Weekly Quest
            _questGoNow    = new Pixel[2];
            _questGoNow[0] = new Pixel
            {
                Color = Colors.White,

                Point = new Point(888, 494)//The G on the "Go Now' button.
            };
            _questGoNow[1] = new Pixel
            {
                Color = Color.FromArgb(255, 45, 59, 78),
                Point = new Point(897, 490)//the blue between the head and tale of the g on the 'Go Now' button
            };

            //Complete button, Weekly Quest
            _questComplete    = new Pixel[2];
            _questComplete[0] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(838, 493)//Front of the Q on the ' Quest Complete' button.
            };
            _questComplete[1] = new Pixel
            {
                Color = Colors.White,
                Point = new Point(843, 492)//Center of Q on 'Quest Complete' button
            };

            //Walk button, Weekly Quest
            _questWalk    = new Pixel[2];
            _questWalk[0] = new Pixel
            {
                Color = Color.FromArgb(255, 120, 130, 140),
                Point = new Point(468, 518)//W on the 'Walk" button
            };
            _questWalk[1] = new Pixel
            {
                Color = Color.FromArgb(255, 54, 90, 131),
                Point = new Point(666, 508)//the blue BG of the 'Teleport' button(none opaque)
            };

            //Walk button, Weekly Quest
            _subQuestStart    = new Pixel[2];
            _subQuestStart[0] = new Pixel
            {
                Color = Color.FromArgb(255, 255, 255, 255),
                Point = new Point(712, 603)
            };
            _subQuestStart[1] = new Pixel
            {
                Color = Color.FromArgb(255, 49, 85, 127),
                Point = new Point(701, 607)
            };

            _stuckLoading    = new Pixel[4];
            _stuckLoading[0] = new Pixel
            {
                Color = Colors.StuckLoading,
                Point = new Point(611, 339)//Top left quadrant.
            };
            _stuckLoading[1] = new Pixel
            {
                Color = Colors.StuckLoading,
                Point = new Point(664, 333)//Top right quadrant.
            };
            _stuckLoading[2] = new Pixel
            {
                Color = Colors.StuckLoading,
                Point = new Point(617, 387)//Bottom left quadrant.
            };
            _stuckLoading[3] = new Pixel
            {
                Color = Colors.StuckLoading,
                Point = new Point(670, 377)//Bottom Right quadrant
            };
        }
コード例 #4
0
ファイル: DailyDungeon.cs プロジェクト: xxspokiixx/L2RBot
        private void BuildPixels()
        {
            Hamburger[0] = new Pixel
            {
                Color = Colors.Navi,       //Color.FromArgb(255, 223, 226, 224);

                Point = new Point(917, 21) //Top bun/center of the hamburger button.
            };

            Hamburger[1] = new Pixel
            {
                Color = Colors.Navi,

                Point = new Point(914, 10)//Above the HAmburger button.
            };

            Dungeon[0] = new Pixel
            {
                Color = Color.FromArgb(255, 186, 186, 187),

                Point = new Point(239, 667)//Center of the Dungeon button.
            };

            Dungeon[1] = new Pixel
            {
                Color = Color.FromArgb(255, 186, 186, 187), //!Color

                Point = new Point(240, 680)                 //Blank space between the icon and text of Dungeon button.
            };

            Enter[0] = new Pixel
            {
                Color = Colors.OffWhite,

                Point = new Point(1041, 588)//Top of the E of the 'Enter' button.
            };

            Enter[1] = new Pixel
            {
                Color = Color.FromArgb(255, 186, 186, 187),

                Point = new Point(1032, 592)//The green BG of the'Enter' button.
            };

            Difficulty[0] = new Pixel
            {
                Color = Color.White,

                Point = new Point(615, 418) //The first of the seven difficulty squares.
            };                              //Only using 1 square atm.

            FinishedOk[0] = new Pixel
            {
                Color = Colors.OffWhite,

                Point = new Point(957, 633)//The O on the 'OK' button when finished.
            };

            FinishedOk[1] = new Pixel
            {
                Color = Colors.CompleteOk,

                Point = new Point(935, 612)//The blue BG of the 'OK' button.
            };

            Recharge[0] = new Pixel
            {
                Color = Colors.OffWhite,

                Point = new Point(974, 599)//The R on the 'Recharge'.
            };

            Recharge[1] = new Pixel
            {
                Color = Color.FromArgb(255, 80, 125, 85),

                Point = new Point(979, 580)//The Green BG of the 'Recharge' button.
            };

            FindDungeon[0] = new Pixel
            {
                Color = Color.FromArgb(255, 123, 115, 132),

                Point = new Point(173, 324)//The center of the Daily graphic
            };

            FindDungeon[1] = new Pixel
            {
                Color = Color.FromArgb(255, 181, 0, 20),

                Point = new Point(0, 0)//The red dot of Daily. Not used ATM.
            };
        }