예제 #1
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.ItemIdentification, new DiscordSkillChangeEventHandler());
            skillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(Skill.ItemIdentification) < MAXIMUM_SKILL_VALUE)
            {
                var weapon = ObjectsFinder.FindInBackpackOrPaperdoll<Item>(EasyUOItem.PICKAXES);
                if (weapon.Count == 0)
                {
                    StealthAPI.Stealth.Client.Wait(1000);

                    continue;
                }

                StealthAPI.Stealth.Client.UseSkill(Skill.ItemIdentification);
                StealthAPI.Stealth.Client.WaitForTarget(5000);
                StealthAPI.Stealth.Client.TargetToObject(weapon[0].Serial.Value);

                DateTime dateTime = DateTime.Now;
                DateTime maxDateTime = dateTime.AddMilliseconds(6000);

                while (DateTime.Now < maxDateTime)
                {
                    if (StealthAPI.Stealth.Client.InJournalBetweenTimes("You estimate", dateTime, DateTime.Now) >= 0)
                        break;

                    Thread.Sleep(100);
                }
            }

            skillGainTracker.Stop();
        }
예제 #2
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.Hiding, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(Skill.Hiding) < MAXIMUM_SKILL_VALUE)
            {
                DateTime dateTime    = DateTime.Now;
                DateTime maxDateTime = dateTime.AddMilliseconds(MAXIMUM_TIMEOUT);

                StealthAPI.Stealth.Client.UseSkill(Skill.Hiding);

                while (DateTime.Now < maxDateTime)
                {
                    if (StealthAPI.Stealth.Client.InJournalBetweenTimes("You can't seem to hide here", dateTime, DateTime.Now) >= 0 || StealthAPI.Stealth.Client.InJournalBetweenTimes("You have hidden yourself well", dateTime, DateTime.Now) >= 0)
                    {
                        break;
                    }

                    Thread.Sleep(50);
                }
            }

            skillGainTracker.Stop();
        }
예제 #3
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.Lumberjacking, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            TileReader.Initialize();

            new RaillessLumberjacking().Start();

            skillGainTracker.Stop();
        }
예제 #4
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.Mining, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            ScriptLogger.LogToStealth = true;
            TileReader.Initialize();

            new RaillessMining().MineCave();

            skillGainTracker.Stop();
        }
예제 #5
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.DetectHidden, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(Skill.DetectHidden) < MAXIMUM_SKILL_VALUE)
            {
                StealthAPI.Stealth.Client.UseSkill(Skill.DetectHidden);

                Thread.Sleep(4500);
            }

            skillGainTracker.Stop();
        }
예제 #6
0
        static void Main(string[] args)
        {
            SkillGainTracker consoleSkillGainTracker = new SkillGainTracker(Skill.Tracking, new DiscordSkillChangeEventHandler());

            consoleSkillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(Skill.Tracking) < MAXIMUM_SKILL_VALUE)
            {
                StealthAPI.Stealth.Client.WaitMenu("Tracking", "Anything that moves");
                StealthAPI.Stealth.Client.WaitMenu("Tracking", "TrackingTrainer");
                StealthAPI.Stealth.Client.UseSkill(Skill.Tracking);
                Thread.Sleep(1000);
                StealthAPI.Stealth.Client.SetWarMode(true);
                StealthAPI.Stealth.Client.SetWarMode(false);
            }

            consoleSkillGainTracker.Stop();
        }
예제 #7
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.Anatomy, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(Skill.Anatomy) < MAXIMUM_SKILL_VALUE)
            {
                var human = ObjectsFinder.Find <Mobile>(EasyUOItem.MOBILE_HUMANS, 2).Find(_human => _human.Serial.Value != PlayerMobile.GetPlayer().Serial.Value);
                if (human == null)
                {
                    StealthAPI.Stealth.Client.Wait(1000);

                    continue;
                }

                StealthAPI.Stealth.Client.UseSkill(Skill.Anatomy);
                StealthAPI.Stealth.Client.WaitForTarget(5000);
                StealthAPI.Stealth.Client.TargetToObject(human.Serial.Value);
                StealthAPI.Stealth.Client.Wait(4000);
            }

            skillGainTracker.Stop();
        }
예제 #8
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(Skill.AnimalLore, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(Skill.AnimalLore) < MAXIMUM_SKILL_VALUE)
            {
                var animals = ObjectsFinder.Find <Mobile>(EasyUOItem.GRAY_HORSE, 4);
                if (animals.Count == 0)
                {
                    StealthAPI.Stealth.Client.Wait(1000);

                    continue;
                }

                StealthAPI.Stealth.Client.UseSkill(Skill.AnimalLore);
                StealthAPI.Stealth.Client.WaitForTarget(5000);
                StealthAPI.Stealth.Client.TargetToObject(animals[0].Serial.Value);
                StealthAPI.Stealth.Client.Wait(4000);
            }

            skillGainTracker.Stop();
        }
예제 #9
0
        static void Main(string[] args)
        {
            SkillGainTracker skillGainTracker = new SkillGainTracker(ArmsLore, new DiscordSkillChangeEventHandler());

            skillGainTracker.Start();

            while (StealthAPI.Stealth.Client.GetSkillValue(ArmsLore) < MAXIMUM_SKILL_VALUE)
            {
                var weapon = ObjectsFinder.FindInBackpackOrPaperdoll <Item>(EasyUOItem.PICKAXES);
                if (weapon.Count == 0)
                {
                    StealthAPI.Stealth.Client.Wait(1000);

                    continue;
                }

                StealthAPI.Stealth.Client.UseSkill(ArmsLore);
                StealthAPI.Stealth.Client.WaitForTarget(5000);
                StealthAPI.Stealth.Client.TargetToObject(weapon[0].Serial.Value);
                StealthAPI.Stealth.Client.Wait(2000);
            }

            skillGainTracker.Stop();
        }