예제 #1
0
    // Token: 0x06001826 RID: 6182 RVA: 0x0028C15C File Offset: 0x0028A35C
    public void RecvShieldLogList(MessagePacket MP)
    {
        byte b = MP.ReadByte(-1);

        for (int i = 0; i < 10; i++)
        {
            this.m_ShieldLogData[i].Clear();
            if (i < (int)b)
            {
                this.m_ShieldLogData[i].ItemID    = MP.ReadUShort(-1);
                this.m_ShieldLogData[i].BeginTime = MP.ReadLong(-1);
                this.m_ShieldLogData[i].EndTime   = MP.ReadLong(-1);
                this.m_ShieldLogData[i].CheckActive();
                this.m_ShieldLogData[i].SetEmpty(false);
            }
            else
            {
                this.m_ShieldLogData[i].ItemID    = 0;
                this.m_ShieldLogData[i].BeginTime = 0L;
                this.m_ShieldLogData[i].EndTime   = 0L;
                this.m_ShieldLogData[i].SetEmpty(true);
            }
        }
        if (b > 0)
        {
            this.m_DataState = ShieldLogManager.eDataState.Ready;
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_ShieldLog, (int)this.m_DataState, 0);
        }
        else
        {
            this.m_DataState = ShieldLogManager.eDataState.Empty;
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_ShieldLog, (int)this.m_DataState, 0);
        }
    }
예제 #2
0
    // Token: 0x0600144D RID: 5197 RVA: 0x00239564 File Offset: 0x00237764
    public void UpdateFBMissionProGress(MessagePacket MP)
    {
        byte b = MP.ReadByte(-1);

        if (this.CurMissionProcess.UserSerialNo == b)
        {
            byte b2 = MP.ReadByte(-1);
            if (this.CurMissionProcess.NodeIndex != b2)
            {
                this.CurMissionProcess.bShowHUD = 0;
                this.ClearHUDArray();
            }
            this.CurMissionProcess.NodeIndex               = b2;
            this.CurMissionProcess.MissionTime.BeginTime   = MP.ReadLong(-1);
            this.CurMissionProcess.MissionTime.RequireTime = MP.ReadUInt(-1);
            if (this.CurMissionProcess.NodeIndex > 1)
            {
                AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_I);
            }
            if (this.CurMissionProcess.NodeIndex > 2)
            {
                AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_II);
            }
            if (this.CurMissionProcess.NodeIndex > 3)
            {
                AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_III);
            }
            if (this.CurMissionProcess.NodeIndex > 4)
            {
                AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_IV);
            }
            if (this.CurMissionProcess.NodeIndex > 5)
            {
                AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_V);
            }
            if (this.CurMissionProcess.NodeIndex > 10)
            {
                AFAdvanceManager.Instance.TriggerAfAdvEvent(EAppsFlayerEvent.COMPLETE_VOYAGE_X);
            }
        }
        else
        {
            int friendIndex = this.GetFriendIndex(b, byte.MaxValue);
            if (friendIndex < 0)
            {
                return;
            }
            this.UpdateFriendSerialNo             = byte.MaxValue;
            this.FBFriends[friendIndex].NodeIndex = MP.ReadByte(-1);
            if (this.FBFriends[friendIndex].NodeIndex == 0)
            {
                this.FBFriends[friendIndex].NodeIndex = 1;
            }
            this.FBFriends[friendIndex].MissionTime.BeginTime   = MP.ReadLong(-1);
            this.FBFriends[friendIndex].MissionTime.RequireTime = MP.ReadUInt(-1);
            this.NeedSort = 1;
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_MissionFB, 0, 0);
        }
    }
예제 #3
0
 // Token: 0x06001099 RID: 4249 RVA: 0x001D7624 File Offset: 0x001D5824
 public void RecvArena_Info(MessagePacket MP)
 {
     this.m_ArenaPlace = MP.ReadUInt(-1);
     Array.Clear(this.m_ArenaDefHero, 0, this.m_ArenaDefHero.Length);
     Array.Clear(this.m_ArenaTarget, 0, this.m_ArenaTarget.Length);
     for (int i = 0; i < 5; i++)
     {
         this.m_ArenaDefHero[i] = MP.ReadUShort(-1);
     }
     this.m_ArenaTodayChallenge      = MP.ReadByte(-1);
     this.m_ArenaTodayResetChallenge = MP.ReadByte(-1);
     this.m_ArenaLastChallengeTime   = MP.ReadLong(-1);
     this.m_ArenaCrystalPrize        = MP.ReadUInt(-1);
     for (int j = 0; j < 3; j++)
     {
         this.m_ArenaTarget[j].Head           = MP.ReadUShort(-1);
         this.m_ArenaTarget[j].Name           = MP.ReadString(13, -1);
         this.m_ArenaTarget[j].AllianceTagTag = MP.ReadString(3, -1);
         this.m_ArenaTarget[j].Place          = MP.ReadUInt(-1);
         if (this.m_ArenaTarget[j].HeroData == null)
         {
             this.m_ArenaTarget[j].HeroData = new ArenaTargetHeroDataType[5];
         }
         for (int k = 0; k < 5; k++)
         {
             this.m_ArenaTarget[j].HeroData[k].ID    = MP.ReadUShort(-1);
             this.m_ArenaTarget[j].HeroData[k].Level = MP.ReadByte(-1);
             this.m_ArenaTarget[j].HeroData[k].Rank  = MP.ReadByte(-1);
             this.m_ArenaTarget[j].HeroData[k].Star  = MP.ReadByte(-1);
             this.m_ArenaTarget[j].HeroData[k].Equip = MP.ReadByte(-1);
         }
     }
     this.m_ArenaNewReportNum         = MP.ReadByte(-1);
     this.m_NowArenaTopicID[0]        = MP.ReadByte(-1);
     this.m_NowArenaTopicID[1]        = MP.ReadByte(-1);
     this.m_NowArenaTopicEndTime      = MP.ReadLong(-1);
     this.m_NowTopicEffect[0].Effect  = MP.ReadUShort(-1);
     this.m_NowTopicEffect[0].Value   = MP.ReadUShort(-1);
     this.m_NowTopicEffect[1].Effect  = MP.ReadUShort(-1);
     this.m_NowTopicEffect[1].Value   = MP.ReadUShort(-1);
     this.m_NextArenaTopicID[0]       = MP.ReadByte(-1);
     this.m_NextArenaTopicID[1]       = MP.ReadByte(-1);
     this.m_NextArenaTopicBeginTime   = MP.ReadLong(-1);
     this.m_NextTopicEffect[0].Effect = MP.ReadUShort(-1);
     this.m_NextTopicEffect[0].Value  = MP.ReadUShort(-1);
     this.m_NextTopicEffect[1].Effect = MP.ReadUShort(-1);
     this.m_NextTopicEffect[1].Value  = MP.ReadUShort(-1);
     this.m_ArenaHistoryPlace         = MP.ReadUInt(-1);
     this.m_ArenaExtraChallenge       = MP.ReadByte(-1);
     GUIManager.Instance.BuildingData.UpdateBuildState(5, 255);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_Arena, 6, 0);
     DataManager.MissionDataManager.CheckChanged(eMissionKind.Record, 28, this.GetHeroAstrologyNum());
     if (this.m_ArenaHistoryPlace > 0u && this.m_ArenaHistoryPlace < 65535u)
     {
         DataManager.MissionDataManager.CheckChanged(eMissionKind.Record, 29, (ushort)(65535u - this.m_ArenaHistoryPlace));
     }
 }
