Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- بدل الكود دا اللي في ملف الجيلد وار
- ________________________________________
- public static void End()
- {
- if (PoleKeeper != null)
- {
- 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);
- }
- else
- {
- 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);
- }
- IsWar = false;
- UpdatePole(Pole);
- foreach (var client in Server.GamePool)
- {
- client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.TopDeputyLeader);
- client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags.TopGuildLeader);
- }
- //foreach (var pclient in Kernel.GamePool.Values)
- //{
- // try
- // {
- // if (pclient.Guild.PoleKeeper)
- // {
- // if (pclient.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)
- // {
- // pclient.Entity.ConquerPoints += (int)50000000;
- // pclient.Union.UnionFund += 100;
- // pclient.Inventory.Add(723467, 0, 1);
- // pclient.Inventory.Add(720020, 0, 0, 0, 0, 0, 7, 1, true);
- // pclient.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopGuildLeader, DateTime.Now.AddDays(7));
- // Kernel.SendWorldMessage(new Message("Congratulation! " + pclient.Entity.Name + " Leader " + pclient.Guild.PoleKeeper + " The Winner Has Claimed the Prize GuildWar!", Message.Center), Server.GamePool);
- // }
- // if (pclient.AsMember.Rank == Enums.GuildMemberRank.LeaderSpouse)
- // {
- // pclient.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopGuildLeader, DateTime.Now.AddDays(7));
- // }
- // if (pclient.AsMember.Rank == Enums.GuildMemberRank.DeputyLeader || pclient.AsMember.Rank == Enums.GuildMemberRank.DLeaderSpouse)
- // {
- // pclient.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopDeputyLeader, DateTime.Now.AddDays(7));
- // }
- // }
- //}
- //catch
- //{
- //}
- //}
- }
- _____________________
- وضيف دول تحتية
- ______________________
- public static bool Claim
- {
- get { return Server.Vars["gwclaim"]; }
- set { Server.Vars["gwclaim"] = value; }
- }
- public static uint KeeperID
- {
- get { return Server.Vars["gwkeeperid"]; }
- set { Server.Vars["gwkeeperid"] = value; }
- }
- ____________________________________________________
- وبدل دا بالان بي سي
- _____________________________________________________
- #region ClaimGuildPrize
- case 4482114:
- {
- if (DateTime.Now.DayOfWeek == DayOfWeek.Friday)
- {
- switch (npcRequest.OptionID)
- {
- case 0:
- {
- dialog.Text("Hello there. Do you want to Claim GuildWar Prize you can only Claim it 1 Time if you won GW.");
- dialog.Option("Leme Claim.", 1);
- dialog.Option("Claim TopDeputyLeader.", 3);
- dialog.Option("Just Passing By!", 255);
- dialog.Send();
- break;
- }
- case 1:
- {
- if (client.Guild != null)
- {
- if (client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Enums.GuildMemberRank.GuildLeader)
- {
- dialog.Text("Are you sure you want to Claim your Prize?");
- dialog.Option("Yes.", 2);
- dialog.Option("Ah, nevermind.", 255);
- dialog.Send();
- }
- else
- {
- dialog.Text("Sorry only GuildLeader of the Winner Guild can Claim The Prize After GuildWar End.");
- dialog.Option("Ahh.", 255);
- dialog.Send();
- }
- }
- else
- {
- dialog.Text("Sorry You are not Member in any guild yet");
- dialog.Option("Ahh.", 255);
- dialog.Send();
- }
- break;
- }
- case 2:
- {
- 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)
- {
- Server.AddWarLog("GuildWar", "500000", client.Entity.Name);
- GuildWar.Claim = false;
- GuildWar.KeeperID = 0;
- ClassPk.AddGl();
- client.Inventory.Add(723467, 0, 0, 0, 0, 0, 0, 1, false);
- client.Inventory.Add(720020, 0, 0, 0, 0, 0, 7, 1, true);
- client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopGuildLeader, DateTime.Now.AddDays(7));
- }
- else
- {
- dialog.Text("Sorry you dont have Any Prize to claim only GL of the winner guild can claim Prize After GW");
- dialog.Option("Ahh.", 255);
- dialog.Send();
- }
- break;
- }
- case 3:
- {
- if (client.Guild != null)
- {
- if (client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Enums.GuildMemberRank.DeputyLeader)
- {
- dialog.Text("Are you sure you want to Claim your Prize?");
- dialog.Option("Yes.", 4);
- dialog.Option("Ah, nevermind.", 255);
- dialog.Send();
- }
- else
- {
- dialog.Text("Sorry only DeputyLeader of the Winner Guild can Claim The Prize After GuildWar End.");
- dialog.Option("Ahh.", 255);
- dialog.Send();
- }
- }
- else
- {
- dialog.Text("Sorry You are not Member in any guild yet");
- dialog.Option("Ahh.", 255);
- dialog.Send();
- }
- break;
- }
- case 4:
- {
- if (DateTime.Now.DayOfWeek == DayOfWeek.Friday)
- {
- if (DateTime.Now.Hour <= 21 && !GuildWar.IsWar && client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader && ClassPk.TopDlClaim <= 8)
- {
- ClassPk.AddDl();
- client.Entity.AddTopStatus((ulong)FlagsUpdate.Flags.TopDeputyLeader, DateTime.Now.AddDays(7));
- Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " From " + client.Guild.PoleKeeper + " Has Claimed TopDeputyLeader Halo!", System.Drawing.Color.White, Message.TopLeft), Server.GamePool);
- }
- else
- {
- dialog.Text("Sorry you dont have Any Prize to claim only Dl of the Winner Guild Can claim the halo After GW end.");
- dialog.Option("Ahh.", 255);
- dialog.Send();
- }
- }
- break;
- }
- }
- }
- break;
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement