body2020
2020-04-28, 06:06 PM
انا عاوز اخلى ال elite guild war تفتح مره واحد بدل ما بتشتغل كل ساعه اعمل كدا ازاى؟
دا الكود بتاعها
#region EliteGw
case 115522:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to Join Elite GW?.");
dialog.Text("or claim the Prize?, you can join At xx:44 to xx:59 In All Days Excpt Friday.");
dialog.Text("and the winner Guild Leader will get [500k] ConquerPoints after it finish u have 5 minutes to claim?.");
dialog.Option("Join Elite GW!", 1);
dialog.Option("Claim Prize.", 5);
dialog.Send();
break;
}
case 1:
{
if (EliteGuildWar.IsWar)
{
client.Player.Teleport(2071, 47, 131);
}
else
{
dialog.Text(" The war is not held now you can join At [xx:44 to xx:59] In All Days Excpt Friday.");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
case 5:
{
if (!EliteGuildWar.IsWar)
{
if (client.Guild != null)
{
if (EliteGuildWar.KeeperID != 0)
{
if (EliteGuildWar.Claim && client.AsMember.Rank == Game.Enums.GuildMemberRank.GuildLeader && client.Guild.ID == EliteGuildWar.KeeperID)
{
EliteGuildWar.Claim = false;
EliteGuildWar.KeeperID = 0;
Pirates.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [250k] ConquerPoints for winning the Elite GuildWar.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.ConquerPoints += 250000;
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
client.Inventory.Objects.CopyTo(inventory, 0);
Program.AddWarLog("EliteGuildWar", "[Prize :250k]", client.Player.Name);
}
else
{
dialog.Text("sorry u dont have any prize to claim....");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
}
else
{
dialog.Text("sorry u dont have any prize to claim");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + " You can't get the prize while the war is on!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
دا الكود بتاعها
#region EliteGw
case 115522:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Player.Name + " Would you like to Join Elite GW?.");
dialog.Text("or claim the Prize?, you can join At xx:44 to xx:59 In All Days Excpt Friday.");
dialog.Text("and the winner Guild Leader will get [500k] ConquerPoints after it finish u have 5 minutes to claim?.");
dialog.Option("Join Elite GW!", 1);
dialog.Option("Claim Prize.", 5);
dialog.Send();
break;
}
case 1:
{
if (EliteGuildWar.IsWar)
{
client.Player.Teleport(2071, 47, 131);
}
else
{
dialog.Text(" The war is not held now you can join At [xx:44 to xx:59] In All Days Excpt Friday.");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
case 5:
{
if (!EliteGuildWar.IsWar)
{
if (client.Guild != null)
{
if (EliteGuildWar.KeeperID != 0)
{
if (EliteGuildWar.Claim && client.AsMember.Rank == Game.Enums.GuildMemberRank.GuildLeader && client.Guild.ID == EliteGuildWar.KeeperID)
{
EliteGuildWar.Claim = false;
EliteGuildWar.KeeperID = 0;
Pirates.Kernel.SendWorldMessage(new Message(" Congratulations ! " + client.Player.Name + " claimed the prize [250k] ConquerPoints for winning the Elite GuildWar.", System.Drawing.Color.Black, Message.Center), Program.Values);
client.Player.ConquerPoints += 250000;
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
client.Inventory.Objects.CopyTo(inventory, 0);
Program.AddWarLog("EliteGuildWar", "[Prize :250k]", client.Player.Name);
}
else
{
dialog.Text("sorry u dont have any prize to claim....");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
}
else
{
dialog.Text("sorry u dont have any prize to claim");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Player.Name + " You can't get the prize while the war is on!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion