|
المشاركات 504 |
+التقييم 0.26 |
تاريخ التسجيل Jun 2019 |
الاقامة المنوفية |
نظام التشغيل windows Server 2012R2 |
رقم العضوية 325 |
كلاس Entity Table
public static bool LoadEntity(Client.GameClient client)
client.Entity.AvenGer = reader.ReadUInt32("AvenGer");
.Set("Money", e.Money)
.Set("AvenGer", e.AvenGer)
public uint AvenGer;
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(2100075, 0, 1, 12, 1);
}
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(626439, 2152271, 6, 12, 12, 1, true, false);//DragonFan
client.Inventory.AddSoul(626439, 2152271, 6, 12, 12, 1, true, false);//DragonFan
client.Inventory.AddSoul(101309, 2152252, 6, 12, 12, 1, true, false);//Armor
client.Inventory.AddSoul(170309, 2152250, 6, 12, 12, 1, true, false);//Hat
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(617439, 2152266, 6, 12, 12, 1, true, false);//SkyNunchaku
client.Inventory.AddSoul(617439, 2152266, 6, 12, 12, 1, true, false);//SkyNunchaku
client.Inventory.AddSoul(138309, 2152252, 6, 12, 12, 1, true, false);//Bruce_LeeArmor
client.Inventory.AddSoul(148309, 2152250, 6, 12, 12, 1, true, false);//Bruce_LeeHood
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(616439, 2152260, 6, 12, 12, 1, true, false);//Katana
client.Inventory.AddSoul(616439, 2152260, 6, 12, 12, 1, true, false);//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(135309, 2152252, 6, 12, 12, 1, true, false);//ArmorNinja
client.Inventory.AddSoul(123309, 2152250, 6, 12, 12, 1, true, false);//NinjaHood
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(622439, 2152259, 6, 12, 12, 1, true, false);//Beads
client.Inventory.AddSoul(622439, 2152259, 6, 12, 12, 1, true, false);//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(136309, 2152252, 6, 12, 12, 1, true, false);//ArmorMonk
client.Inventory.AddSoul(143309, 2152250, 6, 12, 12, 1, true, false);//CapMonk
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(421439, 2152261, 6, 12, 12, 1, true, false);//BackSword
client.Inventory.AddSoul(620439, 2152262, 6, 12, 12, 1, true, false);//ImperialBacksword
//client.Inventory.AddSoul(619439, 801104, 6, 12, 12, 1, true, false);
client.Inventory.AddSoul(134309, 2152252, 6, 12, 12, 1, true, false);//ArmorFire
client.Inventory.AddSoul(114309, 2152250, 6, 12, 12, 1, true, false);//CapFire
client.Inventory.AddSoul(152279, 2152251, 6, 12, 12, 1, true, false);//Bracelet
client.Inventory.AddSoul(121269, 2152256, 6, 12, 12, 1, true, false);//Bag
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(480439, 2152260, 6, 12, 12, 1, true, false);//Clup
client.Inventory.AddSoul(614429, 2152260, 6, 12, 12, 1, true, false);//ShadowCrossSaber
client.Inventory.AddSoul(614429, 2152260, 6, 12, 12, 1, true, false);//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(130309, 2152252, 6, 12, 12, 1, true, false);//ArmorTrojan
client.Inventory.AddSoul(118309, 2152250, 6, 12, 12, 1, true, false);//CapTrojan
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(611439, 2152264, 6, 12, 12, 1, true, false);//Rapier
client.Inventory.AddSoul(612439, 2152263, 6, 12, 12, 1, true, false);//Pistol
client.Inventory.AddSoul(139309, 2152252, 6, 12, 12, 1, true, false);//ArmorPirate
client.Inventory.AddSoul(144309, 2152250, 6, 12, 12, 1, true, false);//CapPirate
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(560439, 2152268, 6, 12, 12, 1, true, false);//Spear
client.Inventory.AddSoul(900309, 2152267, 6, 12, 12, 1, true, false);//Shield
client.Inventory.AddSoul(131309, 2152252, 6, 12, 12, 1, true, false);//ArmorWarrior
client.Inventory.AddSoul(111309, 2152250, 6, 12, 12, 1, true, false);//CapWarrior
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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(613429, 2152265, 6, 12, 12, 1, true, false);//Knife
client.Inventory.AddSoul(613429, 2152265, 6, 12, 12, 1, true, false);//Knife
//client.Inventory.AddSoul(500429, 800618, 6, 12, 12, 1, true, false);//Bow
client.Inventory.AddSoul(133309, 2152252, 6, 12, 12, 1, true, false);//ArmorArcher
client.Inventory.AddSoul(113309, 2152250, 6, 12, 12, 1, true, false);//CapArcher
client.Inventory.AddSoul(120269, 2152251, 6, 12, 12, 1, true, false);//Necklace
client.Inventory.AddSoul(150269, 2152254, 6, 12, 12, 1, true, false);//Ring
client.Inventory.AddSoul(160249, 2152253, 6, 12, 12, 1, true, false);//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:", 124, 14);
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:", 142, 100);
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
AvenGer bigint 18 0 -1 0 0 0 0 0 0 0 0 0 0
300121 ChargeSystem 2 29680 1002 313 290
الذين يشاهدون محتوى الموضوع الآن : 148 ( الأعضاء 0 والزوار 148) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
متجر شحن البوشي v2 | محمد ياسر | تطوير سيرفرات كونكر | 32 | 2023-07-09 03:06 PM |
متجر شحن ذي البوشي | محمد ياسر | تطوير سيرفرات كونكر | 38 | 2023-07-09 03:04 PM |
صنع متجر شوب ميل | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-06-25 10:49 PM |
متجر شحن داخل اللعبه | محمد ياسر | تطوير سيرفرات كونكر | 0 | 2019-04-20 11:13 AM |