عرض مشاركة واحدة
احصائياتى

الردود
35

المشاهدات
23252
 
osama

osama is on a distinguished road

    غير متواجد

المشاركات
504

+التقييم
0.23

تاريخ التسجيل
Jun 2019

الاقامة

نظام التشغيل

رقم العضوية
325
2019-08-09, 02:51 AM
المشاركة 1 
#1  
gifts متجر شحن كامل متكامل فكرة جامدة جدا
انشاء الله فكرتى تعجبكم

يلا نبداء


كود:
كلاس Entity Table 

ابحث عن


كود:
public static bool LoadEntity(Client.GameClient client

تحتيه ضيف


كود:
client.Entity.AvenGer reader.ReadUInt32("AvenGer"); 

في نفس الكلاس ابحث عن


كود:
.Set("Money"e.Money

ضيف ده تحتيه


كود:
.Set("AvenGer"e.AvenGer

ادخل علي كلاس Entity.cs او Player.cs

public InnerPower InnerPower;

لو مش موجود حط الكود دا فى اي حتة مش شرط


كود:
public uint AvenGer

في كلاس GameState هنبحث عن الكود دا


كود:
public bool Fake

ونضيف تحتو علطول دول


كود:
#region Charge
        
public string Username;
        public 
string Numberofcard;
        
#endregion 

وده الانبي سي


كود:
#region Charge System Captin-Osama
                
case 300121:
                        {
                            switch (
npcRequest.OptionID)
                            {
                                case 
0:
                                    {
                                        
dialog.Text("Welcome to the EgyArmy-Co[Helpdesk]. Do you want to charge?");
                                        
dialog.Option("Charge"1);
                                        
dialog.Option("ChargePoint"55);
                                        
dialog.Option("ShopCharge"57);
                                        
dialog.Option("Not now."255);
                                        
dialog.Avatar(175);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
1:
                                    {
                                        
dialog.Text("Welcome to the helpdesk. Do you want to charge?");
                                        
dialog.Option("yes"100);
                                        
dialog.Option("Not Now"255);
                                        
dialog.Avatar(0x5f);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
100://New Charge     
                                    
{
                                        
dialog.Text("Hello. I'm the one that was choosen to Make your Charge.");
                                        
dialog.Option("I want to Charge."102);
                                        
dialog.Option("Nooooo."255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
55:
                                    {
                                        
dialog.Text("your ChargePoint?");
                                        
using (var command = new Database.MySqlCommand(Database.MySqlCommandType.SELECT))
                                        {
                                            
command.Select("entities").Where("UID"client.Entity.UID);
                                            
using (var reader = new Database.MySqlReader(command))
                                            {
                                                while (
reader.Read())
                                                {

                                                    
dialog.Option(" " reader.ReadString("AvenGer") + " "102);
                                                }
                                            }
                                        }
                                        
dialog.Option("Back*To*charge"255);
                                        
dialog.Send();
                                        break;
                                    }
                                
#region Charge Items
                                
case 57:    
                                    {
                                        
dialog.Text("Welcome In TQ ConquerAssuit-co System You'r ConquerAssuit Point Is  " client.Entity.AvenGer "   See What You Need To Buy");
                                        
dialog.Option("ColdPrize <50> ConquerAssuit Point "111);
                                        
dialog.Option("1000.000.000 <50> ConquerAssuit Point "99);
                                        
dialog.Option("VIP 7 <50> ConquerAssuit Point "88);
                                        
dialog.Option("Soul P9 WindWalker <100> ConquerAssuit Point"77);
                                        
dialog.Option("Soul P9 Bruce_Lee <100> ConquerAssuit Point"66);
                                        
dialog.Option("Soul P9 ninja <100> ConquerAssuit Point"19);
                                        
dialog.Option("Soul P9 Monk <100> ConquerAssuit Point"44);
                                        
dialog.Option("Soul P9 Fire And Water <100> ConquerAssuit Point"33);
                                        
dialog.Option("Soul P9 Trojan <100> ConquerAssuit Point"22);
                                        
dialog.Option("Soul P9 Pirate <100> ConquerAssuit Point"17);
                                        
dialog.Option("Soul P9 Warrior <100> ConquerAssuit Point"123);
                                        
dialog.Option("Soul P9 Archer <100> ConquerAssuit Point"14);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
111:
                                    {
                                        
dialog.Text("Are You Sure To Buy ColdPrize");
                                        
dialog.Option("Yes"23);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
99:
                                    {
                                        
dialog.Text("Are You Sure To Buy 1000.000.000");
                                        
dialog.Option("Yes"101);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
88:
                                    {
                                        
dialog.Text("Are You Sure To Buy VIP 7");
                                        
dialog.Option("Yes"103);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
77:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"104);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
66:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"105);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
19:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"106);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
44:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"107);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
33:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"108);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
22:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"109);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
17:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"110);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
123:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"28);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
14:
                                    {
                                        
dialog.Text("Are You Sure To Buy Soul P9");
                                        
dialog.Option("Yes"112);
                                        
dialog.Option("No"255);
                                        
dialog.Send();
                                        break;
                                    }
                                case 
23:
                                    {
                                        if (
client.Entity.AvenGer >= 50)
                                        {
                                            
client.Entity.AvenGer -= 50;
                                            
client.Inventory.Add(210007501121);
                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
101:
                                    {
                                        if (
client.Entity.AvenGer >= 50)
                                        {
                                            
client.Entity.AvenGer -= 50;
                                            
client.Entity.ConquerPoints += 1000000000;
                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
103:
                                    {
                                        if (
client.Entity.AvenGer >= 50)
                                        {
                                            
client.Entity.AvenGer -= 50;
                                            
client.Entity.VIPLevel 7;
                                        }
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
104:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(6264392152271612121truefalse);//DragonFan  
                                            
client.Inventory.AddSoul(6264392152271612121truefalse);//DragonFan    
                                            
client.Inventory.AddSoul(1013092152252612121truefalse);//Armor  
                                            
client.Inventory.AddSoul(1703092152250612121truefalse);//Hat  
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot   
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
105:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(6174392152266612121truefalse);//SkyNunchaku       
                                            
client.Inventory.AddSoul(6174392152266612121truefalse);//SkyNunchaku        
                                            
client.Inventory.AddSoul(1383092152252612121truefalse);//Bruce_LeeArmor        
                                            
client.Inventory.AddSoul(1483092152250612121truefalse);//Bruce_LeeHood        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot 
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
106:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
// client.Inventory.AddSoul(511439, 2152260, 6, 12, 12, 1, true, false);//Scythe      
                                            // client.Inventory.AddSoul(511439, 2152260, 6, 12, 12, 1, true, false);//Scythe      
                                            
client.Inventory.AddSoul(6164392152260612121truefalse);//Katana      
                                            
client.Inventory.AddSoul(6164392152260612121truefalse);//Katana      
                                            //client.Inventory.AddSoul(601439, 800111, 6, 12, 12, 1, true, false);//Katana      
                                            //client.Inventory.AddSoul(601439, 800111, 6, 12, 12, 1, true, false);//Katana      
                                            //client.Inventory.AddSoul(601439, 800142, 6, 12, 12, 1, true, false);//Katana        
                                            //client.Inventory.AddSoul(601439, 800142, 6, 12, 12, 1, true, false);//Katana        
                                            
client.Inventory.AddSoul(1353092152252612121truefalse);//ArmorNinja        
                                            
client.Inventory.AddSoul(1233092152250612121truefalse);//NinjaHood        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot          
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
107:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(6224392152259612121truefalse);//Beads        
                                            
client.Inventory.AddSoul(6224392152259612121truefalse);//Beads   
                                            // client.Inventory.AddSoul(610439, 2152259, 6, 12, 12, 1, true, false);//Beads        
                                            //client.Inventory.AddSoul(610439, 2152259, 6, 12, 12, 1, true, false);//Beads        
                                            
client.Inventory.AddSoul(1363092152252612121truefalse);//ArmorMonk        
                                            
client.Inventory.AddSoul(1433092152250612121truefalse);//CapMonk        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot         
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
108:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(4214392152261612121truefalse);//BackSword        
                                            
client.Inventory.AddSoul(6204392152262612121truefalse);//ImperialBacksword      
                                            //client.Inventory.AddSoul(619439, 801104, 6, 12, 12, 1, true, false); 
                                            
client.Inventory.AddSoul(1343092152252612121truefalse);//ArmorFire        
                                            
client.Inventory.AddSoul(1143092152250612121truefalse);//CapFire        
                                            
client.Inventory.AddSoul(1522792152251612121truefalse);//Bracelet        
                                            
client.Inventory.AddSoul(1212692152256612121truefalse);//Bag        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot    
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
109:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(4804392152260612121truefalse);//Clup      
                                            
client.Inventory.AddSoul(6144292152260612121truefalse);//ShadowCrossSaber      
                                            
client.Inventory.AddSoul(6144292152260612121truefalse);//ShadowCrossSaber      
                                            //client.Inventory.AddSoul(410439, 800111, 6, 12, 12, 1, true, false);//Blade        
                                            //client.Inventory.AddSoul(420439, 800111, 6, 12, 12, 1, true, false);//Sword        
                                            
client.Inventory.AddSoul(1303092152252612121truefalse);//ArmorTrojan        
                                            
client.Inventory.AddSoul(1183092152250612121truefalse);//CapTrojan        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot       
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
110:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(6114392152264612121truefalse);//Rapier        
                                            
client.Inventory.AddSoul(6124392152263612121truefalse);//Pistol        
                                            
client.Inventory.AddSoul(1393092152252612121truefalse);//ArmorPirate        
                                            
client.Inventory.AddSoul(1443092152250612121truefalse);//CapPirate        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot        
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
28:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(5604392152268612121truefalse);//Spear        
                                            
client.Inventory.AddSoul(9003092152267612121truefalse);//Shield        
                                            
client.Inventory.AddSoul(1313092152252612121truefalse);//ArmorWarrior        
                                            
client.Inventory.AddSoul(1113092152250612121truefalse);//CapWarrior        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot       
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                case 
112:
                                    {
                                        if (
client.Entity.AvenGer >= 100)
                                        {
                                            
client.Entity.AvenGer -= 100;
                                            
client.Inventory.AddSoul(6134292152265612121truefalse);//Knife        
                                            
client.Inventory.AddSoul(6134292152265612121truefalse);//Knife        
                                            //client.Inventory.AddSoul(500429, 800618, 6, 12, 12, 1, true, false);//Bow        
                                            
client.Inventory.AddSoul(1333092152252612121truefalse);//ArmorArcher        
                                            
client.Inventory.AddSoul(1133092152250612121truefalse);//CapArcher        
                                            
client.Inventory.AddSoul(1202692152251612121truefalse);//Necklace        
                                            
client.Inventory.AddSoul(1502692152254612121truefalse);//Ring        
                                            
client.Inventory.AddSoul(1602492152253612121truefalse);//Boot      
                                        
}
                                        else
                                        {
                                            
dialog.Text("You don't have enough ConquerAssuit Point");
                                            
dialog.Option("Sorry"255);
                                            
dialog.Send();
                                        }
                                        break;
                                    }
                                
#endregion
                                
case 102:
                                    try
                                    {
                                        
string Numberofcard;
                                        
Numberofcard npcRequest.Input;
                                        
client.Numberofcard Numberofcard;
                                        
dialog.Text("Please insert Card Number.");
                                        
dialog.Input("Here:"12414);
                                        
dialog.Option("No."110);
                                        
dialog.Send();
                                        break;
                                    }
                                    catch
                                    {
                                        
dialog.Text("Please write the correct value.");
                                        
dialog.Option("Try Again."106);
                                        
dialog.Option("Quit."110);
                                        
dialog.Send();
                                    }
                                    break;
                                
//////////////////////////////////////////  
                                
case 124:
                                    try
                                    {
                                        
string Numberofcard;
                                        
Numberofcard npcRequest.Input;
                                        
client.Numberofcard Numberofcard;
                                        if (
Numberofcard == client.Numberofcard)
                                        {
                                            
dialog.Text("Please insert Card Number again.");
                                            
dialog.Input("Here:"142100);
                                            
dialog.Option("No."10);
                                        }
                                        else
                                        {
                                            
dialog.Text("Wrong Code.");
                                            
dialog.Option("Alright."10);
                                        }
                                        
dialog.Send();
                                        break;
                                    }
                                    catch
                                    {
                                        
dialog.Text("Please write the correct value.");
                                        
dialog.Option("Try Again."7);
                                        
dialog.Option("Quit."0xff);
                                        
dialog.Send();
                                    }
                                    break;
                                
//////////////////////////////////////////  
                                
case 142:
                                    {
                                        
string Numberofcard;
                                        
Numberofcard npcRequest.Input;
                                        
client.Numberofcard Numberofcard;
                                        
string str2 client.Socket.IP.ToString().Split(new char[] { ':' })[0].ToString();
                                        
client.Account.IP str2;
                                        
using (var cmd = new MySqlCommand(MySqlCommandType.INSERT))
                                            
cmd.Insert("Charge")
                                            .
Insert("Username"client.Entity.Name)
                                            .
Insert("Numberofcard"client.Numberofcard)
                                            .
Execute();
                                        
client.Username "";
                                        
client.Numberofcard "";
                                        
dialog.Text("New Charge Successfully Done. || All rights® reserved to CaptinOsama ©");
                                        
dialog.Option("Wait GM."255);
                                        
dialog.Send();
                                        break;
                                    }
                            }
                            break;
                        }
                
#endregion 


نخش على الاضافة فى النفى كات

في ملف الاعبين الى اسمة entities اضغط كلك يمين ونعمل Design Table وهنضيف التابل دة فية [/CENTER]

زى كدا



اتعمل علامه + او add



اتملي الاسطر ده ذي ما موجوده كده

او ضفها الكود اهو


كود:
AvenGer bigint 18 0 -1 0 0 0 0 0 0 0 0 0 0

زى كدا



ودا الانبى سى هنضيفو فى النفى كات فى تابل Npcs [/CENTER]


كود:
 300121    ChargeSystem    2    29680    1002    313    290 

كدا تمام نحمل الملف دة ونرفعو فى القاعدة

عفواً لايمكن عرض الرابط إلا بعد الرد على الموضوع

بص بئا يا نجم طبعا بعد ما الاعب يشحن هيجيلك الكود فى تابل Charge وانتة تجربو شغال ولا لو شغال هتعوز تديلو نقط علشان يشترى الايتم الى انتة عملها فى الانبى سى الى فى الاضافة

تقوم تعمل اية بعدها هتروح لى ملف entities وترجع لى اخر كلمة هتلااقى كلمة اسمها Avenger دا هتحط فية الرصيد الى هوا شحنة بس عن شرط لاازم يكون قافل الاكونت علشان النقات توصلو

دة كل الحوار يا رجالة انشاء الله الفكرة تعجبكو

مفيش هدية بئا يا حازم على التعب دة بقالى يجي اكتر من سعتين عمال افكر اعمل اية فيها