Esempio n. 1
0
        private void updateResetTimestamp(Player player)
        {
            DateTime time     = TimeUtil.UnixTimestampToDateTime(Service.Binder.ServerTime.GameTime);
            DateTime dateTime = new DateTime(time.Year, time.Month, time.Day);

            player.LastDailyAdCountResetTimestamp = TimeUtil.DateTimeToUnixTimestamp(dateTime);
        }
Esempio n. 2
0
        static ConfigPromotionEvents()
        {
            Event       event2 = new Event();
            EventHeader header = new EventHeader();

            header.Type = PromotionEventHeaderType.HeroAvatar;
            Dictionary <ItemType, string> dictionary = new Dictionary <ItemType, string>();

            dictionary.Add(ItemType.Weapon, "Weapon034");
            dictionary.Add(ItemType.Armor, "Armor031");
            dictionary.Add(ItemType.Cloak, "Cloak032");
            header.Items  = dictionary;
            event2.Header = header;
            EventInfo info = new EventInfo();

            info.Title    = "Halloween";
            info.Subtitle = "Trick or treating in the dungeon";
            info.Flavor   = "This is Halloween! Time to embark on an exclusive chest quest and smash through a pumpkin ridden Dungeon!";
            List <EventInfo.DescriptionRow> list = new List <EventInfo.DescriptionRow>();

            EventInfo.DescriptionRow item = new EventInfo.DescriptionRow();
            item.Icon = new SpriteAtlasEntry("Menu", "icon_bounty004_floater");
            item.Text = "1st description row";
            list.Add(item);
            item      = new EventInfo.DescriptionRow();
            item.Icon = new SpriteAtlasEntry("DungeonHud", "icon_coin_floater");
            item.Text = "2nd description row";
            list.Add(item);
            item      = new EventInfo.DescriptionRow();
            item.Icon = new SpriteAtlasEntry("Menu", "icon_logo_bosshunt_floater");
            item.Text = "3rd description row";
            list.Add(item);
            info.DescriptionRows = list;
            event2.Info          = info;
            EventMissions missions = new EventMissions();

            missions.BigPrizeDescription     = "Complete all the Event bounties to unlock the horrors inside the Halloween chest!";
            missions.BigPrizeRewardChestType = ChestType.EventHalloween;
            missions.BigPrizeSprite          = new SpriteAtlasEntry("Menu", "floater_chest_halloween");
            List <EventMissionInstance> list2    = new List <EventMissionInstance>();
            EventMissionInstance        instance = new EventMissionInstance();

            instance.MissionId      = "DestroyDungeonBoxesUsingWhirlwind";
            instance.Title          = "Pumpkin Whirl!";
            instance.Description    = "Destroy $Amount$ pumpkins using Whirl";
            instance.Requirement    = 3.0;
            instance.RewardDiamonds = 5.0;
            list2.Add(instance);
            instance                      = new EventMissionInstance();
            instance.MissionId            = "DestroyDungeonBoxesUsingLeap";
            instance.Title                = "Pumpkin Leap!";
            instance.Description          = "Destroy $Amount$ pumpkins using Leap";
            instance.Requirement          = 3.0;
            instance.StartTimestampOffset = 60L;
            instance.RewardDiamonds       = 10.0;
            list2.Add(instance);
            instance                      = new EventMissionInstance();
            instance.MissionId            = "DestroyDungeonBoxesUsingSlam";
            instance.Title                = "Pumpkin Slam!";
            instance.Description          = "Destroy $Amount$ pumpkins using Slam";
            instance.Requirement          = 3.0;
            instance.StartTimestampOffset = 120L;
            instance.RewardDiamonds       = 15.0;
            list2.Add(instance);
            missions.Instances    = list2;
            event2.Missions       = missions;
            event2.StartTimestamp = TimeUtil.DateTimeToUnixTimestamp(DateTime.UtcNow);
            event2.EndTimestamp   = TimeUtil.DateTimeToUnixTimestamp(DateTime.UtcNow) + 0x127500L;
            DEBUG_EVENT           = event2;
        }
Esempio n. 3
0
 protected void Awake()
 {
     this.m_systemClockLastFrame = TimeUtil.DateTimeToUnixTimestamp(DateTime.UtcNow);
 }