예제 #4
0
 // Token: 0x060012E2 RID: 4834 RVA: 0x0020EEE0 File Offset: 0x0020D0E0
 public void Recv_MSG_RESP_FEDERAL_HISTORYKINGDATA(MessagePacket MP)
 {
     this.MobiWorldKingBoard.Clear();
     if (MP.ReadByte(-1) == 0)
     {
         byte b = MP.ReadByte(-1);
         this.KingHead           = MP.ReadUShort(-1);
         this.HistoryKingDataNum = MP.ReadByte(-1);
         for (int i = 0; i < (int)this.HistoryKingDataNum; i++)
         {
             HistoryWorldKingDataType historyWorldKingDataType = new HistoryWorldKingDataType();
             historyWorldKingDataType.HomeKingdomID = MP.ReadUShort(-1);
             MP.ReadStringPlus(3, historyWorldKingDataType.AllianceTag, -1);
             MP.ReadStringPlus(13, historyWorldKingDataType.Name, -1);
             historyWorldKingDataType.OccupyTime     = MP.ReadUInt(-1);
             historyWorldKingDataType.TakeOfficeTime = MP.ReadLong(-1);
             this.MobiWorldKingBoard.Add(historyWorldKingDataType);
         }
         GUIManager.Instance.UpdateUI(EGUIWindow.UI_NobilityBoard, 0, 0);
     }
     else
     {
         GUIManager.Instance.UpdateUI(EGUIWindow.UI_NobilityBoard, 0, 2);
     }
 }
예제 #5
0
 // Token: 0x060012E0 RID: 4832 RVA: 0x0020ECA4 File Offset: 0x0020CEA4
 public void Recv_MSG_RESP_WORLDRANKING_LEADERBOARDS_CLIENT(MessagePacket MP)
 {
     this.WorldLeaderBoardTopBoard.SortTime = MP.ReadLong(-1);
     MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.PowerTop.AlliaceTag, -1);
     MP.ReadStringPlus(13, this.WorldLeaderBoardTopBoard.PowerTop.Name, -1);
     this.WorldLeaderBoardTopBoard.PowerTop.Value     = MP.ReadULong(-1);
     this.WorldLeaderBoardTopBoard.PowerTop.KingdomID = MP.ReadUShort(-1);
     this.WorldLeaderBoardTopBoard.PowerTopHead       = MP.ReadUShort(-1);
     MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.KillsTop.AlliaceTag, -1);
     MP.ReadStringPlus(13, this.WorldLeaderBoardTopBoard.KillsTop.Name, -1);
     this.WorldLeaderBoardTopBoard.KillsTop.Value     = MP.ReadULong(-1);
     this.WorldLeaderBoardTopBoard.KillsTop.KingdomID = MP.ReadUShort(-1);
     this.WorldLeaderBoardTopBoard.KillsTopHead       = MP.ReadUShort(-1);
     MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.AlliPowerTop.AlliaceTag, -1);
     MP.ReadStringPlus(20, this.WorldLeaderBoardTopBoard.AlliPowerTop.Name, -1);
     this.WorldLeaderBoardTopBoard.AlliPowerTop.Value = MP.ReadULong(-1);
     MP.ReadUInt(-1);
     this.WorldLeaderBoardTopBoard.AlliPowerTop.KingdomID = MP.ReadUShort(-1);
     this.WorldLeaderBoardTopBoard.PowerTopEmblem         = MP.ReadUShort(-1);
     MP.ReadStringPlus(3, this.WorldLeaderBoardTopBoard.AlliKillsTop.AlliaceTag, -1);
     MP.ReadStringPlus(20, this.WorldLeaderBoardTopBoard.AlliKillsTop.Name, -1);
     this.WorldLeaderBoardTopBoard.AlliKillsTop.Value = MP.ReadULong(-1);
     MP.ReadUInt(-1);
     this.WorldLeaderBoardTopBoard.AlliKillsTop.KingdomID = MP.ReadUShort(-1);
     this.WorldLeaderBoardTopBoard.KillsTopEmblem         = MP.ReadUShort(-1);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_LeaderBoard, 2, 0);
 }
