Ahmeed Sheeko |
2019-08-01 12:46 PM |
رد: NPC Lucky Play Cps
هو كان جايب ايرورات كتير اوى فانا غيرته كله يعنى حتى ظبطه على سيرفرى :D
كود PHP:
#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
ملحوظه : نزلته للأفاده عشان لو حد عايزو
|