コード例 #1
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        for (int i = 1; i <= 4; i++)
        {
            bot.Skills.Add(i, 1f);
        }

        int quest = 367;

        string [] item = { "Replacement Tibia", "Phalanges" };
        int  []   q    = { 6, 3 };

        bot.Player.Join("castleundead");

        while (!bot.ShouldExit())
        {
            bot.Quests.EnsureAccept(quest);
            bot.Player.HuntForItems("Skeletal Warrior|Skeletal Viking", item, q, tempItems: true);
            bot.Quests.EnsureComplete(quest);
        }

        bot.Exit();
    }
コード例 #2
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        if (bot.Skills.OverrideSkills == null)
        {
            bot.Skills.LoadSkills("./Skills/Generic.xml");
        }
        bot.Skills.StartTimer();

        while (!bot.ShouldExit())
        {
            if (bot.Map.Name != "weaverwar")
            {
                bot.Player.Join("weaverwar");
            }
            if (!bot.Quests.IsInProgress(QUEST))
            {
                bot.Quests.EnsureAccept(QUEST);
            }
            bot.Player.HuntForItem(TARGET, "Chaosweaver Slain", quantity: 10, tempItem: true);
            if (bot.Quests.CanComplete(QUEST))
            {
                bot.Quests.EnsureComplete(QUEST);
            }
        }

        bot.Exit();
    }
コード例 #3
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.InfiniteRange         = true;
        bot.Options.ExitCombatBeforeQuest = true;

        if (bot.Skills.OverrideSkills == null)
        {
            bot.Skills.LoadSkills("./Skills/Generic.xml");
        }
        bot.Skills.StartTimer();

        bot.Player.LoadBank();
        bot.Inventory.BankAllCoinItems();

        // Shurpu Blaze Tokens for Pyromancer
        DailyRoutine(bot, "xancave", 2209, "Shurpu Ring Guardian", "Shurpu Blaze Token", 300);

        // Seals of Light and Darkness for Bright Knight Armor
        DailyRoutine(bot, "sepulchurebattle", 3825, "Ultra Sepulchure", "Seal of Darkness", 50);
        DailyRoutine(bot, "alteonbattle", 3826, "Ultra Alteon", "Seal of Light", 50);

        // Moglin MEAL for Moglin Pet.
        DailyRoutine(bot, "nexus", 4159, "Frogzard", "Moglin MEAL", 30);

        // Dage Scroll Fragment for Drakath's Armor
        DailyRoutine(bot, "mountdoomskull", 3596, "Chaos Spider", "Dage's Scroll Fragment", 30);

        // Shadow Shield for Shadowscythe General
        DailyRoutine(bot, "lightguardwar", 3828, "Lightguard Paladin|Citadel Crusader|Scorching Flame", "Shadow Shield", 500);

        // Various Ores from Necropolis
        // Change "false" to "true" if you have unlocked this quest.
        if (!bot.Quests.IsDailyComplete(2091))
        {
            string [] ores = { "Aluminum", "Barium", "Gold", "Iron", "Copper", "Silver", "Platinum" };
            bot.Quests.EnsureAccept(2091);
            bot.Player.Join("stalagbite");
            bot.Player.HuntForItem("Balboa", "Axe of the Prospector", 1);
            bot.Player.HuntForItem("Balboa", "Raw Ore", 30, tempItem: true);
            bot.Quests.EnsureComplete(2091);

            foreach (string o in ores)
            {
                if (bot.Player.DropExists(o))
                {
                    bot.Bank.ToInventory(o);
                    bot.Player.Pickup(o);
                    bot.Log(o + "(" + bot.Inventory.GetQuantity(o) + ")");
                    bot.Inventory.ToBank(o);
                }
            }
        }

        bot.Player.Join("yulgar");
        bot.Exit();
    }
