منتدي اكواد

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

محمد ياسر 2019-04-20 11:13 AM

متجر شحن داخل اللعبه
 


السلام عليكم ورحمة الله وبركاته

متجر الشحن داخل اللعبه

ده عباره عن نقاط بتديه للاعب ويروح للانبي سي يكلمه ويديله الحاجه الي هو عايزه بالنقاط الي معه

يلا نبداء

كلاس Entity Table

ابحث عن

كود PHP:

public static bool LoadEntity(Client.GameClient client

تحتيه ضيف

كود PHP:

client.Entity.AvenGer reader.ReadUInt32("AvenGer"); 

ايجيلك ايروا كمل لاخر علشان نتخلص منه

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

كود PHP:

.Set("Money"e.Money

ضيف ده تحتيه

كود PHP:

.Set("AvenGer"e.AvenGer

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

ابحث عن

كود PHP:

public InnerPower InnerPower

ضيف تحته

كود PHP:

public uint AvenGer

في كلاس npcs.cs

كود PHP:

#region TQ Avenger-co System
case 121998:
{
switch (
npcRequest.OptionID)
{
case 
0:
{
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 "1);
dialog.Option("1000.000.000 <50> ConquerAssuit Point "2);
dialog.Option("VIP 7 <50> ConquerAssuit Point "3);
dialog.Option("Soul P9 WindWalker <100> ConquerAssuit Point"4);
dialog.Option("Soul P9 Bruce_Lee <100> ConquerAssuit Point"5);
dialog.Option("Soul P9 ninja <100> ConquerAssuit Point"6);
dialog.Option("Soul P9 Monk <100> ConquerAssuit Point"7);
dialog.Option("Soul P9 Fire And Water <100> ConquerAssuit Point"8);
dialog.Option("Soul P9 Trojan <100> ConquerAssuit Point"9);
dialog.Option("Soul P9 Pirate <100> ConquerAssuit Point"10);
dialog.Option("Soul P9 Warrior <100> ConquerAssuit Point"11);
dialog.Option("Soul P9 Archer <100> ConquerAssuit Point"12);
//dialog.Option("Garment&Mount&Cup", 21); 
// dialog.Option("Shops", 22); 
//dialog.Option("SoulsP7", 28); 
dialog.Send();
break;
}
case 
1:
{
dialog.Text("Are You Sure To Buy ColdPrize");
dialog.Option("Yes"100);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
2:
{
dialog.Text("Are You Sure To Buy 1000.000.000");
dialog.Option("Yes"101);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
3:
{
dialog.Text("Are You Sure To Buy VIP 7");
dialog.Option("Yes"103);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
4:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"104);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
5:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"105);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
6:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"106);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
7:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"107);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
8:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"108);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
9:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"109);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
10:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"110);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
11:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"111);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
12:
{
dialog.Text("Are You Sure To Buy Soul P9");
dialog.Option("Yes"112);
dialog.Option("No"255);
dialog.Send();
break;
}
case 
20:
{
client.Entity.Teleport(50505151);
break;
}
case 
100:
{
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 
111:
{
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;
}
case 
28:
{
client.Entity.Teleport(1998294285);
break;
}
}
break;
}
#endregion 

الايتمات غيره علي حسب سيرفيرك في الانبي سي

لان هنا انا حاطط صولات 9 و 8 وممكن سيرفيرك ميكنش فيه كده

خلينا نعرف يشتغل كيف

كود PHP:

if (client.Entity.AvenGer >= 50

اتلقي فيه اسطر بالشكل كده 50 جنيه ده الي هو رصيد لو معاك 50 جنيه تقدر تشتري العرض وهكذا كل عرض سعره بيختلف علي حسب مانت عايزه يكون بكام

روح النفي كات

في ملف الاعبين اضغط كلك يمين

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

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

ذي ما في الصوره كده

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
اتملي الاسطر ده ذي ما موجوده كده

عفواً لايمكن عرض الروابط إلا بعد الرد على الموضوع
بعد كده اعمل حفظ كده خلصنا

ملاحظه قبل ما تدي حد نقاط من القاعده خليه يقف حسابه الاول




الساعة الآن 02:47 AM

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