예제 #6
0
 // Token: 0x060012D9 RID: 4825 RVA: 0x0020E1D4 File Offset: 0x0020C3D4
 public void Recv_MSG_RESP_KVK_TOPBORAD(MessagePacket MP)
 {
     LeaderBoardManager.Instance.KingdomBoardNextTime = DataManager.Instance.ServerTime + 43200L;
     if (this.KvKTopBoard == null)
     {
         this.KvKTopBoard = new KVKBoardTopBoard();
     }
     this.KvKTopBoard.SortTime             = MP.ReadLong(-1);
     this.KvKTopBoard.TopKingdom           = MP.ReadUShort(-1);
     this.KvKTopBoard.KvKTopAlliKingdomID  = MP.ReadUShort(-1);
     this.KvKTopBoard.KvKTopAlliAllianceID = MP.ReadUInt(-1);
     MP.ReadStringPlus(3, this.KvKTopBoard.KvKTopAlliTag, -1);
     MP.ReadStringPlus(20, this.KvKTopBoard.KvKTopAlliName, -1);
     this.KvKTopBoard.KvKTopAlliScore  = MP.ReadULong(-1);
     this.KvKTopBoard.KvKTopAlliEmblem = MP.ReadUShort(-1);
     MP.ReadStringPlus(13, this.KvKTopBoard.KvKAlliTopPlayerName, -1);
     this.KvKTopBoard.KvKAlliTopPlayerValue   = MP.ReadULong(-1);
     this.KvKTopBoard.KvKAlliTopPlayerHead    = MP.ReadUShort(-1);
     this.KvKTopBoard.KingdomEventRequireTime = MP.ReadUInt(-1);
     MP.ReadStringPlus(3, this.KvKTopBoard.KvKTopPlayerTag, -1);
     MP.ReadStringPlus(13, this.KvKTopBoard.KvKTopPlayerName, -1);
     this.KvKTopBoard.KvKPlayerValue        = MP.ReadULong(-1);
     this.KvKTopBoard.KvKTopPlayerKingdomID = MP.ReadUShort(-1);
     this.KvKTopBoard.KvKPlayerHead         = MP.ReadUShort(-1);
     this.KvKTopBoard.AllianceID            = (ulong)DataManager.Instance.RoleAlliance.Id;
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_KVKLBoard, 2, 0);
 }
예제 #7
0
    // Token: 0x060008DE RID: 2270 RVA: 0x000B6004 File Offset: 0x000B4204
    public void Recv_MSG_GAMBLE_HISTORY(MessagePacket MP)
    {
        if (this.m_GamebleJackpots == null)
        {
            return;
        }
        this.m_GamebleJackpots.Clear();
        GamblingManager.GamebleJackpot[] array = new GamblingManager.GamebleJackpot[3];
        for (int i = 0; i < 3; i++)
        {
            array[i]           = new GamblingManager.GamebleJackpot();
            array[i].KingdomID = MP.ReadUShort(-1);
            MP.ReadStringPlus(3, array[i].Tag, -1);
            MP.ReadStringPlus(13, array[i].Name, -1);
            array[i].PrizeWins = MP.ReadUInt(-1);
            array[i].GameType  = (UIBattle_Gambling.eMode)MP.ReadByte(-1);
            array[i].WonTime   = MP.ReadLong(-1);
        }
        int num = 2;

        while (num >= 0 && num < array.Length)
        {
            if (array[num].PrizeWins != 0u)
            {
                this.AddJackpotData(array[num]);
            }
            num--;
        }
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 0, 0);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 2, 0);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_MonsterCrypt, 0, 0);
    }
예제 #8
0
 // Token: 0x06001416 RID: 5142 RVA: 0x0023460C File Offset: 0x0023280C
 public void RecvBlackMarket_Data(MessagePacket MP)
 {
     GUIManager.Instance.HideUILock(EUILock.BlackMarket);
     MP.ReadLong(-1);
     this.TradeLocks  = MP.ReadByte(-1);
     this.TradeStatus = MP.ReadByte(-1);
     for (int i = 0; i < 4; i++)
     {
         this.MerchantmanData[i].itemID        = MP.ReadUShort(-1);
         this.MerchantmanData[i].itemCount     = MP.ReadUShort(-1);
         this.MerchantmanData[i].ResourceKind  = MP.ReadByte(-1);
         this.MerchantmanData[i].ResourceCount = MP.ReadUInt(-1);
         this.MerchantmanData[i].Rare          = MP.ReadByte(-1);
     }
     this.ExtraData       = MP.ReadByte(-1);
     this.ExtraTreasureID = MallManager.Instance.TreasureIDTransToNew(MP.ReadUInt(-1));
     if (this.ExtraData != 1)
     {
         this.ClearSendCheckBuy();
         this.bNeedUpDateExtra = false;
         GUIManager.Instance.UpdateUI(EGUIWindow.UI_Merchantman, 1, 0);
         GUIManager.Instance.UpdateUI(EGUIWindow.UI_OpenBox, 3, 0);
         GUIManager.Instance.BuildingData.UpdateBuildState(5, 255);
     }
 }
예제 #9
0
    // Token: 0x060011AE RID: 4526 RVA: 0x001EE340 File Offset: 0x001EC540
    public void RecvFootBallKickFailedReturn(MessagePacket MP)
    {
        DataManager   dataManager   = DataManager.Instance;
        GUIManager    guimanager    = GUIManager.Instance;
        FAILED_REASON failed_REASON = (FAILED_REASON)MP.ReadByte(-1);
        byte          b             = MP.ReadByte(-1);

        if (b >= 8)
        {
            return;
        }
        dataManager.MarchEventData[(int)b].Type        = (EMarchEventType)MP.ReadByte(-1);
        dataManager.MarchEventTime[(int)b].BeginTime   = MP.ReadLong(-1);
        dataManager.MarchEventTime[(int)b].RequireTime = MP.ReadUInt(-1);
        dataManager.SetQueueBarData(EQueueBarIndex.MarchingBegin + (int)b, true, dataManager.MarchEventTime[(int)b].BeginTime, dataManager.MarchEventTime[(int)b].RequireTime);
        dataManager.CheckTroolCount();
        guimanager.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0);
        guimanager.UpdateUI(EGUIWindow.UI_BagFilter, -1, (int)(2 + b));
        guimanager.UpdateUI(EGUIWindow.UI_Rally, 0, 0);
        if (failed_REASON == FAILED_REASON.FAILED_REASON_KICK_AWAY)
        {
            guimanager.AddHUDMessage(dataManager.mStringTable.GetStringByID(14737u), 255, true);
        }
        else if (failed_REASON == FAILED_REASON.FAILED_REASON_KICK_VANISH)
        {
            guimanager.AddHUDMessage(dataManager.mStringTable.GetStringByID(14738u), 255, true);
        }
    }
예제 #10
0
 // Token: 0x060002F7 RID: 759 RVA: 0x000280AC File Offset: 0x000262AC
 public void Init(MessagePacket MP)
 {
     MP.ReadStringPlus(13, this.AllyName, -1);
     this.AllyNameID            = this.AllyName.GetHashCode(false);
     this.AllyVIP               = MP.ReadByte(-1);
     this.AllyRank              = MP.ReadByte(-1);
     this.MarchTime.BeginTime   = MP.ReadLong(-1);
     this.MarchTime.RequireTime = MP.ReadUInt(-1);
     this.TroopFlag             = MP.ReadUShort(-1);
     this.TroopSize             = 0;
     this.TotalTroopNum         = 0u;
     for (int i = 0; i < 16; i++)
     {
         if ((this.TroopFlag >> i & 1) == 1)
         {
             this.TroopData[i >> 2][i & 3] = MP.ReadUInt(-1);
             this.TotalTroopNum           += this.TroopData[i >> 2][i & 3];
             this.TroopSize += 1;
         }
         else
         {
             this.TroopData[i >> 2][i & 3] = 0u;
         }
     }
 }
