当前位置: 首页>>代码示例>>C#>>正文


C# RoundZone.ObjInZone方法代码示例

本文整理汇总了C#中RoundZone.ObjInZone方法的典型用法代码示例。如果您正苦于以下问题:C# RoundZone.ObjInZone方法的具体用法?C# RoundZone.ObjInZone怎么用?C# RoundZone.ObjInZone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RoundZone的用法示例。


在下文中一共展示了RoundZone.ObjInZone方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Ferre_Megana")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompletedOrAccepted(1441))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(23359.67, 8528.11, 100);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("FerreLvl11_1_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 8116 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }
            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:31,代码来源:Quest_1437.cs

示例2: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Ferre_Tamuna")) return false;
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(23634.95, 9054.73, 100);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("FerreLvl9_2_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 5737, 5738, 5740, 11941, 11944, 11945, 11947 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }

            if (quest != null && quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Ferre_Eshelgyn")) return false;
                host.CompleteQuest(id);
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:35,代码来源:Quest_1407.cs

示例3: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;


            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Headlands_Doska1")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompleted(3646))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(17230.77, 8313.72, 75);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Headlands_Archealogy")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 2953 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:33,代码来源:Quest_951.cs

示例4: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Ferre_Djulur"))
                    return false;
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(24132.51, 9823.89, 50);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("FerreLvl4_4_1"))
                        return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 7927 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }


            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:31,代码来源:Quest_4289.cs

示例5: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Ferre_Doska_4")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompletedOrAccepted(1433))
                return false;
            if (!checkQuestCompletedOrAccepted(6353))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(23191.90, 8733.62, 100);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("FerreLvl10_13_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 4194, 4193, 4190, 4191, 4192, 4195, 4196 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }
            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:33,代码来源:Quest_1436.cs

示例6: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Tiger_Doska3")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompletedOrAccepted(1099))
                return false;
            if (!checkQuestCompletedOrAccepted(1100))
                return false;

            if (quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(21294.38, 8985.51, 28);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Quest_1098_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 3369,3370 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:34,代码来源:Quest_1098.cs

示例7: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;


            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Mahadevi_Tarmillon")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            if (!checkQuestCompletedOrAccepted(1504))
                return false;

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(18731.94, 7683.06, 80);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Quest_2902_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 2510 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }
                       
            
            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:34,代码来源:Quest_2902.cs

示例8: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Tiger_Panadi")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompletedOrAccepted(1085))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(20865.71, 8320.23, 45);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Quest_1086_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 3362 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:32,代码来源:Quest_1086.cs

示例9: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Tiger_Ubari")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(21043.37, 8748.22, 100);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Quest_1107_1")) return false;
                while (host.me.isAlive() && quest.status == QuestStatus.Accepted)
                {
                    if (host.farmModule.aggroMobsCount() == 0)
                    {
                        var m = getNearestMob(zone);
                        if (m != null)
                        {
                            host.SetTarget(m);
                            Thread.Sleep(1000);
                            host.UseItem(14579, true);
                            Thread.Sleep(2500);
                        }
                        Thread.Sleep(1000);
                        host.UseDoodadSkill(12052, host.getNearestDoodad(3075), true);
                    }
                    else
                    {
                        host.farmModule.SetFarmMobs(zone, new uint[] { 3366 });
                        while (host.me.isAlive() && host.farmModule.aggroMobsCount() > 0)
                            Thread.Sleep(1000);
                        host.farmModule.StopFarm();
                    }
                    Thread.Sleep(1000);
                }

                Thread.Sleep(1000);
            }

            if (quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Tiger_Ubari")) return false;
                Thread.Sleep(1000);
                host.CompleteQuest(id);
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:58,代码来源:Quest_1107.cs

示例10: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Ferre_Sheodar")) return false;
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompletedOrPerfomed(1366))
                return false;
            if (!checkQuestCompletedOrPerfomed(1367))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(23875.12, 9346.01, 50);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("FerreLvl8_10_1")) return false;
                host.farmModule.SetFarmDoodads(zone, new uint[] { 6453 }, 3);
                while (host.farmModule.farmState == Modules.FarmState.Doodads && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
                double dist = 999999;
                Creature t = null;
                foreach (var c in host.getCreatures())
                {
                    if (c.creatureId == 11120 && host.isAlive(c) && host.me.dist(c) < dist)
                    {
                        dist = host.me.dist(c);
                        t = c;
                    }
                }
                if (t != null)
                    host.StartQuest(1413);
            }

            if (!checkQuestCompletedOrPerfomed(1366))
                return false;
            if (!checkQuestCompletedOrPerfomed(1367))
                return false;

            if (quest != null && quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Ferre_Sheodar")) return false;
                host.CompleteQuest(id, 2);
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:57,代码来源:Quest_1365.cs

示例11: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Singland_Leisan")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompleted(1415))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                if (!host.movementModule.GpsMove("Quest_963_1")) return false;
                Thread.Sleep(1000);
                Zone zone = new RoundZone(22852.91, 10853.25,9);
                if (host.itemCount(5140) < 3)
                {
                    host.farmModule.SetFarmMobs(zone, new uint[] { 5019 }, 5142);
                    while (host.me.isAlive() && quest.status == QuestStatus.Accepted && host.itemCount(5140) < 3)
                        Thread.Sleep(100);
                    host.farmModule.StopFarm();
                }
                if (host.itemCount(5140) >= 3)
                {
                    while (host.me.isAlive() && quest.status == QuestStatus.Accepted && host.itemCount(5140) > 0)
                    {
                        var c = host.farmModule.GetNearestCreatureById(5072);
                        if (c != null && zone.ObjInZone(c) && host.getBuff(c,1439) != null)
                        {
                            host.SetTarget(c);
                            Thread.Sleep(500);
                            host.UseItem(5140);
                        }
                        Thread.Sleep(100);
                    }
                }
            }

            if (quest != null && quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Singland_Leisan"))
                    return false;
                Thread.Sleep(1000);
                host.CompleteQuest(id);
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:57,代码来源:Quest_963.cs

示例12: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (!checkQuestCompletedOrAccepted(1512))
                return false;
            if (!checkQuestCompletedOrAccepted(899))
                return false;
            if (!checkQuestCompletedOrAccepted(1510))
                return false;
            if (!checkQuestCompletedOrAccepted(1514))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Mahadevi_Mikki")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(18614.10, 9458.48, 40);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Quest_1511_1")) return false;
                host.farmModule.SetFarmDoodads(zone, new uint[] { 6622, 6625 });
                while (host.farmModule.farmState == Modules.FarmState.Doodads && quest.status == QuestStatus.Accepted)
                {
                    if (host.itemCount(14394) > 0)
                        host.farmModule.SetFarmDoodads(zone, new uint[] { 6625 });
                    if (host.itemCount(17028) > 0)
                        host.farmModule.SetFarmDoodads(zone, new uint[] { 6622 });
                    Thread.Sleep(100);
                }
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }

            if (quest != null && quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Mahadevi_Mikki")) return false;
                Thread.Sleep(1000);
                host.CompleteQuest(id);
                Thread.Sleep(1000);
            }
            
            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:52,代码来源:Quest_1511.cs

