ChuMChuM |
06-01-2012 07:28 AM |
حصــــريا على عرب تهيس تصليح نبسي السوكت الفي البارد
حصريا وعلى منتدانا الكريم بدون تعب شديد يعنى بس الحمد لله تم :
تصليح نبسي السوكت الفي البارد فى سورس كودر
======================================
ارجو عند نقل الموضوع ذكر المصدر :عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
وصاحب الموضوع :Diehard248
======================================
ضيف الكود في الملف الاتي في السورس
Dialogs.cs
كود PHP:
#region ArtisanOu case 41: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Hello there my friend. I am here to make your socket your weapon. With a socketed weapon you can add gems inside of the sockets and the gems will give you some extra stats. For the first socket I demand 1 DragonBall and for the second one I demand 5 dragonballs."); dialog.Link("Alright let's go on.", 1); dialog.Send(); break; } case 1: { if (!client.Equipment.Free(4)) { Conquer_Online_Server.Interfaces.IConquerItem Item = null; Item = client.Equipment.TryGetItem(4); if (Item.SocketOne == Conquer_Online_Server.Game.Enums.Gem.NoSocket) { dialog.Text("My friend I need one DragonBall to socket your weapon. Are you sure you want to do this?"); dialog.Link("Yea sure.", 2); dialog.Send(); } else if (Item.SocketTwo == Conquer_Online_Server.Game.Enums.Gem.NoSocket) { dialog.Text("My friend I need five dragonballs to socket your weapon. Are you sure you want to do this?"); dialog.Link("Yea sure.", 2); dialog.Send(); } else { dialog.Text("I can't socket this weapon once more."); dialog.Link("Alright.", 255); dialog.Send(); } } else { dialog.Text("You need to wear the weapon first."); dialog.Link("Alright.", 255); dialog.Send(); } break; } case 2: { if (!client.Equipment.Free(4)) { Conquer_Online_Server.Interfaces.IConquerItem Item = null; Item = client.Equipment.TryGetItem(4); if (Item.SocketOne == Conquer_Online_Server.Game.Enums.Gem.NoSocket) { if (client.Inventory.Contains(1088000, 1)) { client.Inventory.Remove(1088000, 1); Item.SocketOne = Conquer_Online_Server.Game.Enums.Gem.EmptySocket; Item.Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update; Item.Send(client); Conquer_Online_Server.Database.ConquerItemTable.UpdateItem(Item, client); dialog.Text("Done!"); dialog.Link("Thank you.", 255); dialog.Send(); } else { dialog.Text("You don't have one DragonBall!"); dialog.Link("Ah...", 255); dialog.Send(); } } else if (Item.SocketTwo == Conquer_Online_Server.Game.Enums.Gem.NoSocket) { if (client.Inventory.Contains(1088000, 5)) { client.Inventory.Remove(1088000, 5); Item.SocketTwo = Conquer_Online_Server.Game.Enums.Gem.EmptySocket; Item.Mode = Conquer_Online_Server.Game.Enums.ItemMode.Update; Item.Send(client); Conquer_Online_Server.Database.ConquerItemTable.UpdateItem(Item, client); dialog.Text("Done!"); dialog.Link("Thank you.", 255); dialog.Send(); } else { dialog.Text("You don't have one DragonBall!"); dialog.Link("Ah...", 255); dialog.Send(); } } } else { dialog.Text("You need to wear the weapon first."); dialog.Link("Alright.", 255); dialog.Send(); } break; } } break; } #endregion
وده هترفعو علي النفكات
كود PHP:
INSERT INTO `npcs` VALUES ('0041', '0', '0', 'ArtisanOu', '0002', '0370', '-1', '1015', '0756', '0545', '50200', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', 'ÃŽÃÅÂ', '0000', '00', '00', '0000', '00', null);
تحياتي للجميع واتمني يكون الموضوع نال رضاكم
|