예제 #11
0
    // Token: 0x060024C2 RID: 9410 RVA: 0x00423A20 File Offset: 0x00421C20
    public void RecvKingGift(MessagePacket MP)
    {
        CString cstring = StringManager.Instance.StaticString1024();

        GUIManager.Instance.HideUILock(EUILock.KingGift);
        byte b = MP.ReadByte(-1);

        if (b == 0)
        {
            ushort itemID = MP.ReadUShort(-1);
            long   userID = MP.ReadLong(-1);
            MP.ReadStringPlus(13, cstring, -1);
            this.SetGiftList(itemID, cstring, userID);
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_List, 3, 0);
        }
        else
        {
            byte b2 = b;
            if (b2 != 1)
            {
                if (b2 == 6)
                {
                    GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(744u), 255, true);
                }
            }
            else
            {
                GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(9718u), 255, true);
            }
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_List, 4, 0);
        }
    }
예제 #12
0
    // Token: 0x060012A3 RID: 4771 RVA: 0x0020B368 File Offset: 0x00209568
    public static void readPrisonerData(MessagePacket MP)
    {
        byte b = MP.ReadByte(-1);

        if (!GameConstants.IsBetween((int)b, 0, 30))
        {
            return;
        }
        if (DataManager.Instance.PrisonerList[(int)b].AlliTag == null)
        {
            DataManager.Instance.PrisonerList[(int)b].AlliTag = StringManager.Instance.SpawnString(30);
        }
        if (DataManager.Instance.PrisonerList[(int)b].name == null)
        {
            DataManager.Instance.PrisonerList[(int)b].name = StringManager.Instance.SpawnString(30);
        }
        DataManager.Instance.PrisonerList[(int)b].AlliTag.ClearString();
        DataManager.Instance.PrisonerList[(int)b].name.ClearString();
        DataManager.Instance.PrisonerList[(int)b].KingdomID = MP.ReadUShort(-1);
        MP.ReadStringPlus(3, DataManager.Instance.PrisonerList[(int)b].AlliTag, -1);
        MP.ReadStringPlus(13, DataManager.Instance.PrisonerList[(int)b].name, -1);
        DataManager.Instance.PrisonerList[(int)b].LordLevel = MP.ReadByte(-1);
        DataManager.Instance.PrisonerList[(int)b].head      = MP.ReadUShort(-1);
        byte nowStat = MP.ReadByte(-1);

        DataManager.Instance.PrisonerList[(int)b].nowStat         = (PrisonerState)nowStat;
        DataManager.Instance.PrisonerList[(int)b].StartActionTime = MP.ReadLong(-1);
        DataManager.Instance.PrisonerList[(int)b].TotalTime       = MP.ReadUInt(-1);
        DataManager.Instance.PrisonerList[(int)b].Ransom          = MP.ReadUInt(-1);
        MP.ReadUInt(-1);
    }
예제 #13
0
    // Token: 0x06001291 RID: 4753 RVA: 0x0020A4B8 File Offset: 0x002086B8
    public static void MSG_RESP_LORD_BEINGRELEASED(MessagePacket MP)
    {
        PointCode pointCode = default(PointCode);

        pointCode.zoneID  = MP.ReadUShort(-1);
        pointCode.pointID = MP.ReadByte(-1);
        DataManager.Instance.beCaptured.nowCaptureStat  = LoadCaptureState.Returning;
        DataManager.Instance.beCaptured.MapID           = GameConstants.PointCodeToMapID(pointCode.zoneID, pointCode.pointID);
        DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1);
        DataManager.Instance.beCaptured.TotalTime       = MP.ReadUInt(-1);
        byte b = MP.ReadByte(-1);

        DataManager.Instance.SetQueueBarData(EQueueBarIndex.LordReturn, true, DataManager.Instance.beCaptured.StartActionTime, DataManager.Instance.beCaptured.TotalTime);
        DataManager.Instance.SetRecvQueueBarData(30);
        DataManager.Instance.CheckTroolCount();
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0);
        ushort leaderID = DataManager.Instance.GetLeaderID();

        if (leaderID != 0)
        {
            DataManager.Instance.TempFightHeroID[(int)leaderID] = 1;
            DataManager.Instance.SetFightHeroData();
            GameManager.OnRefresh(NetworkNews.Refresh_Hero, null);
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_HeroList_Soldier2, 0, 0);
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_BattleHeroSelect, 2, 0);
        }
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0);
        GUIManager.Instance.UpdateUI(EGUIWindow.Door, 18, 0);
        DataManager.Instance.AttribVal.UpdateAttrVal(UpdateAttrKind.Hero);
        DataManager.Instance.AttribVal.UpdateLordEquipData();
        GUIManager.Instance.CloseMenu(EGUIWindow.UI_SuicideBox);
    }
예제 #14
0
    // Token: 0x06001073 RID: 4211 RVA: 0x001D56E8 File Offset: 0x001D38E8
    public void RecvAmbushReturn(MessagePacket MP)
    {
        byte b  = MP.ReadByte(-1);
        byte b2 = MP.ReadByte(-1);

        if (b2 >= 8)
        {
            return;
        }
        this.DM.MarchEventData[(int)b2].Point.zoneID  = MP.ReadUShort(-1);
        this.DM.MarchEventData[(int)b2].Point.pointID = MP.ReadByte(-1);
        this.DM.MarchEventTime[(int)b2].BeginTime     = MP.ReadLong(-1);
        this.DM.MarchEventTime[(int)b2].RequireTime   = MP.ReadUInt(-1);
        this.DM.MarchEventData[(int)b2].PointKind     = POINT_KIND.PK_CITY;
        this.DM.MarchEventData[(int)b2].bRallyHost    = 1;
        this.DM.SetQueueBarData(EQueueBarIndex.MarchingBegin + (int)b2, true, this.DM.MarchEventTime[(int)b2].BeginTime, this.DM.MarchEventTime[(int)b2].RequireTime);
        switch (b)
        {
        case 0:
            this.DM.MarchEventData[(int)b2].Type = EMarchEventType.EMET_CampReturn;
            break;

        case 1:
            this.DM.MarchEventData[(int)b2].Type = EMarchEventType.EMET_CampReturn;
            GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(9730u), 14, true);
            break;

        case 2:
            this.DM.MarchEventData[(int)b2].Type = EMarchEventType.EMET_CampRetreat;
            break;
        }
        GUIManager.Instance.HideUILock(EUILock.Ambush);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0);
    }
