#region GuildPrize By xRage
case 1231239:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Heri Bro I'm LegendCo Choose You Wanna To Do, So What brought?");
dialog.Option("I Want Prize Of GuildWar", 4);
dialog.Option("1 Lordtoken for SilverPrize", 1);
dialog.Option("2 Lordtoken for GoldTrophy", 2);
dialog.Option("3 Lordtoken for GoldPrize", 3);
dialog.Option("Has not brought anything.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(723467, 1))
{
client.Inventory.Remove(723467, 1);
client.Inventory.Add(2100065, 0, 1);
dialog.Text("You have Get SilverPrize");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't have 1 LordToken");
dialog.Option("Ahh sorry.", 255);
}
break;
}
case 2:
{
if (client.Inventory.Contains(723467, 2))
{
client.Inventory.Remove(723467, 2);
client.Inventory.Add(2100085, 0, 1);
dialog.Text("You have Get GoldTrophy");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't have 2 Lord token");
dialog.Option("Ahh sorry.", 255);
}
break;
}
case 3:
{
if (client.Inventory.Contains(723467, 1))
{
client.Inventory.Remove(723467, 3);
client.Inventory.Add(2100075, 0, 1);
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " won three guilds wars and won a GoldPrize", System.Drawing.Color.White, Message.Center), Program.GamePool);
dialog.Text("You have Get GoldPrize");
dialog.Option("Thanks.", 255);
dialog.Send();
}
else
{
dialog.Text("You don't have 3 Lord token");
dialog.Option("Ahh sorry.", 255);
}
break;
}
case 4:
{
dialog.Text("Your guild won the GuildWar? so, you're rewarded with CPs and top special.");
dialog.Option("GuildLeader", 5);
dialog.Option("DeputyLeader", 7);
dialog.Send();
break;
}
case 5:
{
if (!GuildWar.IsWar && GuildWar.Claim && client.Guild != null && client.Entity.GuildID == GuildWar.KeeperID && client.Entity.GuildRank == (ushort)Game.Enums.GuildMemberRank.GuildLeader && ClassPk.TopGlClaim == 0)
{
//#warning GUILD WAR PRIZE
Program.AddWarLog("GuildWar", "" + rates.GuildWar + "", client.Entity.Name);//TQ
GuildWar.Claim = false;
GuildWar.KeeperID = 0;
client.Entity.ConquerPoints += rates.GuildWar;
ClassPk.AddGl();//TQ
client.Inventory.Add(723467, 0, 1);
Game.Flags.AddGuildLeader(client);
client.Entity.AddFlag(Update.Flags.TopGuildLeader);
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " Leader of " + client.Guild.PoleKeeper + " The winner guild has Claimed Guild War Prize " + rates.GuildWar + " cps and LordToken!", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
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 6:
{
if (client.Guild != null)
{
if (client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader)
{
dialog.Text("Are you sure you want to Claim your Prize?");
dialog.Option("Yes.", 7);
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 7:
{
//if (DateTime.Now.DayOfWeek == DayOfWeek.Sunday)
// {
if (!GuildWar.IsWar && client.Guild.PoleKeeper && client.Guild != null && client.AsMember.Rank == Game.Enums.GuildMemberRank.DeputyLeader && ClassPk.TopDlClaim < 5)
{
ClassPk.AddDl();
client.Entity.AddFlag(Update.Flags.TopDeputyLeader);
Kernel.SendWorldMessage(new Message("Congratulations! " + client.Entity.Name + " From " + client.Guild.PoleKeeper + " Has Claimed TopDeputyLeader Halo!", System.Drawing.Color.White, Message.TopLeft), Program.GamePool);
if (ClassPk.TopDlClaim == 1)
{
Game.Flags.AddGuildDeaputy(client);
}
if (ClassPk.TopDlClaim == 2)
{
Game.Flags.AddGuildDeaputy2(client);
}
if (ClassPk.TopDlClaim == 3)
{
Game.Flags.AddGuildDeaputy3(client);
}
if (ClassPk.TopDlClaim == 4)
{
Game.Flags.AddGuildDeaputy4(client);
}
if (ClassPk.TopDlClaim == 5)
{
Game.Flags.AddGuildDeaputy5(client);
}
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