السلام عليكم ورحمة الله وبركاته
كيفية التحكم في اشياء النزول لشخصيات الجديده الامر سهل ومش صعب وناس كتير محتاجه الموضوع ده
اعذروني علي غيابي كنت بعمل صفحه لعبه بامكانيات رهيبه مش موضوعنا يلا نبداء
افتح ملف
Data.cs
وفي سورسات بتبا بالاسم ده
MsgGeneralData.cs
افتحه وابحث عن اي
#region
وضيف فقيه دول
#region New Created #region Trojan if (client.Player.Class >= 10 && client.Player.Class <= 11) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 130006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 10 && client.Player.Class <= 11) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 410006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region Warrior if (client.Player.Class >= 20 && client.Player.Class <= 21) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 131006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 20 && client.Player.Class <= 21) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 410006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region Archer if (client.Player.Class >= 40 && client.Player.Class <= 41) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 133006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 40 && client.Player.Class <= 41) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 500006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region Pirete if (client.Player.Class >= 70 && client.Player.Class <= 71) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 139006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 70 && client.Player.Class <= 71) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 611006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region Monk if (client.Player.Class >= 60 && client.Player.Class <= 61) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 136006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 60 && client.Player.Class <= 61) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 610006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region Ninja if (client.Player.Class >= 50 && client.Player.Class <= 51) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 135006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 50 && client.Player.Class <= 51) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 601006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region LeeLong if (client.Player.Class >= 80 && client.Player.Class <= 81) { client.Inventory.Add(3004874, 0, 1); MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 138006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 80 && client.Player.Class <= 81) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 617006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region Taoist if (client.Player.Class >= 100 && client.Player.Class <= 145) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 134006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } if (client.Player.Class >= 100 && client.Player.Class <= 145) { MsgItemInfo item7; item7 = new MsgItemInfo(true) { ID = 421006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.RightWeapon, Bound = true }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item7, client); client.Equipment.Add(item7); } #endregion #region WindWalker if (client.Player.Class >= 160 && client.Player.Class <= 165) { MsgItemInfo item6; item6 = new MsgItemInfo(true) { ID = 170006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Head, }; client.Equipment.Remove((byte)MsgItemInfo.Head); Database.ConquerItemTable.AddItem(ref item6, client); client.Equipment.Add(item6); } if (client.Player.Class >= 160 && client.Player.Class <= 165) { MsgItemInfo item6; item6 = new MsgItemInfo(true) { ID = 101006, UID = MsgItemInfo.ItemUID.Next, Durability = 3599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 3599, Position = MsgItemInfo.Armor, }; client.Equipment.Remove((byte)MsgItemInfo.Armor); Database.ConquerItemTable.AddItem(ref item6, client); client.Equipment.Add(item6); } if (client.Player.Class >= 160 && client.Player.Class <= 165) { MsgItemInfo item6; item6 = new MsgItemInfo(true) { ID = 626006, UID = MsgItemInfo.ItemUID.Next, Durability = 599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 599, Position = MsgItemInfo.RightWeapon, }; client.Equipment.Remove((byte)MsgItemInfo.RightWeapon); Database.ConquerItemTable.AddItem(ref item6, client); client.Equipment.Add(item6); } if (client.Player.Class >= 160 && client.Player.Class <= 165) { MsgItemInfo item6; item6 = new MsgItemInfo(true) { ID = 626006, UID = MsgItemInfo.ItemUID.Next, Durability = 1599, Plus = 0, Enchant = 0, Bless = 0, Color = (Game.Enums.Color)Kernel.Random.Next(3, 9), MaximDurability = 1599, Position = MsgItemInfo.LeftWeapon, }; client.Equipment.Remove((byte)MsgItemInfo.LeftWeapon); Database.ConquerItemTable.AddItem(ref item6, client); client.Equipment.Add(item6); } #endregion if (client.Player.Class >= 60 && client.Player.Class <= 65) { client.Player.HairStyle = 0; client.Player.HairColor = 0; } client.Activenes.SendSinglePacket(client, Activeness.Types.LoginTask, client.Activenes.DailyQuestCompletedTimes(client)); // #endregion client.Inventory.Add(2100075, 0, 1); client.Player.VIPLevel = 3; client.Player.Level = 140; client.Inventory.AddTime2(194395); client.Player.ConquerPoints = 9999999;
الشرح
الموضوع عباره عن صندوق بينزل مع كل شخصيه جديده بيبا علي حسب الشخصيه الي نازله ياعني لو نينجا ينزل باسطفات نينجا اول ما يفتحا الصندوق وهكذا وبرضروا بينزل حجات تاني غير الصندوق وانشوفهم مع بعض
تقدر تغير انواع الاسطفات الي بتنزل بيه كل شخصيه
مثل
الويند وكر اابحث عن ده
#region WindWalker
بعد كده شوف الاسطفات الي عايز تعدله وغيرها براحتك
client.Inventory.Add(2100075, 0, 1); client.Player.VIPLevel = 3; client.Player.Level = 140; client.Inventory.AddTime2(194395); client.Player.ConquerPoints = 9999999;
في اخر سطر من الاكواد الي نزلته فوق اتلقي ال5 حجات دول
تقدر تعدل علي الفل بدون الذهاب لنفي كات
تحدد عدد السي بي والجولد الي اينزل بيه الشخصيه
تحدد مستوي الفي اي بي
والاكود ده دلوقتي اي شخصيه تنزل ايبا معه الكاس ولو عايز تلغيه امسح السطر ده
client.Inventory.Add(2100075, 0, 1);
ولو عايز تنزل اي ايتم اي ان كان نوعه مع كل شخصيه تضيف السطر ده وتغير الاي بي
client.Inventory.AddTime2(194395);
كله بدون الحاجه لنفي كات
One thought on “اضافة صندوق النزول في الحقيقه”
الله ينور يا محمد