XConquer

Mieldapura

Oct 21st, 2019
95
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //public static void GiveClientReward(Client.GameState client)
  2. //{
  3. // DateTime timer = new DateTime();
  4. // timer = DateTime.Now.AddDays(1);
  5. // bool ReceiveHightRward = false;
  6. // //for (int i = 0; i < EPK_Lvl130Plus+1; i++)
  7. // //{
  8. // // var Tops = Tournaments[i].Top8;
  9. // // if (Tops != null)
  10. // // {
  11. // // for (ushort x = 0; x < Tops.Length; x++)
  12. // // {
  13. // // if (Tops[x] != null)
  14. // // {
  15. // // var obj_client = Tops[x];
  16. // // if (obj_client.UID == client.Entity.UID)
  17. // // {
  18. // // //الاكونت في التوب
  19.  
  20. // // }
  21. // // }
  22. // // }
  23. // // }
  24. // //}
  25. // var BigRewaurdDictionary = Tournaments[EPK_Lvl130Plus].Top8;
  26. // if (BigRewaurdDictionary != null)
  27. // {
  28. // sbyte client_rank = -1;
  29. // for (ushort x = 0; x < BigRewaurdDictionary.Length; x++)
  30. // {
  31. // if (BigRewaurdDictionary[x] != null)
  32. // {
  33. // var obj_client = BigRewaurdDictionary[x];
  34. // if (obj_client.UID == client.Entity.UID)
  35. // client_rank = (sbyte)x;
  36. // }
  37. // }
  38. // if (client_rank != -1)
  39. // {
  40. // ReceiveHightRward = true;
  41.  
  42. // if (client_rank == 0)
  43. // {
  44. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePKChamption_High))
  45. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePKChamption_High, timer, true);
  46.  
  47. // var EliteSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_High;
  48. // var EliteThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_High;
  49. // var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low;
  50. // if (client.Entity.Titles.ContainsKey(EliteSecond))
  51. // client.Entity.RemoveTopStatus((ulong)EliteSecond);
  52. // if (client.Entity.Titles.ContainsKey(EliteThird))
  53. // client.Entity.RemoveTopStatus((ulong)EliteThird);
  54. // if (client.Entity.Titles.ContainsKey(EliteEight))
  55. // client.Entity.RemoveTopStatus((ulong)EliteEight);
  56. // }
  57. // else if (client_rank == 1)
  58. // {
  59. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_High))
  60. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_High, timer, true);
  61.  
  62. // var EliteChampion = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_High;
  63. // var EliteThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_High;
  64. // var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low;
  65. // if (client.Entity.Titles.ContainsKey(EliteChampion))
  66. // client.Entity.RemoveTopStatus((ulong)EliteChampion);
  67. // if (client.Entity.Titles.ContainsKey(EliteThird))
  68. // client.Entity.RemoveTopStatus((ulong)EliteThird);
  69. // if (client.Entity.Titles.ContainsKey(EliteEight))
  70. // client.Entity.RemoveTopStatus((ulong)EliteEight);
  71. // }
  72. // else if (client_rank == 2)
  73. // {
  74. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_High))
  75. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_High, timer, true);
  76.  
  77. // var EliteChampion = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_High;
  78. // var EliteSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_High;
  79. // var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low;
  80. // if (client.Entity.Titles.ContainsKey(EliteChampion))
  81. // client.Entity.RemoveTopStatus((ulong)EliteChampion);
  82. // if (client.Entity.Titles.ContainsKey(EliteSecond))
  83. // client.Entity.RemoveTopStatus((ulong)EliteSecond);
  84. // if (client.Entity.Titles.ContainsKey(EliteEight))
  85. // client.Entity.RemoveTopStatus((ulong)EliteEight);
  86. // }
  87. // else
  88. // {
  89. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_High))
  90. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_High, timer, true);
  91.  
  92. // var EliteChampion = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_High;
  93. // var EliteSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_High;
  94. // var EliteThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_High;
  95. // if (client.Entity.Titles.ContainsKey(EliteChampion))
  96. // client.Entity.RemoveTopStatus((ulong)EliteChampion);
  97. // if (client.Entity.Titles.ContainsKey(EliteSecond))
  98. // client.Entity.RemoveTopStatus((ulong)EliteSecond);
  99. // if (client.Entity.Titles.ContainsKey(EliteThird))
  100. // client.Entity.RemoveTopStatus((ulong)EliteThird);
  101. // }
  102. // }
  103.  
  104. // }
  105. // if (!ReceiveHightRward)
  106. // {
  107. // sbyte client_rank = -1;
  108. // for (byte i = 0; i < EPK_Lvl130Plus; i++)
  109. // {
  110. // var ditionaryLow = Tournaments[i].Top8;
  111. // if (ditionaryLow != null)
  112. // {
  113. // for (byte x = 0; x < ditionaryLow.Length; x++)
  114. // {
  115. // if (ditionaryLow[x] != null)
  116. // {
  117. // var obj = ditionaryLow[x];
  118. // if (obj.UID == client.Entity.UID)
  119. // client_rank = (sbyte)x;
  120. // }
  121. // }
  122. // if (client_rank != -1)
  123. // {
  124.  
  125. // if (client_rank == 0)
  126. // {
  127. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low))
  128. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low, timer, true);
  129.  
  130. // var EliteEightSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_Low;
  131. // var EliteEightThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_Low;
  132. // var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_Low;
  133. // if (client.Entity.Titles.ContainsKey(EliteEightSecond))
  134. // client.Entity.RemoveTopStatus((ulong)EliteEightSecond);
  135. // if (client.Entity.Titles.ContainsKey(EliteEightThird))
  136. // client.Entity.RemoveTopStatus((ulong)EliteEightThird);
  137. // if (client.Entity.Titles.ContainsKey(EliteEight))
  138. // client.Entity.RemoveTopStatus((ulong)EliteEight);
  139. // }
  140. // else if (client_rank == 1)
  141. // {
  142. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_Low))
  143. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_Low, timer, true);
  144.  
  145. // var EliteEightChampion = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low;
  146. // var EliteEightThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_Low;
  147. // var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_Low;
  148. // if (client.Entity.Titles.ContainsKey(EliteEightChampion))
  149. // client.Entity.RemoveTopStatus((ulong)EliteEightChampion);
  150. // if (client.Entity.Titles.ContainsKey(EliteEightThird))
  151. // client.Entity.RemoveTopStatus((ulong)EliteEightThird);
  152. // if (client.Entity.Titles.ContainsKey(EliteEight))
  153. // client.Entity.RemoveTopStatus((ulong)EliteEight);
  154. // }
  155. // else if (client_rank == 2)
  156. // {
  157. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_Low))
  158. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_Low, timer, true);
  159.  
  160. // var EliteEightChampion = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low;
  161. // var EliteEightSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_Low;
  162. // var EliteEight = Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_Low;
  163. // if (client.Entity.Titles.ContainsKey(EliteEightChampion))
  164. // client.Entity.RemoveTopStatus((ulong)EliteEightChampion);
  165. // if (client.Entity.Titles.ContainsKey(EliteEightSecond))
  166. // client.Entity.RemoveTopStatus((ulong)EliteEightSecond);
  167. // if (client.Entity.Titles.ContainsKey(EliteEight))
  168. // client.Entity.RemoveTopStatus((ulong)EliteEight);
  169. // }
  170. // else
  171. // {
  172. // if (!client.Entity.Titles.ContainsKey(Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_Low))
  173. // client.Entity.AddTopStatus((ulong)Network.GamePackets.TitlePacket.Titles.ElitePKTopEight_Low, timer, true);
  174.  
  175. // var EliteEightChampion = Network.GamePackets.TitlePacket.Titles.ElitePKChamption_Low;
  176. // var EliteEightSecond = Network.GamePackets.TitlePacket.Titles.ElitePK2ndPlace_Low;
  177. // var EliteEightThird = Network.GamePackets.TitlePacket.Titles.ElitePK3ndPlace_Low;
  178. // if (client.Entity.Titles.ContainsKey(EliteEightChampion))
  179. // client.Entity.RemoveTopStatus((ulong)EliteEightChampion);
  180. // if (client.Entity.Titles.ContainsKey(EliteEightSecond))
  181. // client.Entity.RemoveTopStatus((ulong)EliteEightSecond);
  182. // if (client.Entity.Titles.ContainsKey(EliteEightThird))
  183. // client.Entity.RemoveTopStatus((ulong)EliteEightThird);
  184. // } break;
  185. // }
  186. // }
  187. // }
  188. // }
  189. //}
RAW Paste Data