Exemplo n.º 1
0
        protected override async Task <bool> Main()
        {
            await CommonTasks.HandleLoading();

            if (FateActive)
            {
                if (NeoProfileManager.CurrentGrindArea == null && ThisFate.Within2D(Core.Player.Location) && await CreateGrindArea())
                {
                    return(true);
                }

                if (NeoProfileManager.CurrentGrindArea != null)
                {
                    if (await MoveAndStop(ThisFate.Location, ThisFate.Radius / 5f, $"Moving to {ThisFate.Name}.", true))
                    {
                        return(true);
                    }

                    if (ThisFate.Within2D(Core.Player.Location) && !Core.Player.IsLevelSynced && ThisFate.MaxLevel < Core.Player.ClassLevel)
                    {
                        RemoteWindows.ToDoList.LevelSync();
                        await Coroutine.Wait(1000, () => Core.Player.IsLevelSynced);
                    }

                    return(await CommonTasks.ExecuteCoroutine(new HookExecutor("HotspotPoi")));
                }
            }
            else if (await MoveAndStop(Destination, Distance * Distance, "Moving to Hotspot", true, (ushort)MapId, MountDistance))
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        protected override async Task <bool> Main()
        {
            await CommonTasks.HandleLoading();

            if (MapId > 0 && WorldManager.ZoneId != MapId && await CreateTeleportBehavior(0, (ushort)MapId))
            {
                return(true);
            }
            return(await CommonTasks.ExecuteCoroutine(new HookExecutor("HotspotPoi")));
        }
Exemplo n.º 3
0
 private static Task HookExecutor()
 {
     return(CommonTasks.ExecuteCoroutine(new HookExecutor("HotspotPoi", null, new HookExecutor("SetCombatPoi"))));
 }