Ejemplo n.º 1
0
        public override void DoWork()
        {
            FlyingEngine.Navigator.Stop();
            if (ApproachPosFlying.Approach(_npc.Location, 12))
            {
                MoveHelper.MoveToLoc(_npc.Location, 3);
                //VendorManager.DoSell(_npc);

                while (!ObjectManager.MyPlayer.Target.Name.Equals(_npc.Name))
                {
                    // 目标选择NPC
                    KeyHelper.SendLuaOverChat("/target " + _npc.Name);
                    Thread.Sleep(500);
                }

                _npc.Interact();
                Thread.Sleep(500);

                // 卖东西
                SpyFrame.ExecSimpleLua("/script SellJunk:Sell()");
                Thread.Sleep(500);

                // 修理
                SpyFrame.ExecSimpleLua("/click MerchantRepairAllButton");
            }
            FlyingBlackList.Blacklist(_npc, 200, true);
            Logging.Write("[Vendor]Vendor done");
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Dictionary <string, int> hhh = SpyFrame.lua_GetBagInfo();

            dataGridView1.DataSource = hhh.ToList();
            //dataGridView1.bin
            dataGridView1.Refresh();
        }
Ejemplo n.º 3
0
        public override void DoWork()
        {
            Logging.Write("找到一个邮箱,整点什么。。。。。");
            FlyingEngine.Navigator.Stop();
            if (ApproachPosFlying.Approach(_mailbox.Location, 12))
            {
                MoveHelper.MoveToLoc(_mailbox.Location, 5);
                //MailManager.DoMail();

                // 改成使用插件邮寄
                if (MailManager.TargetMailBox())
                {
                    if (SpyFrame.initme())
                    {
                        DBLogger logger = new DBLogger("挖矿时的邮寄");
                        SpyTradeSkill.SendMain(logger, true);
                    }
                }
            }
            ToTown.ToTownDoMail = true;
            _mailTimeout.Reset();
        }