عرب كونكر تهيس | Conquer

عرب كونكر تهيس | Conquer (https://forum.vpscairo.com/index.php)
-   تطوير وشروحات وسورسات [5095] - Conquer Private Servers (https://forum.vpscairo.com/forumdisplay.php?f=67)
-   -   حصــــريا على عرب تهيس تصليح نبسي السوكت الفي البارد (https://forum.vpscairo.com/showthread.php?t=3495)

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(10880001))
                                            {
                                                
client.Inventory.Remove(10880001);
                                                
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(Itemclient);
                                                
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(10880005))
                                            {
                                                
client.Inventory.Remove(10880005);
                                                
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(Itemclient);
                                                
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 `npcsVALUES ('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); 

تحياتي للجميع واتمني يكون الموضوع نال رضاكم


الساعة الآن 09:57 PM.

Powered by vpscairo
Copyright ©2013 - 2025, Jelsoft Enterprises Ltd
Translation by tamer
Copyright ©2000-2024,vpscairo.com