コード例 #1
0
        private static void GetCastInstant()
        {
            //var petcurent =BattlePet.PetJournal.GetPetInfoByPetID(BattlePet.PetJournal.GetActivePetIDBySlot(BattlePet.PetJournal.PetSlotAvailable));
            //if (petcurent.EntryId == 71488)
            //{
            //    Logging.Write("Играю Деревом");
            //    Logic.Logic.Npc71488();
            //    return;
            //}
            //if (petcurent.EntryId == 68659)
            //{
            //    Logging.Write("Играю анубисата");
            //    Logic.Logic.Npc68659();
            //    return;
            //}
            var best = BattlePet.Skills.GetBestAbility();

            // Logging.Write(CanCast(1).ToString());
            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability1) && best == PetBattleEasy.Oldabily)
            {
                PetBattleEasy.Oldabily = BattlePet.Skills.PetAbilityIndex.Ability1;
                GoldenPet.Cast(PetBattleEasy.Oldabily);
                return;
            }
            if (best != PetBattleEasy.Oldabily && GoldenPet.CanCast(best))
            {
                PetBattleEasy.Oldabily = best;

                GoldenPet.Cast(best);
            }
            //await Task.Delay(1000);

            //Lua.FrameScript_Execute("C_PetBattles.SkipTurn()");
        }
コード例 #2
0
        private static void GetOnly1()
        {
            Logging.Write("Мой ход ");

            GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
        }