コード例 #4
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.InfiniteRange         = true;
        bot.Options.SkipCutsenes          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        bot.Skills.StartTimer();

        bot.Skills.Add(1, 2f);
        bot.Skills.Add(2, 2f);
        bot.Skills.Add(3, 2f);
        bot.Skills.Add(4, 2f);

        bot.Drops.Add("Dage's Favor");
        bot.Drops.Add("Legion Token");
        bot.Drops.RejectElse = true;
        bot.Drops.Start();

        bot.Bank.ToInventory("Legion Token");
        bot.Bank.ToInventory("Infernal Caladbolg");

        if (!bot.Inventory.Contains("Infernal Caladbolg"))
        {
            bot.Exit();
        }

        while (!bot.ShouldExit())
        {
            bot.Quests.EnsureAccept(3722);

            manualHunt(bot, "fotia", "Fotia Elemental", "Betrayer Extinguished", 5, isTemp: true);

            if (bot.Player.InCombat)
            {
                bot.Player.Jump(bot.Player.Cell, bot.Player.Pad);
            }

            bot.Sleep(2000);

            manualHunt(bot, "evilwardage", "Dreadfiend of Nulgath", "Fiend Felled", 2, isTemp: true);

            if (bot.Player.InCombat)
            {
                bot.Player.Jump(bot.Player.Cell, bot.Player.Pad);
            }

            bot.Quests.EnsureComplete(3722);

            bot.Sleep(2000);
        }

        bot.Drops.Stop();
    }
コード例 #5
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.InfiniteRange         = true;
        bot.Options.ExitCombatBeforeQuest = true;

        bot.Skills.StartTimer();

        bot.Skills.Add(1, 2f);
        bot.Skills.Add(2, 2f);
        bot.Skills.Add(3, 2f);
        bot.Skills.Add(4, 2f);

        bot.Player.LoadBank();
        bot.Inventory.BankAllCoinItems();

        foreach (string r in REWARD)
        {
            if (bot.Bank.Contains(r))
            {
                bot.Bank.ToInventory(r);
            }
        }

        bot.Player.Join("lostruins");

        while (!bot.ShouldExit())
        {
            foreach (int q in QUEST)
            {
                bot.Quests.EnsureAccept(q);
            }
            while (!isFinished(bot))
            {
                for (int i = 0; i < 3; i++)
                {
                    if (bot.Inventory.GetQuantity(ITEM[i]) < 500)
                    {
                        bot.Player.Hunt(ENEMY[i]);
                    }
                }
            }
            foreach (int q in QUEST)
            {
                if (bot.Quests.CanComplete(q))
                {
                    bot.Quests.EnsureComplete(q);
                }
            }
        }
        bot.Exit();
    }
コード例 #6
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        for (int i = 1; i <= 4; i++)
        {
            bot.Skills.Add(i, 1f);
        }
        bot.Player.LoadBank();
        bot.Inventory.BankAllCoinItems();

        bot.Bank.ToInventory("Legion Token");
        bot.Bank.ToInventory("Legion Soul Collector");
        bot.Bank.ToInventory("Undead Champion");

        bot.Player.Join("dreadrock");

        int    targetQuest        = 4849;
        string targetEnemies      = "Fallen Hero|Hollow Wraith|Legion Sentinel|Shadowknight|Void Mercenary";
        string targetItem         = "Dreadrock Enemy Recruited";
        int    targetItemQuantity = 6;
        bool   targetIsTemp       = true;
        string targetGoal         = "Legion Token";
        int    targetAmount       = 2000;

        bot.Drops.Add(targetGoal);
        bot.Drops.RejectElse = true;
        bot.Drops.Start();

        while (!bot.ShouldExit() || bot.Inventory.Contains(targetGoal, targetAmount))
        {
            bot.Quests.EnsureAccept(targetQuest);
            if (bot.Quests.CanComplete(targetQuest))
            {
                bot.Quests.EnsureComplete(targetQuest);
            }
            else if (!bot.Quests.CanComplete(targetQuest))
            {
                bot.Player.HuntForItem(targetEnemies, targetItem, targetItemQuantity, targetIsTemp);
            }
        }

        bot.Drops.Stop();
        bot.Exit();
    }
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        for (int i = 1; i <= 4; i++)
        {
            bot.Skills.Add(i, 1f);
        }

        int    quest = 236;
        string item  = "Berserker Bunny";

        int currGold  = bot.Player.Gold;
        int deltaGold = currGold + 1;

        bot.Player.Join("greenguardwest", "West12", "Up");

        while (!bot.ShouldExit() || deltaGold == 0)
        {
            if (bot.Player.DropExists(item))
            {
                bot.Player.Pickup(new string[] { item });
            }
            else if (bot.Quests.CanComplete(quest))
            {
                bot.Quests.EnsureComplete(quest);
            }
            else if (!bot.Quests.IsInProgress(quest))
            {
                bot.Quests.EnsureAccept(quest);
            }
            else if (bot.Inventory.Contains(item))
            {
                bot.Shops.SellItem(item);
                deltaGold = bot.Player.Gold - currGold;
                currGold  = bot.Player.Gold;
            }
            else
            {
                bot.Player.HuntForItem("Big Bad Boar", "Were Egg", 1, tempItem: true);
            }
        }

        bot.Exit();
    }
