MARO
06-01-2012, 07:04 PM
اولا<
الشرح :
هتفتح ملف Dialogs.cs
وتدوس Ctrl + F
وتبحث عن الكلمة دية
كود PHP:
CPAdmin
هتمسحو كلو
وتضيف الان بي سي الجديد دة
كود PHP:
#region CPAdmin case 111816: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Greetings, here you can exchange either a Dragonball or a DragonScroll for cps. "); dialog.Text("One Dragonball will get you 215 cps and a DragonScroll will get you 2150. "); dialog.Text("What would you like to trade? Or would you rather not?"); dialog.Option("Dragonball", 1); dialog.Option("DragonballScroll", 2); dialog.Option("I'll just leave", 255); dialog.Send(); break; } case 1: { if (client.Inventory.Contains(1088000, 1)) { client.Inventory.Remove(1088000, 1); client.Entity.ConquerPoints += 215; } else { dialog.Text("You do not have a Dragonball"); dialog.Send(); } break; } case 2: { if (client.Inventory.Contains(720028, 1)) { client.Inventory.Remove(720028, 1); client.Entity.ConquerPoints += 2150; } else { dialog.Text("You do not have a DragonballScroll"); dialog.Send(); } break; } } break; } #endregion
ورجاء التقييم وشكراا
الشرح :
هتفتح ملف Dialogs.cs
وتدوس Ctrl + F
وتبحث عن الكلمة دية
كود PHP:
CPAdmin
هتمسحو كلو
وتضيف الان بي سي الجديد دة
كود PHP:
#region CPAdmin case 111816: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Greetings, here you can exchange either a Dragonball or a DragonScroll for cps. "); dialog.Text("One Dragonball will get you 215 cps and a DragonScroll will get you 2150. "); dialog.Text("What would you like to trade? Or would you rather not?"); dialog.Option("Dragonball", 1); dialog.Option("DragonballScroll", 2); dialog.Option("I'll just leave", 255); dialog.Send(); break; } case 1: { if (client.Inventory.Contains(1088000, 1)) { client.Inventory.Remove(1088000, 1); client.Entity.ConquerPoints += 215; } else { dialog.Text("You do not have a Dragonball"); dialog.Send(); } break; } case 2: { if (client.Inventory.Contains(720028, 1)) { client.Inventory.Remove(720028, 1); client.Entity.ConquerPoints += 2150; } else { dialog.Text("You do not have a DragonballScroll"); dialog.Send(); } break; } } break; } #endregion
ورجاء التقييم وشكراا