示例13: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Singland_Kereh")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (!checkQuestCompleted(825))
                return false;

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                if (!host.movementModule.GpsMove("Quest_1856_1")) return false;
                Thread.Sleep(1000);

                Zone zone = new RoundZone(22443.35, 9969.25, 15);
                while (host.isAlive() && quest.status == QuestStatus.Accepted)
                {
                    var c = host.farmModule.GetNearestCreatureById(7278);
                    if (c != null && zone.ObjInZone(c) && host.getBuff(c,1441) != null)
                    {
                        host.SetTarget(c);
                        Thread.Sleep(500);
                        host.UseItemAndWait(5215);
                        Thread.Sleep(500);
                    }
                    Thread.Sleep(100);
                }
                
                
            }

            if (quest != null && quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Singland_Kereh")) return false;
                Thread.Sleep(1000);
                host.CompleteQuest(id);
                Thread.Sleep(1000);
            }

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:50,代码来源:Quest_1856.cs

示例14: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Ferre_Gynnash"))
                    return false;
                host.StartQuest(id);
                Thread.Sleep(1000);
            }


            if (!checkQuestCompletedOrAccepted(3438))
                return false;
            if (!checkQuestCompletedOrAccepted(1236))
                return false;
            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(24411.72, 8590.32, 50);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Ferre_Shoihota"))
                        return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 4182, 4180, 4181 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                    Thread.Sleep(100);
                host.farmModule.StopFarm();
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest qFerreLvl7_4 = getQuest(1239);
            if (qFerreLvl7_4 == null)
                return false;
            if (qFerreLvl7_4.status != QuestStatus.Performed)
                return false;

            if (quest != null && quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Ferre_Gynnash"))
                    return false;
                host.CompleteQuest(id,1);
                Thread.Sleep(1000);
            }
            

            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:50,代码来源:Quest_1240.cs

示例15: RunQuest

        public override bool RunQuest(Host host)
        {
            if (!base.RunQuest(host))
                return false;

            if (getQuest() == null)
            {
                if (!host.movementModule.GpsMove("Mahadevi_Fessimar")) return false;
                Thread.Sleep(1000);
                host.StartQuest(id);
                Thread.Sleep(1000);
            }

            ArcheBuddy.Bot.Classes.Quest quest = getQuest();

            if (quest != null && quest.status == QuestStatus.Accepted)
            {
                Zone zone = new RoundZone(18544.75, 7551.85, 60);
                if (!zone.ObjInZone(host.me))
                    if (!host.movementModule.GpsMove("Quest_1507_1")) return false;
                host.farmModule.SetFarmMobs(zone, new uint[] { 5258 });
                while (host.farmModule.farmState == Modules.FarmState.Enabled && quest.status == QuestStatus.Accepted)
                {
                    if (host.me.target != null && host.me.target.creatureId == 5258 && host.hpp(host.me.target) < 50)
                    {
                        host.farmModule.StopFarm();
                        while (host.me.isCasting || host.me.isGlobalCooldown)
                            Thread.Sleep(10);
                        host.UseItem(14380, true);
                        while (host.me.isCasting || host.me.isGlobalCooldown)
                            Thread.Sleep(10);
                        host.farmModule.SetFarmMobs(zone, new uint[] { 5258 });
                    }
                    Thread.Sleep(100);
                }
                
                Thread.Sleep(1000);
            }

            if (quest.status == QuestStatus.Performed)
            {
                if (!host.movementModule.GpsMove("Mahadevi_Fessimar")) return false;
                Thread.Sleep(1000);
                host.CompleteQuest(id);
                Thread.Sleep(1000);
            }
            
            return true;
        }
开发者ID:eysho,项目名称:ProjektAA,代码行数:49,代码来源:Quest_1507.cs


注:本文中的RoundZone.ObjInZone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。