Exemple #1
0
 public static void HandleLoadTopo(S_LOAD_TOPO x)
 {
     SessionManager.LoadingScreen = true;
     SessionManager.Encounter     = false;
     GroupWindowViewModel.Instance.ClearAllAbnormalities();
     GroupWindowViewModel.Instance.SetAggro(0);
     BuffBarWindowViewModel.Instance.Player.ClearAbnormalities();
     BossGageWindowViewModel.Instance.CurrentHHphase = HarrowholdPhase.None;
     BossGageWindowViewModel.Instance.ClearGuildTowers();
 }
Exemple #2
0
 internal void S_LOAD_TOPO(S_LOAD_TOPO message)
 {
     HudManager.Instance.CurrentBosses.DisposeAll();
     _lastBosses          = new Dictionary <EntityId, long>();
     _lastBossMeterUser   = null;
     _lastBossHpMeterUser = 0;
     foreach (var e in BasicTeraData.Instance.EventsData.MissingAbnormalities?.Keys ?? new Dictionary <Event, List <Action> >().Keys)
     {
         e.NextChecks = new Dictionary <EntityId, DateTime>();
     }
 }
Exemple #3
0
 internal void Resume(S_LOAD_TOPO sLoadTopo)
 {
     if (BasicTeraData.Instance.WindowData.UserPaused)
     {
         return;
     }
     PacketProcessor.Instance.PacketProcessing.Update();
     PacketProcessor.Instance.RaisePause(false);
     PacketProcessor.Instance.RaiseMapChanged();
     PacketProcessor.Instance.PacketProcessing.Process(sLoadTopo);
 }
 public static void HandleLoadTopo(S_LOAD_TOPO x)
 {
     SessionManager.LoadingScreen = true;
     SessionManager.Encounter = false;
     GroupWindowViewModel.Instance.ClearAllAbnormalities();
     GroupWindowViewModel.Instance.SetAggro(0);
     SessionManager.CurrentPlayer.ClearAbnormalities();
     BossGageWindowViewModel.Instance.CurrentHHphase = HarrowholdPhase.None;
     BossGageWindowViewModel.Instance.ClearGuildTowers();
     SessionManager.CivilUnrestZone = x.Zone == 152;
     if (Settings.SettingsHolder.CivilUnrestWindowSettings.Enabled) WindowManager.CivilUnrestWindow.VM.NotifyTeleported();
 }
Exemple #5
0
 internal void S_LOAD_TOPO(S_LOAD_TOPO message)
 {
     HudManager.Instance.CurrentBosses.DisposeAll();
     PacketProcessor.Instance.RaiseMapChanged();
     RichPresence.Instance.S_LOAD_TOPO(message);
     _lastBosses          = new Dictionary <EntityId, long>();
     _lastBossMeterUser   = null;
     _lastBossHpMeterUser = 0;
     if (BasicTeraData.Instance.EventsData.MissingAbnormalities?.Keys != null)
     {
         foreach (var e in BasicTeraData.Instance.EventsData.MissingAbnormalities.Keys)
         {
             e.NextChecks = new Dictionary <EntityId, DateTime>();
         }
     }
 }
Exemple #6
0
 private void OnLoadTopo(S_LOAD_TOPO m)
 {
     CurrentHHphase = HarrowholdPhase.None;
     ClearGuildTowers();
     Dispatcher.Invoke(() => PendingAbnormalities.Clear());
 }
 internal void Resume(S_LOAD_TOPO sLoadTopo)
 {
     PacketProcessor.Instance.PacketProcessing.Update();
     PacketProcessor.Instance.RaisePause(false);
     PacketProcessor.Instance.PacketProcessing.Process(sLoadTopo);
 }
Exemple #8
0
 internal void Resume(S_LOAD_TOPO sLoadTopo)
 {
     NetworkController.Instance.PacketProcessing.Update();
     NetworkController.Instance.RaisePause(false);
     NetworkController.Instance.PacketProcessing.Process(sLoadTopo);
 }
