|
المشاركات 1,994 |
+التقييم 1.01 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل ويندوز 0 |
رقم العضوية 279 |
#region System Online Points
case 121212:
{
#region -- CPs --
////////////////////////////////////////
uint CPsTB1 = 100;
uint CPs1 = 200000000;
////////////////////////////////////////
uint CPsTB2 = 200;
uint CPs2 = 400000000;
#endregion
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("All (Heroes) can talk to me to learn about my offers, this offers for OnlinePoints only.");
dialog.Text("Your OnlinePoints Count is : " + client.Player.OnlinePoints + " .");
dialog.Option("You|Need|Cps|for|OnlinePoints[100 And 200 Points]", 10);
dialog.Option("Just passing by.", 255);
dialog.Send();
break;
}
#region -- CPs --
case 10:
{
dialog.Text("You Choosed Your Way , You Want To Exchange OnlinePoints For CPs .. You Have [ " + string.Format("{0:n0}", client.Player.OnlinePoints) + " OnlinePoints ] .");
dialog.Option("" + string.Format("{0:n0}", CPs1) + " CPs (" + string.Format("{0:n0}", CPsTB1) + " TP) .", 2);
dialog.Option("" + string.Format("{0:n0}", CPs2) + " CPs (" + string.Format("{0:n0}", CPsTB2) + " TP) .", 3);
dialog.Option("Back .", 165);
dialog.Option("Thank You .", 255);
dialog.Send();
break;
}
case 2:
{
if (client.Player.OnlinePoints >= CPsTB1)
{
client.Player.OnlinePoints -= CPsTB1;
client.Player.ConquerPoints += CPs1;
client.Send(new NpcReply(NpcReply.MessageBox, "You Have Exchanged (" + string.Format("{0:n0}", CPsTB1) + " OnlinePoints) For (" + string.Format("{0:n0}", CPs1) + " CPs) ."));
}
else
{
dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", CPsTB1) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Player.OnlinePoints) + " OnlinePoint ] -");
dialog.Option("Back .", 165);
dialog.Option("Wait a Minute .", 255);
dialog.Send();
}
break;
}
case 3:
{
if (client.Player.OnlinePoints >= CPsTB2)
{
client.Player.OnlinePoints -= CPsTB2;
client.Player.ConquerPoints += CPs2;
client.Send(new NpcReply(NpcReply.MessageBox, "You Have Exchanged (" + string.Format("{0:n0}", CPsTB2) + " OnlinePoints) For (" + string.Format("{0:n0}", CPs2) + " CPs) ."));
}
else
{
dialog.Text("- (Sorry): You Don't Have Enough OnlinePoints To Exchanged , You Need (" + string.Format("{0:n0}", CPsTB6) + " OnlinePoints) And You Have Only [ " + string.Format("{0:n0}", client.Player.OnlinePoints) + " OnlinePoint ] -");
dialog.Option("Back .", 1);
dialog.Option("Wait a Minute .", 255);
dialog.Send();
}
break;
}
#endregion
}
break;
}
#endregion
#region System Online Points By-Captin-Rider
case 14224:
{
#region -- CPs --
////////////////////////////////////////
uint CPsTB1 = 150;
uint CPs1 = 250000000;
////////////////////////////////////////
#endregion
#region -- CPsTB2 --
uint CPsTB2 = 2000;
uint CPs2 = 2000;
#endregion
#region -- GoldPrize --
uint GoldPrize = 2000;
#endregion
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("All (Heroes) can talk to me to learn about my offers, this offers for OnlinePoints only.");
dialog.Text("Your OnlinePoints Count is : " + client.Player.OnlinePoints + " .");
dialog.Option("VIP7 [5000]", 10);
dialog.Option("GoldPrize [3000Points]", 20);
dialog.Option("500m Cps [500point]", 11);
dialog.Option("250m Cps [250point]", 12);
dialog.Option("1b Cps [1000point]", 13);
dialog.Option("Just passing by.", 255);
dialog.Send();
break;
}
#region Vip7
case 10:
{
if (client.Player.OnlinePoints >= 5000 && client.Player.VIPLevel != 7)
{
client.Player.OnlinePoints -= 5000;
client.Player.VIPLevel = 7;
dialog.Text("Congratulations. You Get Vip7 for " + 5000 + " Points.");
client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations. You Get Vip7 for " + 5000 + " Points."));
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + 5000 + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
#endregion
#region cps
case 13:
{
if (client.Player.OnlinePoints >= 1000)
{
client.Player.OnlinePoints -= 1000;
client.Player.ConquerPoints += 1000000000;
dialog.Text("Congratulations. You Get 1000000000 cps for " + 1000 + " Points.");
client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations. You Get 1000000000 cps for " + 1000 + " Points."));
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + 1000 + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 12:
{
if (client.Player.OnlinePoints >= 250)
{
client.Player.OnlinePoints -= 250;
client.Player.ConquerPoints += 250000000;
dialog.Text("Congratulations. You Get 250000000 cps for " + 250 + " Points.");
client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations. You Get 250000000 cps for " + 250 + " Points."));
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + 250 + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
case 11:
{
if (client.Player.OnlinePoints >= 500)
{
client.Player.OnlinePoints -= 500;
client.Player.ConquerPoints += 500000000;
dialog.Text("Congratulations. You Get 500000000 cps for " + 500 + " Points.");
client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations. You Get 500000000 cps for " + 500 + " Points."));
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + 500 + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
#endregion
#region GoldPrize
case 20:
{
if (client.Player.OnlinePoints >= 3000)
{
client.Player.OnlinePoints -= 3000;
client.Inventory.Add(2100075, 0, 1);
dialog.Text("Congratulations. You Get GoldPrize for " + 3000 + " Points.");
client.Send(new NpcReply(NpcReply.MessageBox, "Congratulations. You Get GoldPrize for " + GoldPrize + " Points."));
dialog.Option("Thank you.", 255);
}
else
{
dialog.Text("You Don't Have " + GoldPrize + "Points Come When You Have it ");
dialog.Option("Sorry ", 255); dialog.Send();
}
break;
}
#endregion
}
break;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة فى OnlinePoints | osama | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-08-21 10:26 AM |