예제 #15
0
 // Token: 0x060002F3 RID: 755 RVA: 0x00027E24 File Offset: 0x00026024
 public void InitNpc(MessagePacket MP)
 {
     this.Kind = MP.ReadByte(-1);
     this.EventTime.BeginTime      = MP.ReadLong(-1);
     this.EventTime.RequireTime    = MP.ReadUInt(-1);
     this.AllyCapitalPoint.zoneID  = MP.ReadUShort(-1);
     this.AllyCapitalPoint.pointID = MP.ReadByte(-1);
     this.AllyHead = MP.ReadUShort(-1);
     MP.ReadStringPlus(13, this.AllyName, -1);
     this.AllyNameID = this.AllyName.GetHashCode(false);
     this.AllyVIP    = MP.ReadByte(-1);
     this.AllyRank   = MP.ReadByte(-1);
     if (this.PositionInfo != 1)
     {
         this.AllyCurrTroop = MP.ReadUInt(-1);
     }
     this.AllyMAXTroop = MP.ReadUInt(-1);
     if (this.PositionInfo != 1)
     {
         this.AllyHomeKingdom = MP.ReadUShort(-1);
     }
     this.EnemyHead = 255;
     this.EnemyCapitalPoint.zoneID  = MP.ReadUShort(-1);
     this.EnemyCapitalPoint.pointID = MP.ReadByte(-1);
     this.EnemyVIP   = MP.ReadByte(-1);
     this.EnemyNPCID = MP.ReadUShort(-1);
     this.EnemyName.ClearString();
     this.EnemyName.IntToFormat((long)this.EnemyVIP, 1, false);
     this.EnemyName.AppendFormat(DataManager.Instance.mStringTable.GetStringByID(12021u));
 }
예제 #16
0
 // Token: 0x060002EF RID: 751 RVA: 0x00027AC8 File Offset: 0x00025CC8
 public void Init(MessagePacket MP)
 {
     this.Kind = MP.ReadByte(-1);
     this.EventTime.BeginTime      = MP.ReadLong(-1);
     this.EventTime.RequireTime    = MP.ReadUInt(-1);
     this.AllyCapitalPoint.zoneID  = MP.ReadUShort(-1);
     this.AllyCapitalPoint.pointID = MP.ReadByte(-1);
     this.AllyHead = MP.ReadUShort(-1);
     MP.ReadStringPlus(13, this.AllyName, -1);
     this.AllyNameID = this.AllyName.GetHashCode(false);
     this.AllyVIP    = MP.ReadByte(-1);
     this.AllyRank   = MP.ReadByte(-1);
     if (this.PositionInfo != 1)
     {
         this.AllyCurrTroop = MP.ReadUInt(-1);
     }
     this.AllyMAXTroop              = MP.ReadUInt(-1);
     this.EnemyCapitalPoint.zoneID  = MP.ReadUShort(-1);
     this.EnemyCapitalPoint.pointID = MP.ReadByte(-1);
     this.EnemyHead = MP.ReadUShort(-1);
     MP.ReadStringPlus(13, this.EnemyName, -1);
     this.EnemyVIP  = MP.ReadByte(-1);
     this.EnemyRank = MP.ReadByte(-1);
     MP.ReadStringPlus(3, this.EnemyAllianceTag, -1);
     this.EnemyHomeKingdom = MP.ReadUShort(-1);
     this.WonderID         = byte.MaxValue;
     this.UIWonderID       = byte.MaxValue;
     this.AddCombatPower   = 0u;
 }
예제 #17
0
    // Token: 0x0600161F RID: 5663 RVA: 0x0025A85C File Offset: 0x00258A5C
    public static void DispatchResource(MessagePacket MP)
    {
        uint val   = MP.ReadUInt(-1);
        long speed = MP.ReadLong(-1);

        DataManager.Instance.PetResource.SetResource(val, speed);
        GameManager.OnRefresh(NetworkNews.Refresh_PetResource, null);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_PetResourceStation, 1, 0);
    }
예제 #18
0
 // Token: 0x0600181E RID: 6174 RVA: 0x0028BEB0 File Offset: 0x0028A0B0
 public void Recv_MSG_RESP_FOOTBALL_PREPUSH_INFO(MessagePacket MP)
 {
     this.FootBallGameType       = MP.ReadByte(-1);
     this.FootBallGameType      -= 1;
     this.FootBallEventBeginTime = MP.ReadLong(-1);
     this.FootBallWaveCount      = MP.ReadByte(-1);
     this.FootBallWaveGap        = (int)MP.ReadUShort(-1);
     this.FootBallWaveGap       *= 60;
 }
예제 #19
0
    // Token: 0x060011AA RID: 4522 RVA: 0x001EE140 File Offset: 0x001EC340
    public void RecvFootBall_Data(MessagePacket MP)
    {
        this.mFootballKickData.last_football_id = MP.ReadUInt(-1);
        this.mFootballKickData.last_kick_time   = MP.ReadLong(-1);
        this.mFootballKickData.combo            = MP.ReadUShort(-1);
        for (int i = 0; i < 4; i++)
        {
            this.mFootballSkillCDTime[i] = MP.ReadLong(-1);
        }
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBall, 1, 255);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBall, 2, 0);
        Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door;

        if (door)
        {
            door.CheckhowFIFA_FindBtn();
        }
    }
예제 #20
0
 // Token: 0x06001290 RID: 4752 RVA: 0x0020A420 File Offset: 0x00208620
 public static void RecvLordReleasedTime(MessagePacket MP)
 {
     DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1);
     DataManager.Instance.beCaptured.TotalTime       = MP.ReadUInt(-1);
     DataManager.Instance.SetQueueBarData(EQueueBarIndex.LordReturn, true, DataManager.Instance.beCaptured.StartActionTime, DataManager.Instance.beCaptured.TotalTime);
     DataManager.Instance.SetRecvQueueBarData(30);
     DataManager.Instance.CheckTroolCount();
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_ArmyInfo, 0, 0);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0);
 }
