Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.44 KB | None | 0 0
  1. بدل الكود دا اللي في ملف الجيلد وار
  2. ________________________________________
  3. public static void End()
  4. {
  5. if (PoleKeeper != null)
  6. {
  7. Kernel.SendWorldMessage(new Message("The guild, " + PoleKeeper.Name + ", Owned by " + PoleKeeper.LeaderName + " has won this Super guild war round!", System.Drawing.Color.White, Message.Center), Server.GamePool);
  8. }
  9. else
  10. {
  11. Kernel.SendWorldMessage(new Message("It is generald pardon time. You have 5 minutes to leave, run for your life!", System.Drawing.Color.Red, Message.Center), Server.GamePool);
  12. }
  13. IsWar = false;
  14. UpdatePole(Pole);
  15. foreach (var client in Server.GamePool)
  16. {
  17. client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.TopDeputyLeader);
  18. client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.TopGuildLeader);
  19. }
  20. //foreach (var pclient in Kernel.GamePool.Values)
  21. //{
  22. // try
  23. // {
  24. // if (pclient.Guild.PoleKeeper)
  25. // {
  26. // if (pclient.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)
  27. // {
  28. // pclient.Entity.ConquerPoints += (int)50000000;
  29. // pclient.Union.UnionFund += 100;
  30. // pclient.Inventory.Add(723467, 0, 1);
  31. // pclient.Inventory.Add(720020, 0, 0, 0, 0, 0, 7, 1, true);
  32. // pclient.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopGuildLeader, DateTime.Now.AddDays(7));
  33. // Kernel.SendWorldMessage(new Message("Congratulation! " + pclient.Entity.Name + " Leader " + pclient.Guild.PoleKeeper + " The Winner Has Claimed the Prize GuildWar!", Message.Center), Server.GamePool);
  34. // }
  35. // if (pclient.AsMember.Rank == Enums.GuildMemberRank.LeaderSpouse)
  36. // {
  37. // pclient.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopGuildLeader, DateTime.Now.AddDays(7));
  38. // }
  39. // if (pclient.AsMember.Rank == Enums.GuildMemberRank.DeputyLeader || pclient.AsMember.Rank == Enums.GuildMemberRank.DLeaderSpouse)
  40. // {
  41. // pclient.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopDeputyLeader, DateTime.Now.AddDays(7));
  42. // }
  43. // }
  44. //}
  45. //catch
  46. //{
  47.  
  48. //}
  49. //}
  50. }
  51. _____________________
  52. وضيف دول تحتية
  53. ______________________
  54. public static bool Claim
  55. {
  56. get { return Server.Vars["gwclaim"]; }
  57. set { Server.Vars["gwclaim"] = value; }
  58. }
  59. public static uint KeeperID
  60. {
  61. get { return Server.Vars["gwkeeperid"]; }
  62. set { Server.Vars["gwkeeperid"] = value; }
  63. }
  64. ____________________________________________________
  65. وبدل دا بالان بي سي
  66. _____________________________________________________
  67.  
  68. #region ClaimGuildPrize
  69. case 4482114:
  70. {
  71. if (DateTime.Now.DayOfWeek == DayOfWeek.Friday)
  72. {
  73. switch (npcRequest.OptionID)
  74. {
  75. case 0:
  76. {
  77. dialog.Text("Hello there. Do you want to Claim GuildWar Prize you can only Claim it 1 Time if you won GW.");
  78. dialog.Option("Leme Claim.", 1);
  79. dialog.Option("Claim TopDeputyLeader.", 3);
  80. dialog.Option("Just Passing By!", 255);
  81. dialog.Send();
  82. break;
  83. }
  84. case 1:
  85. {
  86. if (client.Guild != null)
  87. {
  88. if (client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)
  89. {
  90. dialog.Text("Are you sure you want to Claim your Prize?");
  91. dialog.Option("Yes.", 2);
  92. dialog.Option("Ah, nevermind.", 255);
  93. dialog.Send();
  94. }
  95. else
  96. {
  97. dialog.Text("Sorry only GuildLeader of the Winner Guild can Claim The Prize After GuildWar End.");
  98. dialog.Option("Ahh.", 255);
  99. dialog.Send();
  100. }
  101. }
  102. else
  103. {
  104. dialog.Text("Sorry You are not Member in any guild yet");
  105. dialog.Option("Ahh.", 255);
  106. dialog.Send();
  107. }
  108. break;
  109. }
  110. case 2:
  111. {
  112. if (DateTime.Now.DayOfWeek == DayOfWeek.Friday && DateTime.Now.Hour <= 21 && !GuildWar.IsWar && GuildWar.Claim && client.Guild != null && client.Entity.GuildID == GuildWar.KeeperID && client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.GuildLeader)
  113. {
  114. Server.AddWarLog("GuildWar", "500000", client.Entity.Name);
  115. GuildWar.Claim = false;
  116. GuildWar.KeeperID = 0;
  117. ClassPk.AddGl();
  118. client.Inventory.Add(723467, 0, 0, 0, 0, 0, 0, 1, false);
  119. client.Inventory.Add(720020, 0, 0, 0, 0, 0, 7, 1, true);
  120. client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopGuildLeader, DateTime.Now.AddDays(7));
  121. }
  122. else
  123. {
  124. dialog.Text("Sorry you dont have Any Prize to claim only GL of the winner guild can claim Prize After GW");
  125. dialog.Option("Ahh.", 255);
  126. dialog.Send();
  127. }
  128. break;
  129. }
  130. case 3:
  131. {
  132. if (client.Guild != null)
  133. {
  134. if (client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Enums.GuildMemberRank.DeputyLeader)
  135. {
  136. dialog.Text("Are you sure you want to Claim your Prize?");
  137. dialog.Option("Yes.", 4);
  138. dialog.Option("Ah, nevermind.", 255);
  139. dialog.Send();
  140. }
  141. else
  142. {
  143. dialog.Text("Sorry only DeputyLeader of the Winner Guild can Claim The Prize After GuildWar End.");
  144. dialog.Option("Ahh.", 255);
  145. dialog.Send();
  146. }
  147. }
  148. else
  149. {
  150. dialog.Text("Sorry You are not Member in any guild yet");
  151. dialog.Option("Ahh.", 255);
  152. dialog.Send();
  153. }
  154. break;
  155. }
  156. case 4:
  157. {
  158. if (DateTime.Now.DayOfWeek == DayOfWeek.Friday)
  159. {
  160. if (DateTime.Now.Hour <= 21 && !GuildWar.IsWar && client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader && ClassPk.TopDlClaim <= 8)
  161. {
  162. ClassPk.AddDl();
  163. client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopDeputyLeader, DateTime.Now.AddDays(7));
  164. Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " From " + client.Guild.PoleKeeper + " Has Claimed TopDeputyLeader Halo!", System.Drawing.Color.White, Message.TopLeft), Server.GamePool);
  165. }
  166. else
  167. {
  168. dialog.Text("Sorry you dont have Any Prize to claim only Dl of the Winner Guild Can claim the halo After GW end.");
  169. dialog.Option("Ahh.", 255);
  170. dialog.Send();
  171. }
  172. }
  173. break;
  174. }
  175. }
  176. }
  177. break;
  178. }
  179. #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement