コード例 #1
0
        public void repair()
        {
            if (needsRepair() || getInventoryFreeSpace() <= 6)
            {
                Thread.Sleep(1000);
                GoTown();
                walk(2966, 2825, true);
                walk(2941.5f, 2850.7f, true);
                interact("Salvage", true);
                Thread.Sleep(700);
                SnagIt.SalvageItems();
                closeInventory();
                walk(2940, 2813, true);
                walk(2895, 2785, true);
                // 0002B8E3: 00000001(00000000) # {c:ffffffff}Tashun the Miner{/c} = 0x2F424FF
                interact(Unit.Get().First(u => (uint)u.ActorId == 0x2B8E3), true);
                Thread.Sleep(500);
                repairAll();
                SnagIt.SellItems();

                walk(2933, 2789, true);
                walk(2969, 2791, true);
                // 0001FD60: 00000002(00000000) # Stash = 0x2DAC507
                interact("Stash", true);
                // stash all rares
                SnagIt.StashItems();
                walk(2977, 2799, true);
                TakePortal();
            }
        }
コード例 #2
0
        private static void TownRun()
        {
            if (!NeedsRepair() && !IsInventoryStuffed())
            {
                return;
            }

            GoTown();

            SnagIt.IdentifyAll();

            MoveReallyFast(2966, 2825);
            MoveReallyFast(2941.5f, 2850.7f);
            Interact("Salvage", false);
            SnagIt.SalvageItems();

            MoveReallyFast(2940, 2813);
            MoveReallyFast(2895, 2782);
            Interact("Tashun the Miner", false);
            RepairAll();
            SnagIt.SellItems();

            MoveReallyFast(2933, 2789);
            MoveReallyFast(2969, 2791);
            Interact("Stash", false);
            SnagIt.StashItems();


            MoveReallyFast(2977, 2799);
            TakePortal();
        }