예제 #21
0
    // Token: 0x060008DC RID: 2268 RVA: 0x000B5C4C File Offset: 0x000B3E4C
    public void Recv_MSG_GAMBLE_JACKPOT(MessagePacket MP)
    {
        GamblingManager.GamebleJackpot gamebleJackpot = new GamblingManager.GamebleJackpot();
        gamebleJackpot.KingdomID = MP.ReadUShort(-1);
        MP.ReadStringPlus(3, gamebleJackpot.Tag, -1);
        MP.ReadStringPlus(13, gamebleJackpot.Name, -1);
        uint num = MP.ReadUInt(-1);

        gamebleJackpot.PrizeWins = MP.ReadUInt(-1);
        gamebleJackpot.GameType  = (UIBattle_Gambling.eMode)MP.ReadByte(-1);
        gamebleJackpot.WonTime   = MP.ReadLong(-1);
        bool flag = DataManager.CompareStr(gamebleJackpot.Name, DataManager.Instance.RoleAttr.Name) == 0;

        this.AddJackpotData(gamebleJackpot);
        if (GUIManager.Instance.FindMenu(EGUIWindow.UI_Battle_Gambling) || gamebleJackpot.KingdomID == DataManager.MapDataController.kingdomData.kingdomID)
        {
            DataManager dataManager = DataManager.Instance;
            CString     cstring     = StringManager.Instance.StaticString1024();
            cstring.Append("<color=#FFFF00>");
            cstring.IntToFormat((long)((ulong)gamebleJackpot.PrizeWins), 1, true);
            cstring.AppendFormat(dataManager.mStringTable.GetStringByID(8473u));
            cstring.Append("</color>");
            MapMonster recordByKey  = DataManager.MapDataController.MapMonsterTable.GetRecordByKey(this.m_GambleEventSave.MonsterID);
            HeroTeam   recordByKey2 = dataManager.TeamTable.GetRecordByKey(recordByKey.MapTeamInfo[0].TeamID);
            Hero       recordByKey3 = dataManager.HeroTable.GetRecordByKey(recordByKey2.Arrays[10].Hero);
            CString    cstring2     = StringManager.Instance.StaticString1024();
            GameConstants.FormatRoleName(cstring2, gamebleJackpot.Name, gamebleJackpot.Tag, null, 0, (gamebleJackpot.KingdomID != DataManager.MapDataController.kingdomData.kingdomID) ? gamebleJackpot.KingdomID : 0, null, null, null, null);
            CString cstring3 = StringManager.Instance.StaticString1024();
            cstring3.Append("<color=#FFFF00>");
            cstring3.Append(cstring2);
            cstring3.Append("</color>");
            CString cstring4 = StringManager.Instance.SpawnString(1024);
            cstring4.StringToFormat(cstring3);
            if (gamebleJackpot.GameType == UIBattle_Gambling.eMode.Normal)
            {
                cstring4.StringToFormat(dataManager.mStringTable.GetStringByID(9171u));
            }
            else
            {
                cstring4.StringToFormat(dataManager.mStringTable.GetStringByID(9179u));
            }
            cstring4.StringToFormat(dataManager.mStringTable.GetStringByID((uint)recordByKey3.HeroName));
            cstring4.StringToFormat(cstring);
            cstring4.AppendFormat(dataManager.mStringTable.GetStringByID(9180u));
            this.GambleCountStr.Add(cstring4);
            GUIManager.Instance.SetRunningText(cstring4);
        }
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 0, 0);
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 2, 0);
        if (flag)
        {
            GUIManager.Instance.UpdateUI(EGUIWindow.UI_Battle_Gambling, 9, 0);
        }
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_MonsterCrypt, 0, 0);
    }
예제 #22
0
 // Token: 0x060010A0 RID: 4256 RVA: 0x001D886C File Offset: 0x001D6A6C
 public void RecvArena_ReSet_Challenge_CD(MessagePacket MP)
 {
     GUIManager.Instance.HideUILock(EUILock.Arena);
     if (MP.ReadByte(-1) == 0)
     {
         this.m_ArenaLastChallengeTime = MP.ReadLong(-1);
         GUIManager.Instance.SetRoleAttrDiamond(MP.ReadUInt(-1), 0, eSpentCredits.eMax);
         GUIManager.Instance.UpdateUI(EGUIWindow.UI_Arena, 2, 0);
         GUIManager.Instance.BuildingData.UpdateBuildState(5, 255);
     }
 }
예제 #23
0
 // Token: 0x060010A2 RID: 4258 RVA: 0x001D8A08 File Offset: 0x001D6C08
 public void RecvArena_Update_Topic(MessagePacket MP)
 {
     this.m_NowArenaTopicID[0]        = MP.ReadByte(-1);
     this.m_NowArenaTopicID[1]        = MP.ReadByte(-1);
     this.m_NowArenaTopicEndTime      = MP.ReadLong(-1);
     this.m_NowTopicEffect[0].Effect  = MP.ReadUShort(-1);
     this.m_NowTopicEffect[0].Value   = MP.ReadUShort(-1);
     this.m_NowTopicEffect[1].Effect  = MP.ReadUShort(-1);
     this.m_NowTopicEffect[1].Value   = MP.ReadUShort(-1);
     this.m_NextArenaTopicID[0]       = MP.ReadByte(-1);
     this.m_NextArenaTopicID[1]       = MP.ReadByte(-1);
     this.m_NextArenaTopicBeginTime   = MP.ReadLong(-1);
     this.m_NextTopicEffect[0].Effect = MP.ReadUShort(-1);
     this.m_NextTopicEffect[0].Value  = MP.ReadUShort(-1);
     this.m_NextTopicEffect[1].Effect = MP.ReadUShort(-1);
     this.m_NextTopicEffect[1].Value  = MP.ReadUShort(-1);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_Arena, 10, 0);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_Arena_Info, 1, 0);
     DataManager.MissionDataManager.CheckChanged(eMissionKind.Record, 28, this.GetHeroAstrologyNum());
 }
