S.A.W.T ::المدير العام:: ::مؤسس المنتدى::
عدد المساهمات : 304 تاريخ التسجيل : 29/12/2009 العمر : 29
| موضوع: الان و حصريا كويست الديمون بوكس لكلينت 5165 ادخل و قيم الجمعة سبتمبر 10, 2010 8:06 pm | |
| نبدأ الشرح بأذن الله انا هسهلها عليك و اعملك باتش علي طول بالملفات المطلو تعديلها اللي موجوده في الكلينت و كل اللي عليك هتضيف الان بي سي و كام كود كده في السورس اول حاجه هتروح الملف ده C/oldcodb/moninfos.txt و تضيف الكود ده
كود PHP: 100 Demon 1 731 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False101 AncientDemon 1 556 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False102 FloodDemon 1 217 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False103 HeavenDemon 1 252 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False104 ChaosDemon 1 225 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False105 SacredDemon 1 950 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False و في نفس الفولدر هتفتح الملف ده items.txt و تضيف الكود ده
كود PHP: 723991 DemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5723992 AncientDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5723993 FloodDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5723994 HeavenDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5723995 ChaosDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5723996 SacredDemonBox 0 0 0 0 0 0 0 0 0 0 0 7403361 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 QuestItem Used~To~Unleash~The~Demon 5 و طبعا بتقفل و نسيف و بعدين تفتح character.cs و ندور علي الكود ده كود: default: و فوقيه علي طول هنضيف الكود ده
كود PHP: #region DemonBox case 723991: { Mob Demon = new Mob("100 Demon 1 731 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 0 False"); Demon.EntityID = 450; Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map]; DMap D = (DMap)DMaps.H_DMaps[Loc.Map]; Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon); _Mob.Loc = new NewestCOServer.Game.********(); _Mob.Loc.Map = Loc.Map; _Mob.Loc.X = Loc.X; _Mob.Loc.Y = Loc.Y; _Mob.StartLoc = _Mob.Loc; _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID)) _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); MapMobs.Add(_Mob.EntityID, _Mob); RemoveItem(I); break; } #endregion #region AncientDemonBox case 723992: { Mob Demon = new Mob("101 AncientDemon 1 556 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 300 False"); Demon.EntityID = 450; Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map]; DMap D = (DMap)DMaps.H_DMaps[Loc.Map]; Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon); _Mob.Loc = new NewestCOServer.Game.********(); _Mob.Loc.Map = Loc.Map; _Mob.Loc.X = Loc.X; _Mob.Loc.Y = Loc.Y; _Mob.StartLoc = _Mob.Loc; _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID)) _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); MapMobs.Add(_Mob.EntityID, _Mob); RemoveItem(I); break; } #endregion #region FloodDemonBox case 723993: { Mob Demon = new Mob("102 FloodDemon 1 217 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 300 False"); Demon.EntityID = 450; Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map]; DMap D = (DMap)DMaps.H_DMaps[Loc.Map]; Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon); _Mob.Loc = new NewestCOServer.Game.********(); _Mob.Loc.Map = Loc.Map; _Mob.Loc.X = Loc.X; _Mob.Loc.Y = Loc.Y; _Mob.StartLoc = _Mob.Loc; _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID)) _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); MapMobs.Add(_Mob.EntityID, _Mob); RemoveItem(I); break; } #endregion #region HeavenDemonBox case 723994: { Mob Demon = new Mob("103 HeavenDemon 1 252 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 300 False"); Demon.EntityID = 450; Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map]; DMap D = (DMap)DMaps.H_DMaps[Loc.Map]; Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon); _Mob.Loc = new NewestCOServer.Game.********(); _Mob.Loc.Map = Loc.Map; _Mob.Loc.X = Loc.X; _Mob.Loc.Y = Loc.Y; _Mob.StartLoc = _Mob.Loc; _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID)) _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); MapMobs.Add(_Mob.EntityID, _Mob); RemoveItem(I); break; } #endregion #region ChaosDemonBox case 723995: { Mob Demon = new Mob("104 ChaosDemon 1 225 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 300 False"); Demon.EntityID = 450; Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map]; DMap D = (DMap)DMaps.H_DMaps[Loc.Map]; Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon); _Mob.Loc = new NewestCOServer.Game.********(); _Mob.Loc.Map = Loc.Map; _Mob.Loc.X = Loc.X; _Mob.Loc.Y = Loc.Y; _Mob.StartLoc = _Mob.Loc; _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID)) _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); MapMobs.Add(_Mob.EntityID, _Mob); RemoveItem(I); break; } #endregion #region SacredDemonBox case 723996: { Mob Demon = new Mob("105 SacredDemon 1 950 50 50000 500 85 0 250 750 10 100 2 True 6 10000 50000 1500 300 False"); Demon.EntityID = 450; Hashtable MapMobs = (Hashtable)Game.World.H_Mobs[Loc.Map]; DMap D = (DMap)DMaps.H_DMaps[Loc.Map]; Game.Mob _Mob = new NewestCOServer.Game.Mob(Demon); _Mob.Loc = new NewestCOServer.Game.********(); _Mob.Loc.Map = Loc.Map; _Mob.Loc.X = Loc.X; _Mob.Loc.Y = Loc.Y; _Mob.StartLoc = _Mob.Loc; _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); while (Game.World.H_Chars.Contains(_Mob.EntityID) || MapMobs.Contains(_Mob.EntityID)) _Mob.EntityID = (uint)Program.Rnd.Next(400000, 500000); MapMobs.Add(_Mob.EntityID, _Mob); RemoveItem(I); break; } #endregion و تضيف الان بي سي ده كود PHP: #region DemonBoxDealercase 12677:{ if (Control == 0) { GC.AddSend(Packets.NPCSay("I am the DemonBoxDealer. To buy a DemonBox you need 50k CP's. Please choose:")); GC.AddSend(Packets.NPCLink("DemonBox", 1)); GC.AddSend(Packets.NPCLink("AncientDemon", 2)); GC.AddSend(Packets.NPCLink("FloodDemon", 3)); GC.AddSend(Packets.NPCLink("HeavenDemon", 4)); GC.AddSend(Packets.NPCLink("ChaosDemon", 5)); GC.AddSend(Packets.NPCLink("SacredDemon", 6)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } if (Control == 1) { if (GC.MyChar.CPs >= 50000) { GC.MyChar.CPs -= 50000; GC.MyChar.AddItem(723991); GC.AddSend(Packets.NPCSay("Here you are.")); GC.AddSend(Packets.NPCLink("Thanks", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You do not have enough CP's")); GC.AddSend(Packets.NPCLink("Damn", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } if (Control == 2) { if (GC.MyChar.CPs >= 50000) { GC.MyChar.CPs -= 50000; GC.MyChar.AddItem(723992); GC.AddSend(Packets.NPCSay("Here you are.")); GC.AddSend(Packets.NPCLink("Thanks", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You do not have enough CP's")); GC.AddSend(Packets.NPCLink("Damn", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } if (Control == 3) { if (GC.MyChar.CPs >= 50000) { GC.MyChar.CPs -= 50000; GC.MyChar.AddItem(723993); GC.AddSend(Packets.NPCSay("Here you are.")); GC.AddSend(Packets.NPCLink("Thanks", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You do not have enough CP's")); GC.AddSend(Packets.NPCLink("Damn", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } if (Control == 4) { if (GC.MyChar.CPs >= 50000) { GC.MyChar.CPs -= 50000; GC.MyChar.AddItem(723994); GC.AddSend(Packets.NPCSay("Here you are.")); GC.AddSend(Packets.NPCLink("Thanks", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You do not have enough CP's")); GC.AddSend(Packets.NPCLink("Damn", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } if (Control == 5) { if (GC.MyChar.CPs >= 50000) { GC.MyChar.CPs -= 50000; GC.MyChar.AddItem(723995); GC.AddSend(Packets.NPCSay("Here you are.")); GC.AddSend(Packets.NPCLink("Thanks", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You do not have enough CP's")); GC.AddSend(Packets.NPCLink("Damn", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } if (Control == 6) { if (GC.MyChar.CPs >= 50000) { GC.MyChar.CPs -= 50000; GC.MyChar.AddItem(723996); GC.AddSend(Packets.NPCSay("Here you are.")); GC.AddSend(Packets.NPCLink("Thanks", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } else { GC.AddSend(Packets.NPCSay("You do not have enough CP's")); GC.AddSend(Packets.NPCLink("Damn", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } break;}#endregion كود PHP: 12677 4812 2 0 1002 441 365 و كده مبروك عليك و متنساش تنزل الباتش لينك التحميل من " هــــــــــنا "كنتم مع افضل كودر تهيس انشاء الله | |
|