コード例 #8
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Options.SafeTimings  = true;
        bot.Options.RestPackets  = true;
        bot.Options.PrivateRooms = true;

        bot.Skills.StartSkills("Skills/Generic.xml");
        bot.Player.LoadBank();

        EggshellRoutine(bot, "Wolf", "greenguardeast", "Chocolate Eggshells", 15);
        EggshellRoutine(bot, "Frogzard", "greenguardwest", "Caramel Eggshells", 15);
        EggshellRoutine(bot, "Grenwog", "grenwog", "Chocolate Eggshells", 15);

        bot.Player.Join("yulgar");
        bot.Exit();
    }
コード例 #9
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings = true;
        bot.Options.RestPackets = true;

        string [] monsters =
        {
            "Sneevil", "Sneeviltron"
        };

        double avg = averageHealth(bot);

        bot.Log(avg.ToString());
        combatClassHandler(bot, avg);
        bot.Exit();
    }
コード例 #10
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.Magnetise             = true;
        bot.Options.ExitCombatBeforeQuest = true;

        if (bot.Skills.OverrideSkills == null)
        {
            bot.Skills.StartSkills("Skills/Generic.xml");
        }
        else
        {
            bot.Skills.StartTimer();
        }

        bot.Player.LoadBank();

        bot.Bank.ToInventory("Legion Token");
        bot.Bank.ToInventory("Infernal Caladbolg");

        if (!bot.Inventory.Contains("Infernal Caladbolg"))
        {
            bot.Exit();
        }

        while (!bot.ShouldExit())
        {
            bot.Quests.EnsureAccept(3722);

            bot.Player.Join("fotia");
            bot.Player.HuntForItem("Fotia Elemental", "Betrayer Extinguished", 5, tempItem: true);
            bot.Player.Jump("Enter", "Spawn");

            bot.Player.Join("evilwardage");
            bot.Player.HuntForItem("Dreadfiend of Nulgath", "Fiend Felled", 2, tempItem: true);

            bot.Quests.EnsureComplete(3722);
            bot.Player.Pickup("Legion Token");

            bot.Sleep(1200);
        }
    }
コード例 #11
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        bot.Skills.LoadSkills("./Skills/Generic.xml");

        while (!bot.ShouldExit())
        {
            bot.Quests.EnsureAccept(537);
            bot.Player.Join("lycan");
            bot.Player.HuntForItem("Sanguine", "Sanguine Mask", 1, tempItem: true);
            bot.Quests.EnsureComplete(537);
        }

        bot.Exit();
    }
コード例 #12
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;

        for (int i = 1; i <= 4; i++)
        {
            bot.Skills.Add(i, 1f);
        }


        bot.Player.Join("battleunderb");
        string item = "Bone Dust";
        int    q    = 5100;

        bot.Bank.ToInventory(item);

        double hp;

        while (!bot.ShouldExit() || bot.Inventory.Contains(item, quantity: q))
        {
            hp = (double)bot.Player.Health / bot.Player.MaxHealth;
            bot.Log("Current Health: " + hp.ToString());
            if (hp < 0.4)
            {
                bot.Player.Jump("r1", "Left");
                bot.Player.Rest(full: true);
                bot.Player.Jump("Enter", "Right");
            }
            bot.Player.Kill("Skeleton Warrior");
            if (bot.Player.DropExists(item))
            {
                bot.Player.Pickup(item);
            }
        }
        bot.Exit();
    }