예제 #24
0
 // Token: 0x06000DDE RID: 3550 RVA: 0x0016312C File Offset: 0x0016132C
 public void RecvUpdate_EventInfo(MessagePacket MP)
 {
     this.ActivityGiftBeginTime = MP.ReadLong(-1);
     this.ActivityGiftEndTime   = MP.ReadLong(-1);
     this.GroupID = MP.ReadByte(-1);
     for (int i = 0; i < DataManager.Instance.FastivalSpecialDataTable.TableCount; i++)
     {
         FastivalSpecialData recordByKey = DataManager.Instance.FastivalSpecialDataTable.GetRecordByKey((ushort)(i + 1));
         if (this.GroupID == recordByKey.GroupID)
         {
             this.ParticleID = recordByKey.UB1;
             break;
         }
     }
     this.mLeaderRedPocketResetTime = MP.ReadLong(-1);
     ActivityGiftManager.Instance.bReSetMainGift = (ActivityGiftManager.Instance.mLeaderRedPocketResetTime > ActivityManager.Instance.ServerEventTime);
     GUIManager.Instance.UpdateUI(EGUIWindow.Door, 17, 0);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_Info, 11, 0);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_Alliance_ActivityGift, 4, 0);
 }
예제 #25
0
    // Token: 0x0600020D RID: 525 RVA: 0x0001C838 File Offset: 0x0001AA38
    public void RecvBookMarkModify(MessagePacket MP)
    {
        GUIManager.Instance.HideUILock(EUILock.BookMark);
        if (MP.ReadUShort(-1) == 0)
        {
            return;
        }
        this.UpdateTime = MP.ReadLong(-1);
        ushort num = MP.ReadUShort(-1);

        if (num == 0 || (int)num > this.AllData.Length)
        {
            return;
        }
        BookMarkData[] allData = this.AllData;
        int            num2    = (int)(num - 1);
        ushort         num3    = num;

        num = num3 - 1;
        allData[num2].ID = num3;
        byte b = MP.ReadByte(-1);

        if (b > 2)
        {
            b = 0;
        }
        if (b != this.AllData[(int)num].Type)
        {
            this.RemoveDataIndex(num, BookMark.eBookType.Role);
            this.AllData[(int)num].Type = b;
            this.InsertDataIndex(num);
        }
        MP.ReadStringPlus((int)this.NameSize, this.AllData[(int)num].Name, -1);
        DataManager.Instance.RoleAttr.BookmarkTime = this.UpdateTime;
        if (this.OverWriteID == 0)
        {
            if (GUIManager.Instance.FindMenu(EGUIWindow.UI_BookMark) == null)
            {
                Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door;
                door.OpenMenu(EGUIWindow.UI_BookMark, 589824 | (int)(this.AllData[(int)num].Type + 1), this.GetMapID(this.AllData[(int)num].ID, BookMark.eBookType.Role), false);
            }
            else
            {
                GUIManager.Instance.UpdateUI(EGUIWindow.UI_BookMark, 589824 | (int)(this.AllData[(int)num].Type + 1), this.GetMapID(this.AllData[(int)num].ID, BookMark.eBookType.Role));
            }
            GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(787u), 255, true);
        }
        else
        {
            GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(12629u), 255, true);
        }
        this.OverWriteID = 0;
    }
예제 #26
0
    // Token: 0x0600106C RID: 4204 RVA: 0x001D4C7C File Offset: 0x001D2E7C
    public void RecvAmbushDismisReturn(MessagePacket MP)
    {
        byte b = MP.ReadByte(-1);

        if (b >= 8)
        {
            return;
        }
        this.DM.MarchEventTime[(int)b].BeginTime   = MP.ReadLong(-1);
        this.DM.MarchEventTime[(int)b].RequireTime = MP.ReadUInt(-1);
        this.DM.SetQueueBarData(EQueueBarIndex.MarchingBegin + (int)b, true, this.DM.MarchEventTime[(int)b].BeginTime, this.DM.MarchEventTime[(int)b].RequireTime);
        GUIManager.Instance.AddHUDMessage(this.DM.mStringTable.GetStringByID(9730u), 14, true);
    }
예제 #27
0
    // Token: 0x06001282 RID: 4738 RVA: 0x00209900 File Offset: 0x00207B00
    public void CheckIndemnify(MessagePacket MP)
    {
        byte b = MP.ReadByte(-1);

        this.TriggerTime = MP.ReadLong(-1);
        for (int i = 0; i < 4; i++)
        {
            this.ResourceCache[i] = MP.ReadLong(-1);
            if (this.ResourceCache[i] != 0L && this.bTriggered == INDEMNIFY_STATE.None)
            {
                this.bTriggered = INDEMNIFY_STATE.Triggered;
            }
        }
        if (b != 0 && this.bTriggered == INDEMNIFY_STATE.Triggered)
        {
            if (this.CheckTriggered(this.TriggerTime))
            {
                this.bTriggered = INDEMNIFY_STATE.ShowButton;
            }
        }
        else
        {
            FBAdvanceManager.Instance.TriggerFbEvent(EFBEvent.SUPPLY_CHEST, 0L, 0UL);
        }
        this.SaveTriggerTime();
        if (!this.HasIndemnify() && this.bTriggered != INDEMNIFY_STATE.None)
        {
            this.bTriggered = INDEMNIFY_STATE.None;
            GUIManager.Instance.UpdateUI(EGUIWindow.Door, 21, 0);
        }
        GameManager.OnRefresh(NetworkNews.Refresh_IndemnifyResources, null);
        Indemnify.CheckShowIndemnify();
        Debug.LogWarning("CheckIndemnify");
        Debug.LogWarning(this.ResourceCache[0].ToString());
        Debug.LogWarning(this.ResourceCache[1].ToString());
        Debug.LogWarning(this.ResourceCache[2].ToString());
        Debug.LogWarning(this.ResourceCache[3].ToString());
    }
