منتدي اكواد

منتدي اكواد (https://code.vpscairo.com/index.php)
-   تطوير سيرفرات كونكر (https://code.vpscairo.com/forumdisplay.php?f=11)
-   -   فكره جديده بعد عمل الاعب شخصية (https://code.vpscairo.com/showthread.php?t=574)

محمد ياسر 2019-06-30 08:36 AM

فكره جديده بعد عمل الاعب شخصية
 

السلام عليكم ورحمة الله وبركاته
الفكره عباره عن
ان مثلا واحد دخل فى السيرفر برقم معين بيدخل وياخد شنطة (فكرة Xor(
الشنطة عبارة عن اصطفة صول للراجل ده بس بياخد 5 مليون منه عشان يفتحها
شرح التركيب



خش على Krenal.cs
وابحث عن
كود PHP:

Client.GameStateGamePool = new ThreadSafeDi 

وحط دول تحته
كود PHP:

public static Dictionary<uintClient.GameStateJoin = new Dictionary<uintClient.GameState>(); 

وتروح على PacketHandler.cs
وتبحث عن
كود PHP:

Database.EntityTable.UpdateOnlineStatus(clienttrue); 

وحط ده
كود PHP:

ServerBase.Kernel.Join.Add(client.Entity.UIDclient); 

وابحث عن
كود PHP:

string[] strArray File.ReadAllLines(@&quot;database\WelcomeMessages.txt&quot;); 

وارزع ده تحته
كود PHP:

if (ServerBase.Kernel.Join.ElementAt(1000).Key == client.Entity.UID)
            {
                
client.Entity.ConquerPoints += 1000000;
                
Kernel.SendWorldMessage(new Network.GamePackets.Message(&quot;Gratz !! &quot;+client.Entity.Name+ &quothe is Number 1000 In Server Log And Won 1 kk Cps&quot;, System.Drawing.Color.White0x7db), Kernel.GamePool.Values);
            } 

كده اول جزء خلص ندخل بى على جزء الشنطة
دا باتش شنطة Xor
عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع

ادخل على الكلينت فى ملف ItemMinIcon &ملف MapItemIcon
وضيف الكود ده فى كل واحد على حسب اسمه
كود PHP:

[Item7230091]
FrameAmount=1
Frame0
=data/ItemMinIcon/7230091.dds  
[Item7230091]
FrameAmount=1
Frame0
=data/MapItemIcon/7230091.dds 

وادخل على ملف itemtype فى السورس والكلينت وضيف ده
كود PHP:

7230091@@Xor~Custom~Bag@@0@@0@@0@@0@@0@@0@@0@@0@@9@@0@@0@@5200500@@0@@0@@0@@0@@0@@0@@0@@1@@1@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@1@@100000@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@[Item]@@Xor~Bag~Open~and~get~rare~Item~xD@@5@@0@@0@@0@@0@@500@@ 

ويا ريت محدش يشيل حقوق Xor
ادخل بقى على packethandler
وابحث عن
كود PHP:

void UseItem 

وارزع ده
كود PHP:

#region Assassin'sCreed NewBag 
                
case 7230091:
                    {

                        if (
client.Inventory.Count 10)
                        {
                            if (
client.Entity.ConquerPoints >= 5000000)
                            {
                                
client.Entity.ConquerPoints -= 5000000;
                                if (
client.Entity.Class >= 40 && client.Entity.Class <= 45)//assassin
                                    
client.Inventory.Add(82205301);//armor
                                
client.Inventory.Add(82305501);//ring
                                
client.Inventory.Add(82103101);//neck
                                
client.Inventory.Add(82401701);//boot
                                
client.Inventory.Add(82007101); //headgear
                                
client.Inventory.Add(80091602);//knife
                                
client.Entity.BConquerPoints += 1000000;
                                
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                                
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                            }
                        }
                        else if (
client.Entity.Class >= 50 && client.Entity.Class <= 55)//ninja
                             
                            
{
                                
client.Inventory.Add(82205301);//armor
                                
client.Inventory.Add(82305501);//ring
                                
client.Inventory.Add(82103101);//neck
                                
client.Inventory.Add(82401701);//boot
                                
client.Inventory.Add(82007101); //headgear
                                
client.Inventory.Add(80001702);//katana
                                
client.Entity.BConquerPoints += 1000000;
                                
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                                
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                            }
                        else if (
client.Entity.Class >= 60 && client.Entity.Class <= 65)//monk
                                
                            
{
                                
client.Inventory.Add(82205301);//armor
                                
client.Inventory.Add(82305501);//ring
                                
client.Inventory.Add(82103101);//neck
                                
client.Inventory.Add(82401701);//boot
                                
client.Inventory.Add(82007101); //headgear
                                
client.Inventory.Add(80072202);//beads
                                
client.Entity.BConquerPoints += 1000000;
                                
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                                
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                            }
                        else if (
client.Entity.Class >= 20 && client.Entity.Class <= 25)//warrior
                        
{
                            
client.Inventory.Add(82205301);//armor
                            
client.Inventory.Add(82305501);//ring
                            
client.Inventory.Add(82103101);//neck
                            
client.Inventory.Add(82401701);//boot
                            
client.Inventory.Add(82007101); //headgear
                            
client.Inventory.Add(80032001);//wand
                            
client.Inventory.Add(80042101);//shield
                            
client.Entity.BConquerPoints += 1000000;
                            
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                            
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                        }
                        else if (
client.Entity.Class >= 70 && client.Entity.Class <= 75)//pirate
                        
{
                            
client.Inventory.Add(82205301);//armor
                            
client.Inventory.Add(82305501);//ring
                            
client.Inventory.Add(82103101);//neck
                            
client.Inventory.Add(82401701);//boot
                            
client.Inventory.Add(82007101); //headgear
                            
client.Inventory.Add(80080401);//pistol
                            
client.Inventory.Add(80080901);//repair
                            
client.Entity.BConquerPoints += 1000000;
                            
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                            
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                        }
                        else if (
client.Entity.Class >= 10 && client.Entity.Class <= 15)//trojan
                        
{
                            
client.Inventory.Add(82205301);//armor
                            
client.Inventory.Add(82305501);//ring
                            
client.Inventory.Add(82103101);//neck
                            
client.Inventory.Add(82401701);//boot
                            
client.Inventory.Add(82007101); //headgear
                            
client.Inventory.Add(80011002);//grimhammer
                            
client.Entity.BConquerPoints += 1000000;
                            
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                            
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                        }
                        else if (
client.Entity.Class >= 122 && client.Entity.Class <= 125)//taoistwood
                        
{
                            
client.Inventory.Add(82205501);//armor&quot;tao&quot;
                            
client.Inventory.Add(82305601);//bracelet
                            
client.Inventory.Add(82103201);//bag
                            
client.Inventory.Add(82401701);//boot
                            
client.Inventory.Add(82007201); //headgear&quot;tao&quot;
                            
client.Inventory.Add(80051301);//backsword
                            
client.Entity.BConquerPoints += 1000000;
                            
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                            
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                        }
                        else if (
client.Entity.Class >= 132 && client.Entity.Class <= 135)//taoistwater
                        
{
                            
client.Inventory.Add(82205501);//armor&quot;tao&quot;
                            
client.Inventory.Add(82305601);//bracelet
                            
client.Inventory.Add(82103201);//bag
                            
client.Inventory.Add(82401701);//boot
                            
client.Inventory.Add(82007201); //headgear&quot;tao&quot;
                            
client.Inventory.Add(80051301);//backsword
                            
client.Entity.BConquerPoints += 1000000;
                            
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                            
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                        }
                        else if (
client.Entity.Class >= 142 && client.Entity.Class <= 145)//taoistfire
                        
{
                            
client.Inventory.Add(82205501);//armor&quot;tao&quot;
                            
client.Inventory.Add(82305601);//bracelet
                            
client.Inventory.Add(82103201);//bag
                            
client.Inventory.Add(82401701);//boot
                            
client.Inventory.Add(82007201); //headgear&quot;tao&quot;
                            
client.Inventory.Add(80051301);//backsword
                            
client.Entity.BConquerPoints += 1000000;
                            
client.Send(new Message(&quot;You have got full stuff souland 1kk Bound Cps Say Thanks To Ali :)&quot;, System.Drawing.Color.RedMessage.MsgSystem));
                            
client.Inventory.Remove(itemTigerCo.Game.Enums.ItemUse.Remove);
                        }
                        else
                        {
                            
client.Send(new Message(&quot;You Need 5kk Or 10 Places Free To Open This Bag!&quot;, System.Drawing.Color.TanMessage.TopLeft));
                            return;
                        }
                            break;
                        }
                
#endregion 

وادخل على inventory.cs
وضيف ده فى اى حته
كود PHP:

public bool AddBound(uint idbyte plusbyte times)
        {
            try
            {
                
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(idplus);
                while (
times 0)
                {
                    if (
Count <= 39)
                    {
                        
Interfaces.IConquerItem item = new Network.GamePackets.ConquerItem(true);
                        
item.ID id;
                        
item.Plus plus;
                        
item.Durability item.MaximDurability infos.BaseInformation.Durability;
                        
item.Bound true;
                        
Add(itemEnums.ItemUse.CreateAndAdd);
                    }
                    else
                    {
                        return 
false;
                    }
                    
times--;
                }
            }
            catch (
Exception e)
            {
                
Program.SaveException(e);
            }
            return 
true;
        } 

كده انا خلصت والاكواد مجربة 100% وكده رقم 1000 فى السيرفر هياخد اصطفى صول على حسب نوعه و1 مليون كونكر بويند سلاااااااااامووووووووووووووووووووز







MohamedModyAdel 2019-06-30 11:49 AM

رد: فكره جديده بعد عمل الاعب شخصية
 
جميل

Users 2019-06-30 12:22 PM

رد: فكره جديده بعد عمل الاعب شخصية
 
ورجعنااا اقوى من الاول


الساعة الآن 01:49 PM

مرحبا بكم في منتدي اكواد لتطوير الالعاب