Пример #1
0
        public static void MoveToDurance3()
        {
            PC me = new PC();

            AreaMap map = new AreaMap(me.Area);

            map.Initialize();

            Pather p = me.GetSkillLevel(SkillType.Teleport) > 0 ? new Pather(map, new TeleportReducer(25)) : p = new Pather(map, new WalkingReducer(7, 13));

            p.FindPathToWarp(me.Position, new int[] { 67, 68 }, me.Area);

            Pathing.Mover m = new Pathing.Mover(p);
            m.OnMoverCallBack += new botNET.Pathing.Mover.MoverCallBackHandler(m_OnMoverCallBack);
            m.Move(me.GetSkillLevel(SkillType.Teleport) > 0 ? Reduction.TeleportReduction : Reduction.WalkingReduction);

            Warp warp = new Warp(p.LastPresetUsed);

            Thread.Sleep(200);

            me.Interact(warp);

            Thread.Sleep(200);

            while (me.Area != (AreaLevel)102)
            {
                me.ClickMap(ClickType.LeftDown, false, warp);
                Thread.Sleep(100);
                me.ClickMap(ClickType.LeftUp, false, warp);
                Thread.Sleep(500);
            }

            return;
        }