// 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); }
// 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); }
// 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); }
// Token: 0x06002584 RID: 9604 RVA: 0x0042BE04 File Offset: 0x0042A004 public void Login(MessagePacket MP) { switch (this.Result = MP.ReadByte(-1)) { case 0: NetworkPeeper.Stage = LoginPhase.LP_InGame; DataManager.MapDataController.FocusKingdomTime = MP.ReadULong(-1); DataManager.MapDataController.FocusKingdomPeriod = (KINGDOM_PERIOD)MP.ReadByte(-1); if (DataManager.MapDataController.FocusKingdomID == DataManager.MapDataController.OtherKingdomData.kingdomID) { DataManager.MapDataController.OtherKingdomData.kingdomPeriod = DataManager.MapDataController.FocusKingdomPeriod; } if (DataManager.MapDataController.FocusKingdomID == DataManager.MapDataController.kingdomData.kingdomID) { DataManager.MapDataController.kingdomData.kingdomPeriod = DataManager.MapDataController.FocusKingdomPeriod; } this.ConnectTime = 0f; this.HeartBeat(15L); GameConstants.GetBytes(NetworkManager.GuestController.ID, DataManager.msgBuffer, 0); GameManager.OnGuestLogin(); return; case 1: this.Resume(true); return; case 5: this.Drop(false); GameManager.OnRefresh(NetworkNews.GuestConnectFail, null); GUIManager.Instance.OpenMessageBox(DataManager.Instance.mStringTable.GetStringByID(101u), DataManager.Instance.mStringTable.GetStringByID(911u), null, null, 0, 0, false, false, false, false, false); return; } this.LostInSpace = true; }
// Token: 0x060012E8 RID: 4840 RVA: 0x0020F6F4 File Offset: 0x0020D8F4 public void Recv_MSG_RESP_FOOTBALL_ASOLO_RANK(MessagePacket MP) { if (MP.ReadByte(-1) == 0) { byte b = MP.ReadByte(-1); byte b2 = MP.ReadByte(-1); if ((b & 1) > 0) { this.ClearBoard(18); this.MyRank[18] = 0; } for (int i = 0; i < (int)b2; i++) { BoardUnit boardUnit = new BoardUnit(); MP.ReadStringPlus(13, boardUnit.Name, -1); boardUnit.Value = MP.ReadULong(-1); boardUnit.AlliaceTag.Append(DataManager.Instance.RoleAlliance.Tag); this.Boards[18].Add(boardUnit); } if (b >= 2) { LeaderBoardManager.Instance.BoardUpdateTime[18] = ActivityManager.Instance.ServerEventTime + 43200L; this.Boards[18].Sort(new Comparison <BoardUnit>(LeaderBoardManager.BoardUnitSortByValue)); for (int j = 0; j < this.Boards[18].Count; j++) { if (DataManager.CompareStr(this.Boards[18][j].Name, DataManager.Instance.RoleAttr.Name) == 0) { this.MyRank[18] = (ushort)(j + 1); } } GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallBoard, 3, 18); } } }
// Token: 0x06000114 RID: 276 RVA: 0x00012688 File Offset: 0x00010888 public void Recv_MSG_RESP_ALLIANCEWAR_COMBAT_REPORT(MessagePacket MP) { GUIManager.Instance.HideUILock(EUILock.AllianceWar_Fs); this.mReportRandSeed = MP.ReadUShort(-1); this.mReportRandGap = MP.ReadByte(-1); this.mReportResult = MP.ReadByte(-1); for (int i = 0; i < 2; i++) { this.m_CombatPlayerData[i].Name = MP.ReadString(13, -1); this.m_CombatPlayerData[i].KingdomID = MP.ReadUShort(-1); this.m_CombatPlayerData[i].StrongholdLevel = MP.ReadByte(-1); this.m_CombatPlayerData[i].Level = MP.ReadByte(-1); this.m_CombatPlayerData[i].Head = MP.ReadUShort(-1); this.m_CombatPlayerData[i].VIPLevel = MP.ReadByte(-1); this.m_CombatPlayerData[i].AllianceRank = MP.ReadByte(-1); for (int j = 0; j < 5; j++) { this.m_CombatPlayerData[i].HeroInfo[j].ID = MP.ReadUShort(-1); this.m_CombatPlayerData[i].HeroInfo[j].Rank = MP.ReadByte(-1); this.m_CombatPlayerData[i].HeroInfo[j].Star = MP.ReadByte(-1); } if (this.m_CombatPlayerData[i].HeroInfo[0].ID != 0) { this.m_CombatPlayerData[i].bMain = (this.m_CombatPlayerData[i].Head == this.m_CombatPlayerData[i].HeroInfo[0].ID); } else { this.m_CombatPlayerData[i].bMain = false; } this.m_CombatPlayerData[i].LosePower = MP.ReadULong(-1); for (int k = 0; k < 16; k++) { this.m_CombatPlayerData[i].SurviveTroop[k] = MP.ReadUInt(-1); } for (int l = 0; l < 16; l++) { this.m_CombatPlayerData[i].DeadTroop[l] = MP.ReadUInt(-1); } for (int m = 0; m < 4; m++) { this.m_CombatPlayerData[i].AttackAttr[m] = MP.ReadUInt(-1); } for (int n = 0; n < 4; n++) { this.m_CombatPlayerData[i].DefenceAttr[n] = MP.ReadUInt(-1); } for (int num = 0; num < 4; num++) { this.m_CombatPlayerData[i].HealthAttr[num] = MP.ReadUInt(-1); } this.m_CombatPlayerData[i].ArmyCoordIndex = MP.ReadByte(-1); this.m_CombatPlayerData[i].ArmyCoordIndex = (byte)Mathf.Clamp((int)this.m_CombatPlayerData[i].ArmyCoordIndex, 0, 5); } Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (door != null) { door.OpenMenu(EGUIWindow.UI_Alliance_FS, 0, 0, false); } }
// Token: 0x060012D7 RID: 4823 RVA: 0x0020DE64 File Offset: 0x0020C064 public void Recv_MSG_RESP_ARENA_BOARDDATA(MessagePacket MP) { ArenaManager.Instance.m_ArenaTargetHint.AllianceTagTag = MP.ReadString(3, -1); ArenaManager.Instance.m_ArenaTargetHint.Name = MP.ReadString(13, -1); ArenaManager.Instance.m_ArenaTargetHint.Place = (uint)((byte)MP.ReadULong(-1)); ArenaManager.Instance.m_ArenaTargetHint.HeroData = new ArenaTargetHeroDataType[5]; ArenaManager instance = ArenaManager.Instance; instance.m_ArenaTargetHint.Place = instance.m_ArenaTargetHint.Place + 1u; for (int i = 0; i < 5; i++) { ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].ID = MP.ReadUShort(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Level = MP.ReadByte(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Rank = MP.ReadByte(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Star = MP.ReadByte(-1); ArenaManager.Instance.m_ArenaTargetHint.HeroData[i].Equip = MP.ReadByte(-1); MP.ReadInt(-1); } ArenaManager.Instance.m_ArenaTargetHint.Head = ArenaManager.Instance.m_ArenaTargetHint.HeroData[0].ID; Transform parent = this.hintTarget.transform.parent; this.hintTarget.transform.SetParent(this.hintCenter); Vector2 anchoredPosition = this.hintTarget.GetComponent <RectTransform>().anchoredPosition; this.hintTarget.transform.SetParent(parent); this.hintTarget.transform.SetSiblingIndex(11); float num = anchoredPosition.y + 410f; num = Mathf.Clamp(num, -190f, 150f); GUIManager.Instance.m_Arena_Hint.Show(this.hintTarget, -40f, num, 0); }
// Token: 0x06000107 RID: 263 RVA: 0x00011C4C File Offset: 0x0000FE4C public void RecvInsertAllianceWarMemberList(MessagePacket MP) { if (GUIManager.Instance.FindMenu(EGUIWindow.UI_AllianceWarRegister) == null) { return; } byte b = MP.ReadByte(-1); if (b == 0 || b >= 100) { this.SendAllianceWarList(); return; } if (this.MyRank > 0 && this.MyRank >= b) { this.MyRank += 1; } b -= 1; AllianceWarManager._RegisterData registerData = default(AllianceWarManager._RegisterData); registerData.Initial(); MP.ReadStringPlus(13, registerData.Name, -1); registerData.Power = MP.ReadULong(-1); if (this.RegisterDataCount < 100) { this.InsertData((int)b, ref registerData); GUIManager.Instance.UpdateUI(EGUIWindow.UI_AllianceWarRegister, 1, (int)this.RegisterDataCount); } else { registerData.Clear(); } }
// Token: 0x060008C9 RID: 2249 RVA: 0x000B4EDC File Offset: 0x000B30DC public static void RecvInitBattleEx(MessagePacket MP) { DataManager instance = DataManager.Instance; GUIManager.Instance.HideUILock(EUILock.Battle); BATTLEINIT_RESULT battleinit_RESULT = (BATTLEINIT_RESULT)MP.ReadByte(-1); if (battleinit_RESULT == BATTLEINIT_RESULT.BATTLEINIT_RESULT_SUCCESS) { instance.BattleSeqID = MP.ReadULong(-1); byte b = MP.ReadByte(-1); ushort num = MP.ReadUShort(-1); byte b2 = MP.ReadByte(-1); ushort randomSeed = MP.ReadUShort(-1); byte randomGap = MP.ReadByte(-1); for (int i = 0; i < 5; i++) { instance.heroBattleData[i].HeroID = MP.ReadUShort(-1); } for (int j = 0; j < 5; j++) { instance.heroBattleData[j].AttrData.SkillLV1 = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.SkillLV2 = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.SkillLV3 = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.SkillLV4 = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.LV = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.Star = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.Enhance = MP.ReadByte(-1); instance.heroBattleData[j].AttrData.Equip = MP.ReadByte(-1); } instance.battleInfo.RandomSeed = randomSeed; instance.battleInfo.RandomGap = (ushort)randomGap; instance.battleInfo.BattleType = 6; BattleNetwork.SendBattleEndStatus = 0; GameManager.OnRefresh(NetworkNews.Refresh, null); if (!BattleNetwork.bReplay) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_BattleHeroSelect, 0, 0); } else { BattleNetwork.bReplay = false; GUIManager.Instance.pDVMgr.NextTransitions(eTrans.BEGIN, eTransFunc.BattleReplay); AudioManager.Instance.LoadAndPlayBGM(BGMType.War, 1, false); } } else if (!BattleNetwork.bReplay) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_BattleHeroSelect, 1, 0); uint id = (uint)((byte)660 + battleinit_RESULT); GUIManager.Instance.AddHUDMessage(instance.mStringTable.GetStringByID(id), 2, true); } else { BattleNetwork.bReplay = false; uint id2 = (uint)((byte)660 + battleinit_RESULT); GUIManager.Instance.AddHUDMessage(instance.mStringTable.GetStringByID(id2), 2, true); } }
// Token: 0x06000106 RID: 262 RVA: 0x00011AFC File Offset: 0x0000FCFC public void RecvUpdateAllianceWarMemberList(MessagePacket MP) { if (GUIManager.Instance.FindMenu(EGUIWindow.UI_AllianceWarRegister) == null) { return; } byte b = MP.ReadByte(-1); byte b2 = MP.ReadByte(-1); if (b == 0 || b2 == 0 || b > 100 || b2 > 100) { this.SendAllianceWarList(); return; } if (this.MyRank > 0) { if (b == this.MyRank) { this.MyRank = b2; } else if (b > b2) { if (b > this.MyRank && b2 <= this.MyRank) { this.MyRank += 1; } } else if (b < b2 && b2 >= this.MyRank && b < this.MyRank) { this.MyRank -= 1; } } b -= 1; b2 -= 1; int num = 0; AllianceWarManager._RegisterData[] data = this.GetData((int)b, ref num); if (data[num].Name == null) { return; } MP.ReadStringPlus(13, data[num].Name, -1); data[num].Power = MP.ReadULong(-1); if (b != b2) { this.MoveData((int)b, (int)b2); } GUIManager.Instance.UpdateUI(EGUIWindow.UI_AllianceWarRegister, 2, 0); }
// Token: 0x060012E5 RID: 4837 RVA: 0x0020F124 File Offset: 0x0020D324 public void Recv_MSG_RESP_AlliHunt_RANKDATA(MessagePacket MP) { byte b = MP.ReadByte(-1); if (b != 0) { return; } byte b2 = MP.ReadByte(-1); byte b3 = MP.ReadByte(-1); if (this.AlliHuntBoard == null) { this.AlliHuntBoard = new List <BoardUnit>(); } if ((b2 & 1) > 0) { this.AlliHuntBoard.Clear(); this.AlliHuntBoardUpdateTime = DataManager.Instance.ServerTime + 180L; this.MobiGroupAllianceID = DataManager.Instance.RoleAlliance.Id; } for (int i = 0; i < (int)b3; i++) { BoardUnit boardUnit = new BoardUnit(); MP.ReadStringPlus(13, boardUnit.Name, -1); boardUnit.Value = MP.ReadULong(-1); this.AlliHuntBoard.Add(boardUnit); } if (b2 >= 2) { this.AlliHuntBoard.Sort(new Comparison <BoardUnit>(LeaderBoardManager.BoardUnitSortByValue)); for (int j = 0; j < this.AlliHuntBoard.Count; j++) { if (DataManager.CompareStr(this.AlliHuntBoard[j].Name, DataManager.Instance.RoleAttr.Name) == 0) { this.AlliHuntRank = j + 1; } } GUIManager.Instance.UpdateUI(EGUIWindow.UI_AlliHuntBoard, 11, 0); } }
// Token: 0x060012E6 RID: 4838 RVA: 0x0020F270 File Offset: 0x0020D470 public void Recv_MSG_RESP_ALLIANCEWAR_RANK(MessagePacket MP) { byte b = MP.ReadByte(-1); if (b != 0) { return; } if (this.AllianceWarGroupBoard == null) { this.AllianceWarGroupBoard = new List <AllianceWarBroudUnit>(); } this.AllianceWarGroupBoard.Clear(); this.AllianceWarGroupRank = 0; this.AllianceWarGroupBoardUpdateTime = DataManager.Instance.ServerTime + 180L; this.MobiGroupAllianceID = DataManager.Instance.RoleAlliance.Id; this.AllianceWarGroupRankUpNum = MP.ReadByte(-1); this.AllianceWarGroupRankDownNum = MP.ReadByte(-1); this.AllianceWarGroupRankDownNum = 16 - this.AllianceWarGroupRankDownNum + 1; for (int i = 0; i < 16; i++) { uint num = MP.ReadUInt(-1); AllianceWarBroudUnit allianceWarBroudUnit = new AllianceWarBroudUnit(); allianceWarBroudUnit.AlliacneID = num; MP.ReadStringPlus(3, allianceWarBroudUnit.AllianceTag, -1); MP.ReadStringPlus(20, allianceWarBroudUnit.Name, -1); allianceWarBroudUnit.Score = (int)MP.ReadUShort(-1); allianceWarBroudUnit.Power = MP.ReadULong(-1); if (num != 0u) { this.AllianceWarGroupBoard.Add(allianceWarBroudUnit); if (allianceWarBroudUnit.AlliacneID == DataManager.Instance.RoleAlliance.Id) { this.AllianceWarGroupRank = this.AllianceWarGroupBoard.Count; } } } GUIManager.Instance.UpdateUI(EGUIWindow.UI_AlliVSGroupBoard, 0, 0); }
// Token: 0x06000105 RID: 261 RVA: 0x00011A58 File Offset: 0x0000FC58 public void RecvAllianceWarMemberList(MessagePacket MP) { byte b = MP.ReadByte(-1); int num = 0; for (byte b2 = 0; b2 < b; b2 += 1) { if (this.RecvCount == 100) { break; } AllianceWarManager._RegisterData[] data = this.GetData((int)this.RecvCount, ref num); if (num >= data.Length) { break; } data[num].Initial(); MP.ReadStringPlus(13, data[num].Name, -1); data[num].Power = MP.ReadULong(-1); this.RecvCount += 1; } }
// Token: 0x060012D8 RID: 4824 RVA: 0x0020E064 File Offset: 0x0020C264 public void Recv_MSG_RESP_ACTIVITY_AEVENT_PERSONAL_RANK(MessagePacket MP) { if (MP.ReadByte(-1) == 0) { byte b = MP.ReadByte(-1); byte b2 = MP.ReadByte(-1); if ((b & 1) > 0) { this.ClearBoard(7); this.MyRank[7] = 0; } for (int i = 0; i < (int)b2; i++) { BoardUnit boardUnit = new BoardUnit(); MP.ReadStringPlus(13, boardUnit.Name, -1); boardUnit.Value = MP.ReadULong(-1); boardUnit.AlliaceTag.Append(DataManager.Instance.RoleAlliance.Tag); this.Boards[7].Add(boardUnit); } if (b >= 2) { LeaderBoardManager.Instance.BoardUpdateTime[7] = DataManager.Instance.ServerTime + 43200L; this.Boards[7].Sort(new Comparison <BoardUnit>(LeaderBoardManager.BoardUnitSortByValue)); for (int j = 0; j < this.Boards[7].Count; j++) { if (DataManager.CompareStr(this.Boards[7][j].Name, DataManager.Instance.RoleAttr.Name) == 0) { this.MyRank[7] = (ushort)(j + 1); } } GUIManager.Instance.UpdateUI(EGUIWindow.UI_LeaderBoard, 3, 7); GUIManager.Instance.UpdateUI(EGUIWindow.UI_KingdomVSLBoard, 3, 7); GUIManager.Instance.UpdateUI(EGUIWindow.UI_KVKLBoard, 3, 7); } } }
// Token: 0x060012D6 RID: 4822 RVA: 0x0020D9C4 File Offset: 0x0020BBC4 public void Recv_MSG_RESP_BOARDCONTENT(MessagePacket MP) { byte b = MP.ReadByte(-1); byte b2 = MP.ReadByte(-1); ushort num = MP.ReadUShort(-1); long num2 = MP.ReadLong(-1); byte b3 = MP.ReadByte(-1); bool flag = false; if (b >= 19) { return; } if (b2 == 0) { flag = this.ClearBoard((int)b); this.BoardUpdateTime[(int)b] = num2; this.MyRank[(int)b] = num; if (GameConstants.IsBetween((int)b, 5, 7)) { this.BoardUpdateTime[(int)b] = DataManager.Instance.ServerTime + 43200L; } if (GameConstants.IsBetween((int)b, 12, 18)) { this.BoardUpdateTime[(int)b] = DataManager.Instance.ServerTime + 43200L; } } if (b2 > 0 && b2 != this.BoardRecived[(int)b] + 1) { return; } this.BoardRecived[(int)b] = b2; switch (b) { case 0: case 1: case 4: for (int i = 0; i < 20; i++) { BoardUnit boardUnit = new BoardUnit(); MP.ReadStringPlus(3, boardUnit.AlliaceTag, -1); MP.ReadStringPlus(13, boardUnit.Name, -1); boardUnit.Value = MP.ReadULong(-1); this.Boards[(int)b].Add(boardUnit); } break; case 2: case 3: for (int j = 0; j < 20; j++) { BoardUnitAlliance boardUnitAlliance = new BoardUnitAlliance(); MP.ReadStringPlus(3, boardUnitAlliance.AlliaceTag, -1); MP.ReadStringPlus(20, boardUnitAlliance.Name, -1); boardUnitAlliance.Value = MP.ReadULong(-1); boardUnitAlliance.AllianceID = MP.ReadUInt(-1); this.Boards[(int)b].Add(boardUnitAlliance); } break; case 5: case 12: for (int k = 0; k < 20; k++) { BoardUnitKingdom boardUnitKingdom = new BoardUnitKingdom(); boardUnitKingdom.KingdomID = MP.ReadUShort(-1); MP.ReadStringPlus(3, boardUnitKingdom.AlliaceTag, -1); MP.ReadStringPlus(13, boardUnitKingdom.Name, -1); boardUnitKingdom.KingKingdomID = MP.ReadUShort(-1); this.Boards[(int)b].Add(boardUnitKingdom); } break; case 6: case 13: for (int l = 0; l < 20; l++) { BoardUnitKingdomWarAlliance boardUnitKingdomWarAlliance = new BoardUnitKingdomWarAlliance(); boardUnitKingdomWarAlliance.KingdomID = MP.ReadUShort(-1); boardUnitKingdomWarAlliance.AllianceID = MP.ReadUInt(-1); MP.ReadStringPlus(3, boardUnitKingdomWarAlliance.AlliaceTag, -1); MP.ReadStringPlus(20, boardUnitKingdomWarAlliance.Name, -1); boardUnitKingdomWarAlliance.Value = MP.ReadULong(-1); this.Boards[(int)b].Add(boardUnitKingdomWarAlliance); } break; case 8: case 9: case 14: case 15: case 17: for (int m = 0; m < 20; m++) { WorldRankingBoardUnit worldRankingBoardUnit = new WorldRankingBoardUnit(); MP.ReadStringPlus(3, worldRankingBoardUnit.AlliaceTag, -1); MP.ReadStringPlus(13, worldRankingBoardUnit.Name, -1); worldRankingBoardUnit.Value = MP.ReadULong(-1); worldRankingBoardUnit.KingdomID = MP.ReadUShort(-1); this.Boards[(int)b].Add(worldRankingBoardUnit); } break; case 10: case 11: case 16: for (int n = 0; n < 20; n++) { WorldRankingBoardUnitAlliance worldRankingBoardUnitAlliance = new WorldRankingBoardUnitAlliance(); MP.ReadStringPlus(3, worldRankingBoardUnitAlliance.AlliaceTag, -1); MP.ReadStringPlus(20, worldRankingBoardUnitAlliance.Name, -1); worldRankingBoardUnitAlliance.Value = MP.ReadULong(-1); worldRankingBoardUnitAlliance.AllianceID = MP.ReadUInt(-1); worldRankingBoardUnitAlliance.KingdomID = MP.ReadUShort(-1); this.Boards[(int)b].Add(worldRankingBoardUnitAlliance); } break; } if (flag) { GUIManager.Instance.AddHUDMessage(DataManager.Instance.mStringTable.GetStringByID(8457u), 255, true); } if (b2 == 0) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_LeaderBoard, 4, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_KingdomVSLBoard, 4, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_KVKLBoard, 4, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallBoard, 4, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallKVKBoard, 4, (int)b); } else { GUIManager.Instance.UpdateUI(EGUIWindow.UI_LeaderBoard, 3, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_KingdomVSLBoard, 3, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_KVKLBoard, 3, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallBoard, 3, (int)b); GUIManager.Instance.UpdateUI(EGUIWindow.UI_FootBallKVKBoard, 3, (int)b); } }
// Token: 0x06000E11 RID: 3601 RVA: 0x00164910 File Offset: 0x00162B10 public static void RecvAllianceBattleStation(MessagePacket MP) { switch (MP.Protocol) { case Protocol._MSG_RESP_ALLIANCEWAR_LIVE_LEFTSIDE_LIST: { if (AllianceBattle.BattleRoyale.AutobotTag == null) { AllianceBattle.BattleRoyale.AutobotTag = StringManager.Instance.SpawnString(3); } MP.ReadStringPlus(3, AllianceBattle.BattleRoyale.AutobotTag, -1); AllianceBattle.BattleRoyale.CampAutobot = MP.ReadByte(-1); AllianceBattle.BattleRoyale.AutobotIcon = MP.ReadUShort(-1); AllianceBattle.BattleRoyale.AutobotPos = MP.ReadByte(-1); AllianceBattle.BattleRoyale.Autobots = MP.ReadByte(-1); ActivityManager.Instance.AllianceWarMgr.Initial(); int num = 0; while (num < (int)AllianceBattle.BattleRoyale.Autobots && num < ActivityManager.Instance.AllianceWarMgr.RegisterData.Length) { ActivityManager.Instance.AllianceWarMgr.RegisterData[(int)AllianceBattle.BattleRoyale.Autobots - num - 1].Initial(); MP.ReadStringPlus(13, ActivityManager.Instance.AllianceWarMgr.RegisterData[(int)AllianceBattle.BattleRoyale.Autobots - num - 1].Name, -1); ActivityManager.Instance.AllianceWarMgr.RegisterData[(int)AllianceBattle.BattleRoyale.Autobots - num - 1].Power = MP.ReadULong(-1); ActivityManager.Instance.AllianceWarMgr.RegisterData[(int)AllianceBattle.BattleRoyale.Autobots - num - 1].Head = MP.ReadUShort(-1); num++; } if (AllianceBattle.BattleRoyale.Autobots > 0 && AllianceBattle.BattleRoyale.AutobotPos > 0 && AllianceBattle.BattleRoyale.Autobots >= AllianceBattle.BattleRoyale.AutobotPos) { AllianceBattle.BattleRoyale.AutobotPos = AllianceBattle.BattleRoyale.Autobots - AllianceBattle.BattleRoyale.AutobotPos + 1; } break; } case Protocol._MSG_RESP_ALLIANCEWAR_LIVE_RIGHTSIDE_LIST: { if (AllianceBattle.BattleRoyale.DecepticonTag == null) { AllianceBattle.BattleRoyale.DecepticonTag = StringManager.Instance.SpawnString(3); } MP.ReadStringPlus(3, AllianceBattle.BattleRoyale.DecepticonTag, -1); AllianceBattle.BattleRoyale.CampDecepticon = MP.ReadByte(-1); AllianceBattle.BattleRoyale.DecepticonIcon = MP.ReadUShort(-1); AllianceBattle.BattleRoyale.DecepticonPos = MP.ReadByte(-1); AllianceBattle.BattleRoyale.Decepticons = MP.ReadByte(-1); ActivityManager.Instance.AllianceWarMgr.Initial(); int num2 = 0; while (num2 < (int)AllianceBattle.BattleRoyale.Decepticons && num2 < ActivityManager.Instance.AllianceWarMgr.WaitData.Length) { ActivityManager.Instance.AllianceWarMgr.WaitData[(int)AllianceBattle.BattleRoyale.Decepticons - num2 - 1].Initial(); MP.ReadStringPlus(13, ActivityManager.Instance.AllianceWarMgr.WaitData[(int)AllianceBattle.BattleRoyale.Decepticons - num2 - 1].Name, -1); ActivityManager.Instance.AllianceWarMgr.WaitData[(int)AllianceBattle.BattleRoyale.Decepticons - num2 - 1].Power = MP.ReadULong(-1); ActivityManager.Instance.AllianceWarMgr.WaitData[(int)AllianceBattle.BattleRoyale.Decepticons - num2 - 1].Head = MP.ReadUShort(-1); num2++; } if (AllianceBattle.BattleRoyale.Decepticons > 0 && AllianceBattle.BattleRoyale.DecepticonPos > 0 && AllianceBattle.BattleRoyale.Decepticons >= AllianceBattle.BattleRoyale.DecepticonPos) { AllianceBattle.BattleRoyale.DecepticonPos = AllianceBattle.BattleRoyale.Decepticons - AllianceBattle.BattleRoyale.DecepticonPos + 1; } break; } case Protocol._MSG_RESP_ALLIANCEWAR_LIVE_WAR_DETAIL: { if (AllianceBattle.BattleRoyale.CampAutobot > 0) { AllianceBattle.BattleRoyale.BattleSide = 1; } else if (AllianceBattle.BattleRoyale.CampDecepticon > 0) { AllianceBattle.BattleRoyale.BattleSide = 2; } else { AllianceBattle.BattleRoyale.BattleSide = 0; } if (AllianceBattle.BattleRoyale.AutobotPos > 0) { AllianceBattle.BattleRoyale.BattlePosition = AllianceBattle.BattleRoyale.AutobotPos; } else if (AllianceBattle.BattleRoyale.DecepticonPos > 0) { AllianceBattle.BattleRoyale.BattlePosition = AllianceBattle.BattleRoyale.DecepticonPos; } else { AllianceBattle.BattleRoyale.BattlePosition = 0; } byte b = MP.ReadByte(-1); AllianceBattle.BattleRoyale.OnLive = MP.ReadByte(-1); AllianceBattle.BattleRoyale.MatchID = MP.ReadByte(-1); AllianceBattle.BattleRoyale.GameRound = MP.ReadByte(-1); AllianceBattle.BattleRoyale.BattleMatchs = MP.ReadByte(-1); if (b == 0 || AllianceBattle.BattleRoyale.BattleMatch == null || AllianceBattle.BattleRoyale.BattleMatch.Length != (int)AllianceBattle.BattleRoyale.BattleMatchs) { AllianceBattle.BattleRoyale.BattleMatch = new AlliWarWarDetail[(int)AllianceBattle.BattleRoyale.BattleMatchs]; } for (int i = 0; i < AllianceBattle.BattleRoyale.BattleMatch.Length; i++) { if (b == 0) { AllianceBattle.BattleRoyale.BattleMatch[i].WinnerSide = MP.ReadByte(-1); AllianceBattle.BattleRoyale.BattleMatch[i].LeftSurvive = MP.ReadUInt(-1); AllianceBattle.BattleRoyale.BattleMatch[i].RightSurvive = MP.ReadUInt(-1); } else { AllianceBattle.BattleRoyale.BattleMatch[i].WinnerSide = MP.ReadByte(-1); AllianceBattle.BattleRoyale.BattleMatch[i].LeftDead = MP.ReadUInt(-1); AllianceBattle.BattleRoyale.BattleMatch[i].RightDead = MP.ReadUInt(-1); } } if (AllianceBattle.BattleRoyale.OnLive > 0) { AllianceBattle.BattleRoyale.BeginTime = ActivityManager.Instance.AW_RoundBeginTime; } if (b == 1) { ActivityManager.Instance.AW_bcalculateEnd = true; GUIManager.Instance.HideUILock(EUILock.Activity); Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (door) { ActivityManager.Instance.AllianceWarReopenCheck(); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_AllianceWarBattle)) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_AllianceWarBattle, 4, 0); } else { door.OpenMenu(EGUIWindow.UI_AllianceWarBattle, 0, 0, true); } } } break; } case Protocol._MSG_RESP_ALLIANCEWAR_REPLAY_LEFTSIDE_LIST: { if (AllianceBattle.BattleRoyaleView.AutobotTag == null) { AllianceBattle.BattleRoyaleView.AutobotTag = StringManager.Instance.SpawnString(3); } if (AllianceBattle.BattleRoyaleView.Autobot == null) { AllianceBattle.BattleRoyaleView.Autobot = new AllianceWarManager._RegisterData[80]; } MP.ReadStringPlus(3, AllianceBattle.BattleRoyaleView.AutobotTag, -1); AllianceBattle.BattleRoyaleView.CampAutobot = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.AutobotIcon = MP.ReadUShort(-1); AllianceBattle.BattleRoyaleView.AutobotPos = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.Autobots = Math.Min(MP.ReadByte(-1), (byte)AllianceBattle.BattleRoyaleView.Autobot.Length); int num3 = 0; while (num3 < (int)AllianceBattle.BattleRoyaleView.Autobots && num3 < AllianceBattle.BattleRoyaleView.Autobot.Length) { AllianceBattle.BattleRoyaleView.Autobot[(int)AllianceBattle.BattleRoyaleView.Autobots - num3 - 1].Initial(); MP.ReadStringPlus(13, AllianceBattle.BattleRoyaleView.Autobot[(int)AllianceBattle.BattleRoyaleView.Autobots - num3 - 1].Name, -1); AllianceBattle.BattleRoyaleView.Autobot[(int)AllianceBattle.BattleRoyaleView.Autobots - num3 - 1].Power = MP.ReadULong(-1); AllianceBattle.BattleRoyaleView.Autobot[(int)AllianceBattle.BattleRoyaleView.Autobots - num3 - 1].Head = MP.ReadUShort(-1); num3++; } if (AllianceBattle.BattleRoyaleView.Autobots > 0 && AllianceBattle.BattleRoyaleView.AutobotPos > 0 && AllianceBattle.BattleRoyaleView.Autobots >= AllianceBattle.BattleRoyaleView.AutobotPos) { AllianceBattle.BattleRoyaleView.AutobotPos = AllianceBattle.BattleRoyaleView.Autobots - AllianceBattle.BattleRoyaleView.AutobotPos + 1; } break; } case Protocol._MSG_RESP_ALLIANCEWAR_REPLAY_RIGHTSIDE_LIST: { if (AllianceBattle.BattleRoyaleView.DecepticonTag == null) { AllianceBattle.BattleRoyaleView.DecepticonTag = StringManager.Instance.SpawnString(3); } if (AllianceBattle.BattleRoyaleView.Decepticon == null) { AllianceBattle.BattleRoyaleView.Decepticon = new AllianceWarManager._RegisterData[80]; } MP.ReadStringPlus(3, AllianceBattle.BattleRoyaleView.DecepticonTag, -1); AllianceBattle.BattleRoyaleView.CampDecepticon = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.DecepticonIcon = MP.ReadUShort(-1); AllianceBattle.BattleRoyaleView.DecepticonPos = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.Decepticons = Math.Min(MP.ReadByte(-1), (byte)AllianceBattle.BattleRoyaleView.Decepticon.Length); int num4 = 0; while (num4 < (int)AllianceBattle.BattleRoyaleView.Decepticons && num4 < AllianceBattle.BattleRoyaleView.Decepticon.Length) { AllianceBattle.BattleRoyaleView.Decepticon[(int)AllianceBattle.BattleRoyaleView.Decepticons - num4 - 1].Initial(); MP.ReadStringPlus(13, AllianceBattle.BattleRoyaleView.Decepticon[(int)AllianceBattle.BattleRoyaleView.Decepticons - num4 - 1].Name, -1); AllianceBattle.BattleRoyaleView.Decepticon[(int)AllianceBattle.BattleRoyaleView.Decepticons - num4 - 1].Power = MP.ReadULong(-1); AllianceBattle.BattleRoyaleView.Decepticon[(int)AllianceBattle.BattleRoyaleView.Decepticons - num4 - 1].Head = MP.ReadUShort(-1); num4++; } if (AllianceBattle.BattleRoyaleView.Decepticons > 0 && AllianceBattle.BattleRoyaleView.DecepticonPos > 0 && AllianceBattle.BattleRoyaleView.Decepticons >= AllianceBattle.BattleRoyaleView.DecepticonPos) { AllianceBattle.BattleRoyaleView.DecepticonPos = AllianceBattle.BattleRoyaleView.Decepticons - AllianceBattle.BattleRoyaleView.DecepticonPos + 1; } break; } case Protocol._MSG_RESP_ALLIANCEWAR_REPLAY_WAR_DETAIL: { if (AllianceBattle.BattleRoyaleView.CampAutobot > 0) { AllianceBattle.BattleRoyaleView.BattleSide = 1; } else if (AllianceBattle.BattleRoyaleView.CampDecepticon > 0) { AllianceBattle.BattleRoyaleView.BattleSide = 2; } else { AllianceBattle.BattleRoyaleView.BattleSide = 0; } if (AllianceBattle.BattleRoyaleView.AutobotPos > 0) { AllianceBattle.BattleRoyaleView.BattlePosition = AllianceBattle.BattleRoyaleView.AutobotPos; } else if (AllianceBattle.BattleRoyaleView.DecepticonPos > 0) { AllianceBattle.BattleRoyaleView.BattlePosition = AllianceBattle.BattleRoyaleView.DecepticonPos; } else { AllianceBattle.BattleRoyaleView.BattlePosition = 0; } byte b2 = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.OnLive = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.MatchID = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.GameRound = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.BattleMatchs = MP.ReadByte(-1); if (b2 == 0 || AllianceBattle.BattleRoyaleView.BattleMatch == null || AllianceBattle.BattleRoyaleView.BattleMatch.Length != (int)AllianceBattle.BattleRoyaleView.BattleMatchs) { AllianceBattle.BattleRoyaleView.BattleMatch = new AlliWarWarDetail[(int)AllianceBattle.BattleRoyaleView.BattleMatchs]; } for (int j = 0; j < AllianceBattle.BattleRoyaleView.BattleMatch.Length; j++) { if (b2 == 0) { AllianceBattle.BattleRoyaleView.BattleMatch[j].WinnerSide = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.BattleMatch[j].LeftSurvive = MP.ReadUInt(-1); AllianceBattle.BattleRoyaleView.BattleMatch[j].RightSurvive = MP.ReadUInt(-1); } else { AllianceBattle.BattleRoyaleView.BattleMatch[j].WinnerSide = MP.ReadByte(-1); AllianceBattle.BattleRoyaleView.BattleMatch[j].LeftDead = MP.ReadUInt(-1); AllianceBattle.BattleRoyaleView.BattleMatch[j].RightDead = MP.ReadUInt(-1); } } if (AllianceBattle.BattleRoyaleView.OnLive > 0) { AllianceBattle.BattleRoyaleView.BeginTime = ActivityManager.Instance.AW_RoundBeginTime; } if (b2 == 1) { GUIManager.Instance.HideUILock(EUILock.Activity); Door door2 = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; if (door2) { ActivityManager.Instance.AllianceWarReopenCheck(); UIAllianceWarBattle.ResetMatchID(); if (GUIManager.Instance.FindMenu(EGUIWindow.UI_AllianceWarBattle)) { GUIManager.Instance.UpdateUI(EGUIWindow.UI_AllianceWarBattle, 4, 0); } else { door2.OpenMenu(EGUIWindow.UI_AllianceWarBattle, 0, 1, true); } } } break; } } }