Exemple #9
0
 public void S_LOAD_TOPO(S_LOAD_TOPO message)
 {
     Initialize();
     UpdatePresence();
 }
 public static void HandleLoadTopo(S_LOAD_TOPO x)
 {
     SessionManager.LoadingScreen = true;
 }
        public override void Process()
        {
            S_SELECT_USER sSelectUser = new S_SELECT_USER();

            sSelectUser.Send(this.Connection);

            S_UPDATE_CONTENTS_ON_OFF sUpdateContentsOnOff1 = new S_UPDATE_CONTENTS_ON_OFF(2);

            sUpdateContentsOnOff1.Send(this.Connection);

            S_UPDATE_CONTENTS_ON_OFF sUpdateContentsOnOff2 = new S_UPDATE_CONTENTS_ON_OFF(3);

            sUpdateContentsOnOff2.Send(this.Connection);

            S_UPDATE_CONTENTS_ON_OFF sUpdateContentsOnOff3 = new S_UPDATE_CONTENTS_ON_OFF(4);

            sUpdateContentsOnOff3.Send(this.Connection);

            S_UPDATE_CONTENTS_ON_OFF sUpdateContentsOnOff4 = new S_UPDATE_CONTENTS_ON_OFF(8);

            sUpdateContentsOnOff4.Send(this.Connection);

            S_UPDATE_CONTENTS_ON_OFF sUpdateContentsOnOff5 = new S_UPDATE_CONTENTS_ON_OFF(9);

            sUpdateContentsOnOff5.Send(this.Connection);

            S_BROCAST_GUILD_FLAG sBrocastGuildFlag = new S_BROCAST_GUILD_FLAG();

            sBrocastGuildFlag.Send(this.Connection);

            if (this.Connection.player.GM == 1)
            {
                S_QA_SET_ADMIN_LEVEL sQaSetAdminLevel = new S_QA_SET_ADMIN_LEVEL();
                sQaSetAdminLevel.Send(this.Connection);
            }

            S_LOGIN sLogin = new S_LOGIN(this.Connection.player);

            sLogin.Send(this.Connection);

            S_SHOW_NPC_TO_MAP sShowNpcToMap = new S_SHOW_NPC_TO_MAP();

            sShowNpcToMap.Send(this.Connection);

            S_PLAYER_STAT_UPDATE sPlayerStatUpdate = new S_PLAYER_STAT_UPDATE(this.Connection.player);

            sPlayerStatUpdate.Send(this.Connection);

            S_INVEN sInven = new S_INVEN(this.Connection.player);

            sInven.Send(this.Connection);

            S_AVAILABLE_SOCIAL_LIST sAvailableSocialList = new S_AVAILABLE_SOCIAL_LIST();

            sAvailableSocialList.Send(this.Connection);

            S_CLEAR_QUEST_INFO sClearQuestInfo = new S_CLEAR_QUEST_INFO();

            sClearQuestInfo.Send(this.Connection);

            S_DAILY_QUEST_COMPLETE_COUNT sDailyQuestCompleteCount = new S_DAILY_QUEST_COMPLETE_COUNT();

            sDailyQuestCompleteCount.Send(this.Connection);

            S_COMPLETED_MISSION_INFO sCompletedMissionInfo = new S_COMPLETED_MISSION_INFO();

            sCompletedMissionInfo.Send(this.Connection);

            S_ARTISAN_SKILL_LIST sArtisanSkillList = new S_ARTISAN_SKILL_LIST();

            sArtisanSkillList.Send(this.Connection);

            S_ARTISAN_RECIPE_LIST sArtisanRecipeList = new S_ARTISAN_RECIPE_LIST();

            sArtisanRecipeList.Send(this.Connection);

            S_PET_INCUBATOR_INFO_CHANGE sPetIncubatorInfoChange = new S_PET_INCUBATOR_INFO_CHANGE();

            sPetIncubatorInfoChange.Send(this.Connection);

            S_MOVE_DISTANCE_DELTA sMoveDistanceDelta = new S_MOVE_DISTANCE_DELTA();

            sMoveDistanceDelta.Send(this.Connection);

            S_MY_DESCRIPTION sMyDescription = new S_MY_DESCRIPTION();

            sMyDescription.Send(this.Connection);

            S_F2P_PremiumUser_Permission sF2PPremiumUserPermission = new S_F2P_PremiumUser_Permission();

            sF2PPremiumUserPermission.Send(this.Connection);

            S_HUDDLE_ADDING sHuddleAdding = new S_HUDDLE_ADDING();

            sHuddleAdding.Send(this.Connection);

            S_MASSTIGE_STATUS sMasstigeStatus = new S_MASSTIGE_STATUS();

            sMasstigeStatus.Send(this.Connection);

            S_AVAILABLE_EVENT_MATCHING_LIST sAvailableEventMatchingList = new S_AVAILABLE_EVENT_MATCHING_LIST();

            sAvailableEventMatchingList.Send(this.Connection);

            S_CURRENT_ELECTION_STATE sCurrentElectionState = new S_CURRENT_ELECTION_STATE();

            sCurrentElectionState.Send(this.Connection);

            S_USER_ITEM_EQUIP_CHANGER sUserItemEquipChanger = new S_USER_ITEM_EQUIP_CHANGER(this.Connection.player.playerId);

            sUserItemEquipChanger.Send(this.Connection);

            S_FESTIVAL_LIST sFestivalList = new S_FESTIVAL_LIST();

            sFestivalList.Send(this.Connection);

            S_LOAD_TOPO sLoadTopo = new S_LOAD_TOPO(this.Connection.player);

            sLoadTopo.Send(this.Connection);

            S_LOAD_HINT sLoadHint = new S_LOAD_HINT();

            sLoadHint.Send(this.Connection);

            S_ACCOUNT_BENEFIT_LIST sAccountBenefitList = new S_ACCOUNT_BENEFIT_LIST(this.Connection.Account);

            sAccountBenefitList.Send(this.Connection);

            S_SEND_USER_PLAY_TIME sSendUserPlayTime = new S_SEND_USER_PLAY_TIME();

            sSendUserPlayTime.Send(this.Connection);

            S_UPDATE_NPCGUILD sUpdateNpcguild = new S_UPDATE_NPCGUILD(this.Connection.player);

            sUpdateNpcguild.Send(this.Connection);

            S_COMPLETED_MISSION_INFO sCompletedMissionInfo2 = new S_COMPLETED_MISSION_INFO();

            sCompletedMissionInfo2.Send(this.Connection);

            S_FATIGABILITY_POINT sFatigabilityPoint = new S_FATIGABILITY_POINT();

            sFatigabilityPoint.Send(this.Connection);

            S_LOAD_EP_INFO sLoadEpInfo = new S_LOAD_EP_INFO();

            sLoadEpInfo.Send(this.Connection);
        }
Exemple #12
0
 public void Update(S_LOAD_TOPO m)
 {
     if (CompassUser == null) return;
     CompassUser.ZoneId = m.AreaId;
 }
Exemple #13
0
 public Task FinishLoadingWorld(S_LOAD_TOPO packet)
 {
     Console.WriteLine("Entering world.");
     return(Client.Send(new C_LOAD_TOPO_FIN()));
 }