![]() |
الان تشغيل (Dic city) سورس 5375
حصريا تشغيل(Dic city) يرات بس قبل اى تعديل نخود دامب للقاعدة علشان لو حصل مشكال بس ان شاء الله مفيش اى مشكال. هنضيف اول كواد فـ ملف ،،Dialogs.cs SolarSaint هنضيف تانى كواد كود: #region DisCity Stage 1 case 1110: { if (npcRequest.OptionID == 0) { dialog.Text("Hello! You need 5 SoulStones to finish Stage 1, and I'll teleport you to Stage2."); dialog.Link("here you are", 1); dialog.Link("Sorry, I'll be back", 255); dialog.Avatar(0); dialog.Send(); } else if (npcRequest.OptionID == 1) { if (client.Inventory.Contains(723085, 5)) { if (Conquer_Online_Server.Game.Entity.DisCity.DisMax1 < 60) { client.Entity.Teleport(2022, 240, 340); client.IncreaseExperience(client.Entity.ExpBallExp ); Conquer_Online_Server.Network.PacketHandler.WorldM essage(client.Entity.Name + " is Number: " + Conquer_Online_Server.Game.Entity.DisCity.DisMax1 + " of Guild (" + client.Entity.Guild + ") has teleported to Dis City Stage 2!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.Red); Conquer_Online_Server.Game.Entity.DisCity.DisMax1 += 1; client.Entity.DisQuest = true; client.Inventory.Remove(723085, 1); client.Inventory.Remove(723085, 1); client.Inventory.Remove(723085, 1); client.Inventory.Remove(723085, 1); client.Inventory.Remove(723085, 1); if (Conquer_Online_Server.Game.Entity.DisCity.DisMax1 == 60) { if (client.Entity.MapID == 2021) { client.Entity.Teleport(1020, 533, 483); dialog.Text("You didn't make it to the next floor in time."); Conquer_Online_Server.Network.PacketHandler.WorldM essage(" All Players of Dis City Stage 1 has teleported to TwinCity!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.White); } } //Features.discity.Stage3(); } else { dialog.Text(" Sorry, you have missed your chance to enter the next floor of Dis City."); dialog.Link("Darn!", 1); dialog.Avatar(0); dialog.Send(); } } else { dialog.Text(" Sorry, you don't have 5 SoulStones."); dialog.Link("Ok, I'll be back", 1); dialog.Avatar(0); dialog.Send(); } } break; } #endregion هنضيف تانى كواد فـ ملف ،،Dialogs.cs SolarSaint هنضيف ثالث كواد كود: #region DisCity Stage 2 case 4011: { if (npcRequest.OptionID == 0) { dialog.Text("Hello, can you help me? If you kill the required monsters I desire you can win some EXP."); dialog.Link("Sounds good, how many do I kill?", 1); dialog.Link("No thanks.", 255); dialog.Avatar(0); dialog.Send(); } if (npcRequest.OptionID == 3) { if (Conquer_Online_Server.Game.Entity.DisCity.DisMax2 < 30) { client.Entity.DisQuest = false; client.Entity.DisKO = 0; Conquer_Online_Server.Game.Entity.DisCity.DisMax2+ +; Conquer_Online_Server.Game.Entity.DisCity.DisMax3+ +; client.Entity.Teleport(2023, 316, 635); client.IncreaseExperience(client.Entity.ExpBallExp ); Conquer_Online_Server.Network.PacketHandler.WorldM essage(client.Entity.Name + " is Number: " + Conquer_Online_Server.Game.Entity.DisCity.DisMax1 + " of Guild (" + client.Entity.Guild + ") has teleported to Dis City Stage 3!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.Red); if (Conquer_Online_Server.Game.Entity.DisCity.DisMax2 == 30) { if (client.Entity.MapID == 2022) { client.Entity.Teleport(1020, 533, 483); dialog.Text("You didn't make it to the next floor in time."); Conquer_Online_Server.Network.PacketHandler.WorldM essage(" All Players of Dis City Stage 2 has teleported to TwinCity!", Conquer_Online_Server.Network.GamePackets.Message. Center, System.Drawing.Color.White); } } // Features.discity.Stage3(); } else { dialog.Text(" Sorry, missed your chance to enter the next floor of Dis City. "); dialog.Link("Darn!", 1); dialog.Avatar(0); dialog.Send(); } } if (npcRequest.OptionID == 1) { if (client.Entity.Class >= 10 && client.Entity.Class <= 15) { if (client.Entity.DisKO >= 800) { dialog.Text("Which Flank are you going to attack from?"); dialog.Link("Right.", 3); dialog.Link("Left.", 3); dialog.Avatar(0); dialog.Send(); } else { dialog.Text("You need to kill 800 Monsters "); dialog.Link("Alright.", 255); dialog.Link("No thanks.", 255); dialog.Avatar(0); dialog.Send(); } } else if (client.Entity.Class >= 20 && client.Entity.Class <= 25) { if (client.Entity.DisKO >= 900) { dialog.Text("Which Flank are you going to attack from?"); dialog.Link("Right.", 3); dialog.Link("Left.", 3); dialog.Avatar(0); dialog.Send(); } else { dialog.Text("You need to kill 900 Monsters "); dialog.Link("Alright.", 255); dialog.Link("No Thanks", 255); dialog.Avatar(0); dialog.Send(); } } else if (client.Entity.Class >= 40 && client.Entity.Class <= 45) { if (client.Entity.DisKO >= 1300) { dialog.Text("Which Flank are you going to attack from?"); dialog.Link("Right.", 3); dialog.Link("Left.", 3); dialog.Avatar(0); dialog.Send(); } else { dialog.Text("You need to kill 1300 Monsters "); dialog.Link("Alright.", 255); dialog.Link("No Thanks", 255); dialog.Avatar(0); dialog.Send(); } } else if (client.Entity.Class >= 132 && client.Entity.Class <= 135) { if (client.Entity.DisKO >= 600) { dialog.Text("Which Flank are you going to attack from?"); dialog.Link("Right.", 3); dialog.Link("Left.", 3); dialog.Avatar(0); dialog.Send(); } else { dialog.Text("You need to kill 600 Monsters "); dialog.Link("Alright.", 255); dialog.Link("No Thanks", 255); dialog.Avatar(0); dialog.Send(); } } else if (client.Entity.Class >= 50 && client.Entity.Class <= 55) { if (client.Entity.DisKO >= 900) { dialog.Text("Which Flank are you going to attack from?"); dialog.Link("Right.", 3); dialog.Link("Left.", 3); dialog.Avatar(0); dialog.Send(); } else { dialog.Text("You need to kill 900 Monsters "); dialog.Link("Alright.", 255); dialog.Link("No Thanks", 255); dialog.Avatar(0); dialog.Send(); } } else if (client.Entity.Class >= 142 && client.Entity.Class <= 145) { if (client.Entity.DisKO >= 1000) { dialog.Text("Which Flank are you going to attack from?"); dialog.Link("Right.", 3); dialog.Link("Left.", 3); dialog.Avatar(0); dialog.Send(); } else { dialog.Text("You need to kill 1000 Monsters "); dialog.Link("Alright.", 255); dialog.Link("No Thanks", 255); dialog.Avatar(0); dialog.Send(); } } } break; } #endregion فـ ملف ،،Dialogs.cs SolarSaint هنقتح ملف كود: public class DisCity { public static Hashtable RightFlank = new Hashtable(); public static Hashtable LeftFlank = new Hashtable(); public static uint RightKills = 0; public static uint LeftKills = 0; public static bool dis = false; public static bool dis2 = false; public static byte DisMax1 = 0; public static byte DisMax2 = 0; public static byte DisMax3 = 0; } Entity.cs و هنضيف الاكواد دى كود: public uint ExpBallExp { get { if (Level < 30) return (uint)(15000 + Level * 430); else if (Level < 50) return (uint)(40000 + Level * 430); else if (Level < 80) return (uint)(30000 + Level * 500); else if (Level < 80) return (uint)(30000 + Level * 600); else if (Level < 100) return (uint)(30000 + Level * 700); else if (Level < 110) return (uint)(30000 + Level * 900); else if (Level < 120) return (uint)(30000 + Level * 1100); else if (Level < 125) return (uint)(30000 + Level * 1500); else if (Level < 130) return (uint)(30000 + Level * 1000); else return (uint)(30000 + Level * 1000); } } فى ملف Entity.cs Dis City 2 و فى الاخر هنضيف الكواد دا كود: public int DisKO = 0; public bool DisQuest = falseفى ملف variables ; |
الساعة الآن 06:08 AM. |
Powered by
vpscairo
Copyright ©2013 - 2025, Jelsoft Enterprises Ltd
Translation by
tamer
Copyright ©2000-2024,vpscairo.com