コード例 #13
0
    public void ScriptMain(ScriptInterface bot)
    {
        bot.Skills.StartTimer();
        bot.Options.SafeTimings           = true;
        bot.Options.RestPackets           = true;
        bot.Options.PrivateRooms          = true;
        bot.Options.ExitCombatBeforeQuest = true;
        bot.Options.InfiniteRange         = true;

        for (int i = 1; i <= 4; i++)
        {
            bot.Skills.Add(i, 1f);
        }

        bot.Player.Join("kornconcert");

        string [] tier2 = { "Bronze Arena Coin", "Silver Arena Coin",
                            "Gold Arena Coin",   "Platinum Arena Coin" };

        while (!bot.ShouldExit() || (
                   bot.Inventory.GetQuantity("Dark Metal Ore") < 200 &&
                   bot.Inventory.GetQuantity("Rock Token") < 200 &&
                   bot.Inventory.GetQuantity("Metal Badge") < 200))
        {
            // Hunt for 200 Dark Metal Ores
            if (bot.Inventory.GetQuantity("Dark Metal Ore") < 200)
            {
                bot.Player.HuntForItem("Fetid Beast|Eternal Mosher|Megadread|Toxic Beast", "Dark Metal Ore", 200, false, false);
                bot.Player.Pickup(tier2);
            }

            // Perform this routine while the user does not have 200 Rock Tokens
            while (bot.Inventory.GetQuantity("Rock Token") < 200)
            {
                // Hunt for (60, 60) merge materials => 20 Rock Tokens
                while (bot.Inventory.GetQuantity("Platinum Arena Coin") < 60)
                {
                    bot.Player.Join("kornthrash");
                    bot.Player.Kill("*");
                    bot.Player.Pickup("Platinum Arena Coin");
                    bot.Sleep(1200);
                }

                bot.Player.Join("korntoxic");
                while (bot.Inventory.GetQuantity("Gold Arena Coin") < 60)
                {
                    bot.Player.Kill("*");
                    bot.Player.Pickup("Gold Arena Coin");
                }

                // Leave battle
                bot.Player.Jump("Enter", "Spawn");
                bot.Shops.Load(1749);

                // Perform this routine while the user has enough materials to buy up to 200 Rock Tokens
                while (bot.Inventory.GetQuantity("Platinum Arena Coin") > 3 &&
                       bot.Inventory.GetQuantity("Gold Arena Coin") > 3 &&
                       bot.Inventory.GetQuantity("Rock Token") < 200)
                {
                    bot.Shops.BuyItem("Rock Token");
                    bot.Sleep(1200);
                }
            }

            // Perform this routine while the user does not have 200 Meta Badges
            while (bot.Inventory.GetQuantity("Metal Badge") < 200)
            {
                // Hunt for (60, 60) merge materials => 20 Metal Badges
                bot.Player.HuntForItems("Megadead|Giant Treasure Chest|Eternal Rocker|Toxic Beast",
                                        new string [] { "Silver Arena Coin", "Bronze Arena Coin" }, new int [] { 60, 60 }, false, true);

                // Leave battle
                bot.Player.Jump("Enter", "Spawn");
                bot.Shops.Load(1749);

                // Perform this routine while the user has enough materials to buy up to 200 Metal Badges
                while (bot.Inventory.GetQuantity("Silver Arena Coin") > 3 &&
                       bot.Inventory.GetQuantity("Bronze Arena Coin") > 3 &&
                       bot.Inventory.GetQuantity("Metal Badge") < 200)
                {
                    bot.Shops.BuyItem("Metal Badge");
                    bot.Sleep(1200);
                } // while
            }     // while
        }         //while
        bot.Exit();
    }             // ScriptMain