المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : NPC Lucky Play Cps


Mero
2019-06-01, 06:33 AM
عفواً لايمكن عرض الروابط في الإرشيف


ده عبارة عن انبسي الناس بتكلمو وتلعب لكي بلسبس ال معاهة تقدر تعدل عليه بس اوعة تبوظ الدنيا تلاقي الناس كلها معاهة سبس ردم :D :eek:


ضيف الكود ده في npc.cs

#region Lucky Play Cps
case 54586: //Thanks EGY4U
{

switch (npcRequest.OptionID)
{
case 0:
{

dialog.Text("Try You'r Lucky With Play Cps");
dialog.Option("Play Cps 10M.", 1);
dialog.Option("Play Cps 5M", 2);
dialog.Option("Play Cps 1M ", 3);
dialog.Option("not now.", 255);
dialog.Avatar(80);
dialog.Send();
break;
}
case 3:
{
if (client.Entity.ConquerPoints >= 1000000)
{
client.Entity.ConquerPoints -= 1000000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 0;
if (Nr == 1) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 1) client.Entity.ConquerPoints += 1000000;
if (Nr == 1) client.MessageBox("You received a 1M CPs ", null);
if (Nr == 1) client.Entity.ConquerPoints += 1000000;
if (Nr == 1) client.MessageBox("You received a 1M CPs ", null);
if (Nr == 1) client.Entity.ConquerPoints += 1000000;
if (Nr == 1) client.MessageBox("You received a 1M CPs ", null);
if (Nr == 2) client.Entity.ConquerPoints += 2000000;
if (Nr == 2) client.MessageBox("You received a 2M CPs", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 2000000;
if (Nr == 5) client.MessageBox("You received a 2M CPs", null);
if (Nr == 6) client.Entity.ConquerPoints += 1000000;
if (Nr == 6) client.MessageBox("You received a 1M CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 2000000;
if (Nr == 7) client.MessageBox("You received a 2M CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 1M Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();

}

break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 10000000)
{
client.Entity.ConquerPoints -= 10000000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 10000000;
if (Nr == 1) client.MessageBox("You received a 10M CPs ", null);
if (Nr == 2) client.Entity.ConquerPoints += 20000000;
if (Nr == 2) client.MessageBox("You received a 20M CPs", null);
if (Nr == 3) client.Entity.ConquerPoints += 10000000;
if (Nr == 3) client.MessageBox("You received a 10M CPs ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 15000000;
if (Nr == 5) client.MessageBox("You received a 15M CPs", null);
if (Nr == 6) client.Entity.ConquerPoints += 10000000;
if (Nr == 6) client.MessageBox("You received a 10M CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 16000000;
if (Nr == 7) client.MessageBox("You received a 16M CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 10M Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();

}

break;
}
case 2:
{
if (client.Entity.ConquerPoints >= 5000000)
{
client.Entity.ConquerPoints -= 5000000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 5000000;
if (Nr == 1) client.MessageBox("You received a 5M CPs ", null);
if (Nr == 2) client.Entity.ConquerPoints += 10000000;
if (Nr == 2) client.MessageBox("You received a 10M CPs", null);
if (Nr == 3) client.Entity.ConquerPoints += 5000000;
if (Nr == 3) client.MessageBox("You received a 5M CPs ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 0;
if (Nr == 5) client.MessageBox("Sorry you loss your cps", null);
if (Nr == 5) client.Entity.ConquerPoints += 10000000;
if (Nr == 5) client.MessageBox("You received a 10M CPs", null);
if (Nr == 5) client.Entity.ConquerPoints += 10000000;
if (Nr == 5) client.MessageBox("You received a 10M CPs", null);
if (Nr == 6) client.Entity.ConquerPoints += 5000000;
if (Nr == 6) client.MessageBox("You received a 5M CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 7000000;
if (Nr == 7) client.MessageBox("You received a 7m CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 5kk cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
break;
}
}
#endregion


تمام


عفواً لايمكن عرض الروابط في الإرشيف

محمد ياسر
2019-06-01, 12:31 PM
ايه الحلاوه ده شغل عالي

Mero
2019-06-22, 12:26 PM
ايه الحلاوه ده شغل عالي

حبيبي يا حازم :emoji21:

MohamedModyAdel
2019-06-25, 05:41 PM
جميل

Ahmeed Sheeko
2019-08-01, 12:46 PM
هو كان جايب ايرورات كتير اوى فانا غيرته كله يعنى حتى ظبطه على سيرفرى :D
#region Lucky Play Cps
case 253612:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Dear " + client.Entity.Name + " u want to play a small game depending on luck");
dialog.Text("Just U Must Know You Have 50% To Win or Lose Deal ?");
dialog.Option("Play with 1K CPS", 1);
dialog.Option("Play with 10K CPS", 2);
dialog.Option("Play with 50K CPS", 3);
dialog.Option("Play with 100K CPS", 4);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
#region 1K CPS
case 1:
{
if (client.Entity.ConquerPoints >= 1000)
{
client.Entity.ConquerPoints -= 1000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 1000;
if (Nr == 1) client.MessageBox("You received a 1K CPs ", null);
if (Nr == 1) client.Entity.ConquerPoints += 1000;
if (Nr == 1) client.MessageBox("You received a 1K CPs ", null);
if (Nr == 1) client.Entity.ConquerPoints += 1000;
if (Nr == 1) client.MessageBox("You received a 1K CPs ", null);
if (Nr == 1) client.Entity.ConquerPoints += 0;
if (Nr == 1) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 2) client.Entity.ConquerPoints += 2000;
if (Nr == 2) client.MessageBox("You received a 2K CPs", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 2000;
if (Nr == 5) client.MessageBox("You received a 2K CPs", null);
if (Nr == 6) client.Entity.ConquerPoints += 1000;
if (Nr == 6) client.MessageBox("You received a 1K CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 2000;
if (Nr == 7) client.MessageBox("You received a 2K CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 1K Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
#endregion
#region 10K Cps
case 2:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 10000;
if (Nr == 1) client.MessageBox("You received a 10K CPs ", null);
if (Nr == 2) client.Entity.ConquerPoints += 20000;
if (Nr == 2) client.MessageBox("You received a 20K CPs", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 15000;
if (Nr == 5) client.MessageBox("You received a 15K CPs", null);
if (Nr == 6) client.Entity.ConquerPoints += 10000;
if (Nr == 6) client.MessageBox("You received a 10K CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 16000;
if (Nr == 7) client.MessageBox("You received a 16K CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 10K Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
#endregion
#region 50K Cps
case 3:
{
if (client.Entity.ConquerPoints >= 50000)
{
client.Entity.ConquerPoints -= 50000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 50000;
if (Nr == 1) client.MessageBox("You received a 50K CPs ", null);
if (Nr == 2) client.Entity.ConquerPoints += 100000;
if (Nr == 2) client.MessageBox("You received a 100K CPs", null);
if (Nr == 2) client.Entity.ConquerPoints += 70000;
if (Nr == 2) client.MessageBox("You received a 70K CPs", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 0;
if (Nr == 5) client.MessageBox("Sorry you loss your cps", null);
if (Nr == 5) client.Entity.ConquerPoints += 100000;
if (Nr == 5) client.MessageBox("You received a 100K CPs", null);
if (Nr == 5) client.Entity.ConquerPoints += 79000;
if (Nr == 5) client.MessageBox("You received a 79K CPs", null);
if (Nr == 6) client.Entity.ConquerPoints += 100000;
if (Nr == 6) client.MessageBox("You received a 100K CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 66000;
if (Nr == 7) client.MessageBox("You received a 66K CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 50K Cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
#endregion
#region 100K Cps
case 4:
{
if (client.Entity.ConquerPoints >= 100000)
{
client.Entity.ConquerPoints -= 100000;
Random R = new Random();
int Nr = R.Next(1, 7);
if (Nr == 1) client.Entity.ConquerPoints += 100000;
if (Nr == 1) client.MessageBox("You received a 100K CPs ", null);
if (Nr == 1) client.Entity.ConquerPoints += 0;
if (Nr == 1) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 2) client.Entity.ConquerPoints += 100000;
if (Nr == 2) client.MessageBox("You received a 100K CPs", null);
if (Nr == 2) client.Entity.ConquerPoints += 29000;
if (Nr == 2) client.MessageBox("You received a 29K CPs", null);
if (Nr == 2) client.Entity.ConquerPoints += 0;
if (Nr == 2) client.MessageBox("Sorry you loss your Cps", null);
if (Nr == 3) client.Entity.ConquerPoints += 0;
if (Nr == 3) client.MessageBox("Sorry you loss your Cps ", null);
if (Nr == 4) client.Entity.ConquerPoints += 0;
if (Nr == 4) client.MessageBox("Sorry you loss your cps.", null, null, 0);
if (Nr == 5) client.Entity.ConquerPoints += 200000;
if (Nr == 5) client.MessageBox("You received a 200K CPs", null);
if (Nr == 5) client.Entity.ConquerPoints += 0;
if (Nr == 5) client.MessageBox("Sorry you loss your cps", null);
if (Nr == 6) client.Entity.ConquerPoints += 150000;
if (Nr == 6) client.MessageBox("You received a 150K CPs", null);
if (Nr == 7) client.Entity.ConquerPoints += 130000;
if (Nr == 7) client.MessageBox("You received a 130K CPs", null);
DialyQuestsEffect.Check(client, "Sure");

}
else
{

dialog.Text("You do not have 100K cps.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
#endregion
}
break;
}
#endregion
ملحوظه : نزلته للأفاده عشان لو حد عايزو