예제 #28
0
 // Token: 0x060012E7 RID: 4839 RVA: 0x0020F3C0 File Offset: 0x0020D5C0
 public void Recv_MSG_RESP_FOOTBALL_TOPBOARD(MessagePacket MP)
 {
     this.FootBallBoardTime = ActivityManager.Instance.ServerEventTime + 43200L;
     if (this.FootBallTopBoard == null)
     {
         this.FootBallTopBoard = new FootBallTopBoard();
     }
     this.FootBallTopBoard.SortTime = MP.ReadLong(-1);
     if (this.FootBallTopBoard.SortTime == 0L)
     {
         this.FootBallBoardTime = 0L;
     }
     this.FootBallBoardType = MP.ReadByte(-1);
     this.FootBallTopBoard.EventRequireTime           = MP.ReadUInt(-1);
     this.FootBallTopBoard.KingdomAlliance.KingdomID  = MP.ReadUShort(-1);
     this.FootBallTopBoard.KingdomAlliance.AllianceID = MP.ReadUInt(-1);
     MP.ReadStringPlus(3, this.FootBallTopBoard.KingdomAlliance.AlliaceTag, -1);
     MP.ReadStringPlus(20, this.FootBallTopBoard.KingdomAlliance.Name, -1);
     this.FootBallTopBoard.KingdomAlliance.Value    = MP.ReadULong(-1);
     this.FootBallTopBoard.KingdomAllianceTopEmblem = MP.ReadUShort(-1);
     MP.ReadStringPlus(3, this.FootBallTopBoard.KingdomPlayer.AlliaceTag, -1);
     MP.ReadStringPlus(13, this.FootBallTopBoard.KingdomPlayer.Name, -1);
     this.FootBallTopBoard.KingdomPlayer.Value     = MP.ReadULong(-1);
     this.FootBallTopBoard.KingdomPlayer.KingdomID = MP.ReadUShort(-1);
     this.FootBallTopBoard.KingdomPlayerTopHead    = MP.ReadUShort(-1);
     MP.ReadStringPlus(13, this.FootBallTopBoard.AlliancePlayer.Name, -1);
     this.FootBallTopBoard.AlliancePlayer.Value  = MP.ReadULong(-1);
     this.FootBallTopBoard.AlliancePlayerTopHead = MP.ReadUShort(-1);
     if (this.FootBallBoardType == 2)
     {
         this.FootBallTopBoard.TopKingdom = MP.ReadUShort(-1);
         MP.ReadUShort(-1);
         this.FootBallTopBoard.TopWorldKingdom = MP.ReadUShort(-1);
         MP.ReadUShort(-1);
         this.FootBallTopBoard.WorldKingdomAlliance.KingdomID  = MP.ReadUShort(-1);
         this.FootBallTopBoard.WorldKingdomAlliance.AllianceID = MP.ReadUInt(-1);
         MP.ReadStringPlus(3, this.FootBallTopBoard.WorldKingdomAlliance.AlliaceTag, -1);
         MP.ReadStringPlus(20, this.FootBallTopBoard.WorldKingdomAlliance.Name, -1);
         this.FootBallTopBoard.WorldKingdomAlliance.Value = MP.ReadULong(-1);
         this.FootBallTopBoard.WorldKingdomAllianceEmblem = MP.ReadUShort(-1);
         MP.ReadStringPlus(3, this.FootBallTopBoard.WorldKingdomPlayer.AlliaceTag, -1);
         MP.ReadStringPlus(13, this.FootBallTopBoard.WorldKingdomPlayer.Name, -1);
         this.FootBallTopBoard.WorldKingdomPlayer.Value     = MP.ReadULong(-1);
         this.FootBallTopBoard.WorldKingdomPlayer.KingdomID = MP.ReadUShort(-1);
         this.FootBallTopBoard.WorldKingdomPlayerHead       = MP.ReadUShort(-1);
     }
     this.FootBallTopBoard.AllianceID = (ulong)DataManager.Instance.RoleAlliance.Id;
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallBoard, 2, 0);
     GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallKVKBoard, 2, 0);
 }
예제 #29
0
    // Token: 0x0600128D RID: 4749 RVA: 0x0020A15C File Offset: 0x0020835C
    public static void MSG_RESP_UPDATE_CAPTIVE(MessagePacket MP)
    {
        switch (MP.ReadByte(-1))
        {
        case 0:
            DataManager.Instance.beCaptured.head = MP.ReadUShort(-1);
            break;

        case 1:
            DataManager.Instance.beCaptured.AlliTag.ClearString();
            MP.ReadStringPlus(3, DataManager.Instance.beCaptured.AlliTag, -1);
            break;

        case 2:
            DataManager.Instance.beCaptured.name.ClearString();
            MP.ReadStringPlus(13, DataManager.Instance.beCaptured.name, -1);
            break;

        case 3:
        {
            PointCode pointCode = default(PointCode);
            pointCode.zoneID  = MP.ReadUShort(-1);
            pointCode.pointID = MP.ReadByte(-1);
            DataManager.Instance.beCaptured.MapID = GameConstants.PointCodeToMapID(pointCode.zoneID, pointCode.pointID);
            break;
        }

        case 4:
            DataManager.Instance.beCaptured.prisonerStat    = (PrisonerState)MP.ReadByte(-1);
            DataManager.Instance.beCaptured.StartActionTime = MP.ReadLong(-1);
            DataManager.Instance.beCaptured.TotalTime       = MP.ReadUInt(-1);
            break;

        case 5:
            DataManager.Instance.beCaptured.Ransom = MP.ReadUInt(-1);
            break;

        case 6:
        {
            PointCode pointCode2 = default(PointCode);
            pointCode2.zoneID  = MP.ReadUShort(-1);
            pointCode2.pointID = MP.ReadByte(-1);
            DataManager.Instance.beCaptured.MapID         = GameConstants.PointCodeToMapID(pointCode2.zoneID, pointCode2.pointID);
            DataManager.Instance.beCaptured.KingdomID     = MP.ReadUShort(-1);
            DataManager.Instance.beCaptured.HomeKingdomID = MP.ReadUShort(-1);
            break;
        }
        }
        GUIManager.Instance.UpdateUI(EGUIWindow.UI_LordInfo, 0, 0);
    }
예제 #30
0
    // Token: 0x0600144A RID: 5194 RVA: 0x002393CC File Offset: 0x002375CC
    public void RecvFBMissionStart(MessagePacket MP)
    {
        GUIManager.Instance.HideUILock(EUILock.Mission);
        byte b = MP.ReadByte(-1);

        if (b > 0)
        {
            return;
        }
        this.CurMissionProcess.MissionTime.BeginTime   = MP.ReadLong(-1);
        this.CurMissionProcess.MissionTime.RequireTime = MP.ReadUInt(-1);
        DataManager instance = DataManager.Instance;

        instance.RoleAttr.PrizeFlag = (instance.RoleAttr.PrizeFlag | 134217728u);
        GUIManager.Instance.UpdateUI(EGUIWindow.Door, 27, 0);
    }