Esempio n. 1
0
        public AccountSettings Clone()
        {
            AccountSettings tmp = new AccountSettings();

            tmp.AttackEnemyBetweenRange = this.AttackEnemyBetweenRange;
            tmp.AttackSuggestedEnemy    = this.AttackSuggestedEnemy;
            tmp.BuyBeer                 = this.BuyBeer;
            tmp.DonateGold              = this.DonateGold;
            tmp.FactorToDonate          = this.FactorToDonate;
            tmp.guildVisitInterval      = this.guildVisitInterval;
            tmp.IgnoreGuilds            = this.IgnoreGuilds;
            tmp.IgnorePlayers           = this.IgnorePlayers;
            tmp.LevelDifference         = this.LevelDifference;
            tmp.LowerRangeLimit         = this.LowerRangeLimit;
            tmp.MaxBeerToBuy            = this.MaxBeerToBuy;
            tmp.maxShortTime            = this.maxShortTime;
            tmp.maxLongTime             = this.maxLongTime;
            tmp.MaxTriesToFindEnemy     = this.MaxTriesToFindEnemy;
            tmp.MinSendRequestInterval  = this.MinSendRequestInterval;
            tmp.minShortTime            = this.minShortTime;
            tmp.minLongTime             = this.minLongTime;
            tmp.PasswordHash            = this.PasswordHash;
            tmp.PerformArena            = this.PerformArena;
            tmp.PerformBuyStats         = this.PerformBuyStats;
            tmp.PerformDungeons         = this.PerformDungeons;
            tmp.PerformGuild            = this.PerformGuild;
            tmp.PerformQuesten          = this.PerformQuesten;
            tmp.PerformTownwatch        = this.PerformTownwatch;
            tmp.PerformToilet           = this.PerformToilet;
            tmp.QuestMode               = this.QuestMode;
            tmp.SellToiletItemIfNotEpic = this.SellToiletItemIfNotEpic;
            tmp.Server         = this.Server;
            tmp.StatAusFactor  = this.StatAusFactor;
            tmp.StatDexFactor  = this.StatDexFactor;
            tmp.StatIntFactor  = this.StatIntFactor;
            tmp.StatLuckFactor = this.StatLuckFactor;
            tmp.StatStrFactor  = this.StatStrFactor;
            tmp.TownWatchMaxHourForShortWork = this.TownWatchMaxHourForShortWork;
            tmp.TownWatchMinHourForShortWork = this.TownWatchMinHourForShortWork;
            tmp.UpperRangeLimit                = this.UpperRangeLimit;
            tmp.Username                       = this.Username;
            tmp.SaveMoney                      = this.SaveMoney;
            tmp.SaveMoneyFactor                = this.SaveMoneyFactor;
            tmp.MountToBuy                     = this.MountToBuy;
            tmp.BuyMount                       = this.BuyMount;
            tmp.BuyItemsInMagicShop            = this.BuyItemsInMagicShop;
            tmp.BuyBuffs                       = this.BuyBuffs;
            tmp.UseAlternativeIventoryChecking = this.UseAlternativeIventoryChecking;
            tmp.UseMushroomsForBuying          = this.UseMushroomsForBuying;
            tmp.SendErrorMail                  = this.SendErrorMail;
            tmp.MailCryptPasswort              = this.MailCryptPasswort;
            tmp.MailFrom                       = this.MailFrom;
            tmp.MailPort                       = this.MailPort;
            tmp.MailSmtp                       = this.MailSmtp;
            tmp.MailTo         = this.MailTo;
            tmp.MailUserNamer  = this.MailUserNamer;
            tmp.GetChatHistory = this.GetChatHistory;
            tmp.IgnoreErrors   = this.IgnoreErrors;

            Assert.Asserts.AreNotSame(tmp, this, "Mist");

            return(tmp);
        }
Esempio n. 2
0
        public Account(AccountSettings settings)
        {
            Settings = settings;

            Class = ClassTypes.Mage;

            ALU_Seconds    = 100 * 60;
            QuestIsStarted = false;
            QuestEndTime   = DateTime.Now;

            MirrorIsCompleted = false;

            ToiletIsAvailable       = true;
            ToiletEndTime           = DateTime.Now;
            CurrentToiletLevel      = 0;
            CurrentToiletPoints     = 0;
            ToiletPointsForNewLevel = 0;

            TownWatchIsStarted = false;
            TownWatchEndTime   = DateTime.Now;
            DungeonEndTime     = DateTime.Now;
            ArenaEndTime       = DateTime.Now;
            NextGuildVisitTime = DateTime.Now;

            BaseStr   = 0;
            BaseDex   = 0;
            BaseInt   = 0;
            BaseAus   = 0;
            BaseLuck  = 0;
            AddonStr  = 0;
            AddonDex  = 0;
            AddonInt  = 0;
            AddonAus  = 0;
            AddonLuck = 0;

            Silver         = 0;
            Mushroom       = 0;
            Level          = 0;
            Honor          = 0;
            Rang           = 0;
            BackpackItems  = new List <Item>();
            InventoryItems = new List <Item>();

            Guild                     = new Guild();
            HasAGuild                 = true;
            HasJoinAttack             = false;
            HasJoinDefence            = false;
            ChatHistoryIndex          = 0;
            LastChatHistoryUpdateTime = DateTime.Now;

            LastDonateTime = DateTime.Now;
            LastActionTime = DateTime.Now;

            Mount             = MountTypes.None;
            MountDurationTime = DateTime.Now;

            SinglePortalCanBeVisit = true;

            LastMagicShopBuyTime  = DateTime.Now.AddDays(-1);
            LastWeaponShopBuyTime = DateTime.Now.AddDays(-1);
        }