|
المشاركات 1,940 |
+التقييم 0.95 |
تاريخ التسجيل Apr 2019 |
الاقامة https://www.facebook.com/daany |
نظام التشغيل |
رقم العضوية 1 |
#region Clear
case 595222:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello my bro . I can clear your items for 10 Cps");
dialog.Option("Okay.Clear", 51);
dialog.Option("Just passing by.", 255);
dialog.Avatar(80);
dialog.Send();
break;
}
case 51:
{
dialog.Text("Are you sure ?");
dialog.Option("Yes,Clear", 1);
dialog.Send();
break;
}
case 1:
{
{
if (client.Entity.ConquerPoints >= 10)
{
client.Entity.ConquerPoints -= 10;
ConquerItem[] inventory = new ConquerItem[client.Inventory.Objects.Length];
client.Inventory.Objects.CopyTo(inventory, 0);
foreach (ConquerItem item in inventory)
{
client.Inventory.Remove(item, ServerProject.Game.Enums.ItemUse.Remove);
}
}
else
{
dialog.Text("Sorry you don't have 10 Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
}
break;
}
}
break;
}
#endregion