السلام عليكم ورحمة الله وبركاتة
شباب النهاردة معايا ان بي سي بيبيع الساعات الاكس بي الجديدة
EXP+15
EXP+10
EXP+5
شباب النهاردة معايا ان بي سي بيبيع الساعات الاكس بي الجديدة
EXP+15
EXP+10
EXP+5
هنفتح السي شارب
وبعد كدة نفتح NPC.cs
ونضيف الكود دة
كود PHP:
#region Seller/moonbox/emerald 422 395
case 4444991: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hey how I can help you ? "); dialog.Option("Buy LotteryTicketPack - 2000k CPS ", 1); dialog.Option("Buy X5~ExpPotion - 50000 CPS ", 2); dialog.Option("Buy X10~ExpPotion - 100000 CPS ", 3); dialog.Option("Buy X15~ExpPotion - 150000 CPS ", 4); dialog.Option("Buy Life Fruit Basket - 100000 CPS ", 5); dialog.Option("Just passing by.", 255); dialog.Avatar(80); dialog.Send(); break; } case 1: { if (client.Entity.ConquerPoints >= 2000) { client.Entity.ConquerPoints -= 2000; client.Inventory.Add(720758, 0, 1); } else { dialog.Text("You don't have 2000 ConquerPoints."); dialog.Option("Ah, my bad", 255); dialog.Avatar(80); dialog.Send(); } break; } case 2: { if (client.Entity.ConquerPoints >= 500000) { client.Entity.ConquerPoints -= 500000; client.Inventory.Add(723917, 0, 1); } else { dialog.Text("You don't have 50000 ConquerPoints."); dialog.Option("Ah, my bad", 255); dialog.Avatar(80); dialog.Send(); } break; } case 5: { if (client.Entity.ConquerPoints >= 1000000) { client.Entity.ConquerPoints -= 1000000; client.Inventory.Add(723725, 0, 1); } else { dialog.Text("You don't have 100000 ConquerPoints."); dialog.Option("Ah, my bad", 255); dialog.Avatar(80); dialog.Send(); } break; } case 3: { if (client.Entity.ConquerPoints >= 100000) { client.Entity.ConquerPoints -= 100000; client.Inventory.Add(723918, 0, 1); } else { dialog.Text("You don't have 10000 ConquerPoints."); dialog.Option("Ah, my bad", 255); dialog.Avatar(80); dialog.Send(); } break; } case 4: { if (client.Entity.ConquerPoints >= 150000) { client.Entity.ConquerPoints -= 150000; client.Inventory.Add(723919, 0, 1); } else { dialog.Text("You don't have 150000 ConquerPoints."); dialog.Option("Ah, my bad", 255); dialog.Avatar(80); dialog.Send(); } break; }
} break; }
#endregion Seller/moonbox/emerald 422 395
npc
كود PHP:
4444991 2 1002 430 380
0 التعليقات:
إرسال تعليق