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

مشاهدة النسخة كاملة : انبي سي تبديل السفاجا


Hassan Emprator
2019-07-08, 08:24 AM
معانا موضوع اسمه تبديل السفاجا لما مثلا تكون انت عامل السفاجا تقع من الوحوش دا الانبي سي بقا الي يبدلك السفاجا يديك بدالها صولات بي الحظ نبدا

هتفتح كلاس Npcوي تضيف فيه دا

#region P7Sacred
case 9438:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("There`s a mysterious treasure sealed since the ancient times. With a Savage Bone, you can explore and have a chance to get Sacred refinery materials, rare");
dialog.Text("~weapon accessories, and even the legendary P7 Dragon Soul.");
dialog.Option("I~wanna~explore.", 1);
dialog.Option("Special~exploration.", 2);
dialog.Option("I~see.", 255);
dialog.Avatar(0);
dialog.Send();
break;
}
case 1:
{
dialog.Text("The Nemesis Tyrant in the DragonIsland Sea has the Savage Bones. You can use one to explore each time.");
dialog.Option("Use~a~Savage~Bone.", 3);
if (client.Entity.Level >= 110)
{
dialog.Option("Send~me~there.", 4);
}
dialog.Option("I~see.", 255);
dialog.Avatar(0);
dialog.Send();
break;
}
case 2:
{
dialog.Text("If you don`t have a Savage Bone, you can also pay 10000 CPs to explore. Of course, the more you pay, the better you get.~How much would you like to pay?");
dialog.Option("10000~CPS.", 5);
dialog.Option("10000~CPS.", 6);
dialog.Option("I~see.", 255);
dialog.Avatar(0);
dialog.Send();
break;
}
case 3:
{
if (client.Inventory.Contains(3004181, 1))
{
client.Inventory.Remove(3004181, 1);
Random randoms = new Random();
int r = randoms.Next(1, 10);
if (r == 1)
{
client.Inventory.Add(3004251, 0, 1);
client.MessageBox("You received a CarpFishPoleScrap.", null, null, 0);
}
else if (r == 2)
{
client.Inventory.Add(3004252, 0, 1);
client.MessageBox("You received a SpecialOarScrap.", null, null, 0);
}
else if (r == 3)
{
client.Inventory.Add(3004253, 0, 1);
client.MessageBox("You received a CucumberHammerScrap.", null, null, 0);
}
else if (r == 4)
{
client.Inventory.Add(3004254, 0, 1);
client.MessageBox("You received a CatHammerScrap.", null, null, 0);
}
else if (r == 5)
{
client.Inventory.Add(3004255, 0, 1);
client.MessageBox("You received a RacoonRacketScrap.", null, null, 0);
}
else if (r == 6)
{
client.Inventory.Add(3004256, 0, 1);
client.MessageBox("You received a UltraRacketScrap.", null, null, 0);
}
else if (r == 7)
{
client.Inventory.Add(3004257, 0, 1);
client.MessageBox("You received a AccessoryScrapPack.", null, null, 0);
}
else if (r == 8)
{
client.Inventory.Add(3004248, 0, 1);
client.MessageBox("You received a P7 Equipment Soul Pack.", null, null, 0);
}

else if (r == 9)
{
client.Inventory.Add(3004247, 0, 1);
client.MessageBox("You received a P7 Weapon Pack.", null, null, 0);
}
else if (r == 10)
{
client.Inventory.Add(3004249, 0, 1);
client.MessageBox("You received a P6 SacredRefinery Pack.", null, null, 0);
}
//client.Inventory.Add(723718, 0, 1);
//client.Player.BoundCps += 250;
break;
}
else
dialog.Text("Sorry, You don`t have 1 Savage Bone.");
dialog.Option("My~bad.", 255);
dialog.Avatar(0);
break;
}
case 4:
{
client.Entity.Teleport(10137, 92, 410);
break;
}
case 5:
{
dialog.Option("Yes.", 7);
dialog.Option("No.", 255);
dialog.Avatar(0);
dialog.Send();
break;
}
case 6:
{
dialog.Text("Are you sure you want to use 10000 CPs to explored the P7 Sacred Treasures?");
dialog.Option("Yes.", 8);
dialog.Option("No.", 255);
dialog.Avatar(0);
dialog.Send();
break;
}
case 7:
{
if (client.Entity.ConquerPoints > 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(3004249, 0, 1);
client.MessageBox("You received a SacredRefineryPack.", null, null, 0);
break;
}
else
dialog.Text("Sorry, you don`t have enough CPs.");
dialog.Option("I see.", 255);
break;
}
case 8:
{
if (client.Entity.ConquerPoints > 10000)
{
client.Entity.ConquerPoints -= 10000;
Random randoms = new Random();
int r = randoms.Next(1, 4);
if (r == 1)
{
client.Inventory.Add(3004247, 0, 1);
client.MessageBox("You received a P7 Weapon Soul Pack.", null, null, 0);
}
else if (r == 2)
{
client.Inventory.Add(3004248, 0, 1);
client.MessageBox("You received a P7 Equipment Soul Pack.", null, null, 0);
}
else if (r == 3)
{
client.Inventory.Add(3004248, 0, 1);
client.MessageBox("You received a P7 Equipment Soul Pack.", null, null, 0);
}
else if (r == 4)
{
client.Inventory.Add(3004248, 0, 1);
client.MessageBox("You received a P7 Equipment Soul Pack.", null, null, 0);
}
break;
}
else
dialog.Text("Sorry, you don`t have enough CPs.");
dialog.Option("I see.", 255);
break;
}
}
break;
}
#endregion

محمد ياسر
2019-07-08, 04:15 PM
انا مش فاهم ايه ده ؟

Hassan Emprator
2019-07-08, 07:37 PM
انا مش فاهم ايه ده ؟

دا انبي سي بتاع السفاجا يعني في ناس بتخلي السفاجا تقع من الوحوش دا بتجبله السفاجا وي يقوم عاملهولك بي الحظ يجبلك صولات حظ يعني