مشكلات السيرفيرات كونكر الشخصيهقسم طرح مشكلات كونكر الشخصيه (متاح)
أهلا وسهلا بك إلى منتدي اكواد.
أهلا وسهلا بك زائرنا الكريم، إذا كانت هذه زيارتك الأولى للمنتدى، فيرجى التكرم بزيارة صفحة التعليمـــات، بالضغط هنا.
كما يشرفنا أن تقوم بالتسجيل بالضغط هنا إذا رغبت بالمشاركة في المنتدى، أما إذا رغبت بقراءة المواضيع والإطلاع فتفضل بزيارة القسم الذي ترغب أدناه.
#region Nobility
case 7611237:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello friend. I can help you get on the top faster! Instead of donating gold, you can give me your cps and I will automatically do the hard work for you. The exchange ratio is 1:1. That means you give me 1 CPs, I donate for you 50000 gold. The minimum amount is 1,000,000 CPs.");
dialog.Input("Insert amount:", 1, 10);
dialog.Option("No thank you.", 255);
dialog.Avatar(48);
break;
}
case 1:
{
uint input;
if (uint.TryParse(npcRequest.Input, out input))
{
if (input < 1000)
{
dialog.Text("You need to input more or atleast 6,000,000 CPs..");
dialog.Input("Insert amount:", 1, 9);
dialog.Option("No thank you.", 255);
dialog.Avatar(48);
return;
}
if (client.Entity.ConquerPoints >= input)
{
client.NpcCpsInput = input;
dialog.Text("Are you sure you want to donate " + input + " CPs? That means I will donate for you " + (((ulong)input) * 1ul) + " gold.");
dialog.Option("Yes", 2);
dialog.Option("No thank you.", 255);
dialog.Avatar(48);
}
else
{
dialog.Text("You don't have that much CPs. Try again. \nThe exchange ratio is 1:1. That means you give me 1 CPs, I donate for you 1 gold. The minimum amount is 1,000,000 CPs.");
dialog.Input("Insert amount:", 1, 9);
dialog.Option("No thank you.", 255);
dialog.Avatar(48);
}
}
else
{
dialog.Text("Try again. \nThe exchange ratio is 1:1. That means you give me 1 CPs, I donate for you 1 gold. The minimum amount is 1,000,000 CPs.");
dialog.Input("Insert amount:", 1, 9);
dialog.Option("No thank you.", 255);
dialog.Avatar(48);
}
break;
}
case 2:
{
if (client.Entity.ConquerPoints >= client.NpcCpsInput && client.NpcCpsInput != 0)
{
client.Entity.ConquerPoints -= client.NpcCpsInput;
Game.ConquerStructures.Nobility.Donate((ulong)client.NpcCpsInput, client);
client.NpcCpsInput = 0;
}
break;
}
}
break;
}
#endregion
ولو عايز تخلي انو هوا يبدا يدفع سيبي من اول رقم كذا هتعمله من هنا