|
|
المشاركات 56 |
+التقييم 0.03 |
تاريخ التسجيل Sep 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 1328 |
#region Nobility Donor
case 761124:
{
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:50000. That means you give me 1 CPs, I donate for you 50000 gold. The minimum amount is 1000 CPs.");
dialog.Input("Insert amount:", 1, 10);
dialog.Option("No thank you.", 255);
break;
}
case 1:
{
uint input;
if (uint.TryParse(npcRequest.Input, out input))
{
if (input < 1000)
{
dialog.Text("You need to input more or atleast 1000 CPs..");
dialog.Input("Insert amount:", 1, 9);
dialog.Option("No thank you.", 255);
return;
}
if (client.Entity.ConquerPoints >= input || client.Entity.BoundCps >= input)
{
client.NpcCpsInput = input;
dialog.Text("Are you sure you want to donate " + input + " CPs? That means I will donate for you " + (((ulong)input) * 50000ul) + " gold.");
dialog.Option("Yes", 2);
dialog.Option("No thank you.", 255);
}
else
{
dialog.Text("You don't have that much CPs. Try again. \nThe exchange ratio is 1:50000. That means you give me 1 CPs, I donate for you 50000 gold. The minimum amount is 6,000,000 CPs.");
dialog.Input("Insert amount:", 1, 9);
dialog.Option("No thank you.", 255);
}
}
else
{
dialog.Text("Try again. \nThe exchange ratio is 1:50000. That means you give me 1 CPs, I donate for you 50000 gold. The minimum amount is 6,000,000 CPs.");
dialog.Input("Insert amount:", 1, 9);
dialog.Option("No thank you.", 255);
}
break;
}
case 2:
{
if (client.Entity.BoundCps >= client.NpcCpsInput && client.NpcCpsInput != 0)
{
client.Entity.BoundCps -= client.NpcCpsInput;
Game.ConquerStructures.Nobility.Donate((ulong)client.NpcCpsInput * 50000ul, client);
client.NpcCpsInput = 0;
}
else if (client.Entity.ConquerPoints >= client.NpcCpsInput && client.NpcCpsInput != 0)
{
client.Entity.ConquerPoints -= client.NpcCpsInput;
Game.ConquerStructures.Nobility.Donate((ulong)client.NpcCpsInput * 50000ul, client);
client.NpcCpsInput = 0;
}
break;
}
}
break;
}
#endregion
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
وحش الفراشة بشكل جديد كلينت [5095] | ahmedfathy | تطوير سورسات 5095 | 28 | 2024-10-01 09:08 PM |
صفحه بشكل جديد | ahmedBayoumi12 | صفحات التسجيل كونكر اونلاين | 25 | 2024-06-24 09:27 PM |
Npc Stuff+12 بشكل جديد | ElSaher | تطوير سيرفرات كونكر | 4 | 2023-10-01 07:01 PM |
Npc Chi بشكل جديد | ElSaher | تطوير سيرفرات كونكر | 2 | 2023-07-13 05:20 PM |
Npc HelpDesk بشكل جديد | ElSaher | تطوير سيرفرات كونكر | 1 | 2020-02-17 09:06 AM |