المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ممكن طلب


loveosama
2019-09-08, 11:49 PM
طلب عايز انى بى سى بيدى اصطف +3 من غير 2 سوكت او دمج او hp او اى حاجه ويكون لفل قليل يعنى ف حدود ليفل 30




وانى بى سى كمان بيدى اصطف +12 بس من غير صول 7 او برفكشن ويكون في طبعا 2سوكت و7دمج و ال2 جيم و ال hp وليفل 140



وشكرا لكل واحد يساعدنى

Tefa
2019-09-09, 05:33 AM
packethandler.cs
سيرش
if (client.ActiveNpc
فوقها حط
#region Stuff +3 Bound.
if (client.ActiveNpc == 3000590)
{

if (client.Inventory.Contains(client.ActiveNpc, 1))
{
if (req.OptionID == 1)
{
if (client.Inventory.Count <= 30)
{
client.Inventory.AddBound998(420239, 0, 6, 0, 3, 2, true, false);//Sword
client.Inventory.AddBound998(410239, 0, 6, 0, 3, 2, true, false);//Blade
client.Inventory.AddBound998(130109, 0, 6, 0, 3, 1, true, false);//WarArmor
client.Inventory.AddBound998(118109, 0, 6, 0, 3, 1, true, false);//MonkCoronet
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//DragonNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true);//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true);//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
}
else if (req.OptionID == 2)
{
client.Inventory.AddBound998(560239, 0, 6, 0, 3, 1, true, false);//CopperWand
client.Inventory.AddBound998(900109, 0, 6, 0, 3, 1, true, false);//Shield*
client.Inventory.AddBound998(111109, 0, 6, 0, 3, 1, true, false);//FrostHeadband
client.Inventory.AddBound998(131109, 0, 6, 0, 3, 1, true, false);//BasaltArmor
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//DragonNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true);//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 3)
{
client.Inventory.AddBound998(613229, 0, 6, 0, 3, 2, true, false);//2~HadesKnife
client.Inventory.AddBound998(500229, 0, 6, 0, 3, 1, true, false);//RosewoodBow
client.Inventory.AddBound998(133109, 0, 6, 0, 3, 1, true, false);//RhinoCoat
client.Inventory.AddBound998(113109, 0, 6, 0, 3, 1, true, false);//SwanPlume
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//DragonNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true);//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 4)
{
client.Inventory.AddBound998(601239, 0, 6, 0, 3, 2, true, false);//LordKatana
client.Inventory.AddBound998(135209, 0, 6, 0, 3, 1, true, false);//MoonVest
client.Inventory.AddBound998(123109, 0, 6, 0, 3, 1, true, false);//CondorVeil
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//DragonNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true);//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true);//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 5)
{
client.Inventory.AddBound998(610239, 0, 6, 0, 3, 2, true, false);//BeadsOfConcentration
client.Inventory.AddBound997(900109, 0, 6, 0, 3, 1, true, false);//Shield*
client.Inventory.AddBound998(143109, 0, 6, 0, 3, 1, true, false);//HeadbandOfHolyLight
client.Inventory.AddBound998(136109, 0, 6, 0, 3, 1, true, false);//FrockOfAges
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//DragonNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 6)
{
client.Inventory.AddBound998(612239, 0, 6, 0, 3, 1, true, false);//WailingPistol
client.Inventory.AddBound998(611239, 0, 6, 0, 3, 1, true, false);//BloodRapier
client.Inventory.AddBound998(139109, 0, 6, 0, 3, 1, true, false);//TunaCoat
client.Inventory.AddBound998(144109, 0, 6, 0, 3, 1, true, false);//SurferHood
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//DragonNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 7)
{
client.Inventory.AddBound998(617239, 0, 6, 0, 3, 2, true, false);//SpiritNunchaku
client.Inventory.AddBound998(138109, 0, 6, 0, 3, 1, true, false);//CombatSuit(Lv.100)
client.Inventory.AddBound998(148109, 0, 6, 0, 3, 1, true, false);//ShadowHood
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//DiamondRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//PlatinaNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 8)
{
client.Inventory.AddBound997(421239, 0, 6, 0, 3, 1, true, false);//CloudBacksword
client.Inventory.AddBound997(114109, 0, 6, 0, 3, 1, true, false);//CraneCap
client.Inventory.AddBound997(134109, 0, 6, 0, 3, 1, true, false);//RoyalGown
client.Inventory.AddBound997(121219, 0, 6, 0, 3, 1, true, false);//GoldBag
client.Inventory.AddBound997(152249, 0, 6, 0, 3, 1, true, false);//BlueBracelet
client.Inventory.AddBound997(160219, 0, 6, 0, 3, 1, true, false);//KylinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
else if (req.OptionID == 9)
{
client.Inventory.AddBound998(626239, 0, 6, 0, 3, 2, true, false);//PrideFan Level:70
client.Inventory.AddBound998(170109, 0, 6, 0, 3, 1, true, false);//DarkCloudHat Level:70
client.Inventory.AddBound998(101109, 0, 6, 0, 3, 1, true, false);//MysticWindrobe Level:70
client.Inventory.AddBound998(150219, 0, 6, 0, 3, 1, true, false);//PearlRing
client.Inventory.AddBound998(120219, 0, 6, 0, 3, 1, true, false);//PlatinaNecklace
client.Inventory.AddBound998(160219, 0, 6, 0, 3, 1, true, false);//SnakeskinBoots
client.Inventory.Add989(201009, 3, 1, 0, 0, 0, 1, true); ;//SuperFan
client.Inventory.Add989(202009, 3, 1, 0, 0, 0, 1, true); ;//SuperTower
client.Inventory.AddBound996(203009, 0, 6, 0, 3, 1, true, false);//RidingCrop
client.Inventory.AddBound996(300000, 0, 6, 0, 3, 1, true, false);//Steed
client.Inventory.Add989(204009, 3, 1, 0, 0, 0, 1, true); ;//SuperWing
client.Inventory.Remove(client.ActiveNpc, 1);
}
}
}
#endregion
سيرش
#region Medicine
فوقها حط
#region Stuff +3
case 3000590:
{
Npcs dialog = new Npcs(client);
dialog.Avatar(item.ID);
dialog.Text("Hello " + client.Player.Name + ", I Give You Stuff +3 Bound If You Want To Get it Just Confirm.");
dialog.Option("[*Stuff*Ninja *]", 4);
dialog.Option("[*Stuff*Monk*]", 5);
dialog.Option("[*Stuff*Toaist*]", 8);
dialog.Option("[ Stuff*Trojan*]", 1);
dialog.Option("[*Stuff*Pirate*]", 6);
dialog.Option("[*Stuff*Warrior*]", 2);
dialog.Option("[*Stuff*Archer*]", 3);
dialog.Option("[*Stuff*LeeLong*]", 7);
dialog.Option("[*Stuff*Windwalker*]", 9);
dialog.Option("Cancel.", 255);
dialog.Send();
client.ActiveNpc = item.ID;
break;
}
#endregion

سيرش
public static void LoginMessages(
سيرش
if (client.ItemGive)
{
و ارمي ده جوه القوس
client.Inventory.AddBound996(3000590, 0, 0, 0, 0, 1, true, false);
كده كل اكونت جديد هينزل معاه شنطة اصتف +3

Tefa
2019-09-09, 05:35 AM
لو جالك ايرور في اي كلمه من بوند بيتضافوا ف Inventory .cs
public bool AddBound996(uint id, uint soulitem, uint purfylevel, uint timeofpurfy, byte plus, byte times, bool purfystabliz = false, bool bound = false)
{
try
{
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus);
while (times > 0)
{
if (Count <= 39)
{
ConquerItem item = new ConquerItem(true);

#region Stacksize
if (infos.BaseInformation.StackSize > 1)
{
ushort _StackCount = infos.BaseInformation.StackSize;
if (times <= infos.BaseInformation.StackSize)
_StackCount = (ushort)times;
item.StackSize = (ushort)_StackCount;
Database.ConquerItemTable.UpdateStack(item);
times -= (byte)_StackCount;
}
else
{
item = new ConquerItem(true);
item.StackSize = 1;
times--;
}
#endregion Stacksize
item.ID = id;
item.Plus = plus;
item.Bound = true;
item.Durability = item.MaximDurability = infos.BaseInformation.Durability;
item.StackSize = 1;
item.MaxStackSize = infos.BaseInformation.StackSize;
Database.ConquerItemTable.UpdatePerfection(item);
Add(item, Enums.ItemUse.CreateAndAdd);
if (purfystabliz == false)
{
#region purfy with out stablize
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
purify.AddedOn = DateTime.Now;
purify.Available = true;
purify.ItemUID = item.UID;
purify.PurificationLevel = purfylevel;
purify.PurificationDuration = timeofpurfy * 24 * 60 * 60;
purify.PurificationItemID = soulitem;
Database.ItemAddingTable.AddPurification(purify);
item.Purification = purify;
item.Mode = ahmedfathy.Game.Enums.ItemMode.Update;
item.Send(Owner);
ItemAdding effect = new ItemAdding(true);
effect.Type = ItemAdding.PurificationEffect;
effect.Append2(purify);
Owner.Send(effect);
#endregion
}
else
{
#region purfy with stabliz
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
purify.AddedOn = DateTime.Now;
purify.Available = true;
purify.ItemUID = item.UID;
purify.PurificationLevel = purfylevel;
purify.PurificationDuration = timeofpurfy * 24 * 60 * 60;
purify.PurificationItemID = soulitem;
Database.ItemAddingTable.AddPurification(purify);
item.Purification = purify;
item.Mode = ahmedfathy.Game.Enums.ItemMode.Update;
item.Send(Owner);
ItemAdding effect = new ItemAdding(true);
effect.Type = ItemAdding.PurificationEffect;
effect.Append2(purify);
Owner.Send(effect);
var Backup = item.Purification;
Backup.PurificationDuration = 0;
item.Purification = Backup;
item.Send(Owner);
effect.Type = ItemAdding.StabilizationEffect;
effect.Append2(Backup);
Owner.Send(effect);
Database.ItemAddingTable.Stabilize(item.UID, Backup.PurificationItemID);
#endregion
}
}
else
{
return false;
}
}
times--;
}
catch (Exception e)
{
Program.SaveException(e);
}
return true;
}

public bool Add989(uint id, byte plus, byte bless, byte enchant, byte onesoc, byte twosoc, byte times, bool bound = false)
{
try
{
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus);
while (times > 0)
{
ConquerItem _ExistingItem;
Database.ConquerItemInformation iteminfo = new Database.ConquerItemInformation(id, 0);
if (Owner.Inventory.Contains(iteminfo.BaseInformation .ID, bound, iteminfo.BaseInformation.StackSize, out _ExistingItem))
{
if (_ExistingItem.StackSize == 0)
_ExistingItem.StackSize = 1;
ushort _StackCount = iteminfo.BaseInformation.StackSize;
_StackCount -= (ushort)_ExistingItem.StackSize;
if (_StackCount >= 1)
_StackCount += 1;
_ExistingItem.StackSize += 1;
Database.ConquerItemTable.UpdateStack(_ExistingIte m);
_ExistingItem.Mode = Game.Enums.ItemMode.Update;
_ExistingItem.Send(Owner);
_ExistingItem.Mode = Game.Enums.ItemMode.Default;
}
else
{
if (Count <= 39)
{
ConquerItem item = new Network.GamePackets.ConquerItem(true);
item.ID = id;
item.Plus = plus;
item.Bless = bless;
item.Bound = bound;
item.TimeStamp = DateTime.Now;
item.Enchant = enchant;
if (onesoc == 1)
{
item.SocketOne = Game.Enums.Gem.EmptySocket;
}
if (twosoc == 1)
{
item.SocketTwo = Game.Enums.Gem.EmptySocket;
}
if (id == 201009 && onesoc == 103 && twosoc == 103)
{
item.SocketOne = Game.Enums.Gem.SuperThunderGem;
item.SocketTwo = Game.Enums.Gem.SuperThunderGem;
}
if (id == 202009 && onesoc == 123 && twosoc == 123)
{
item.SocketOne = Game.Enums.Gem.SuperGloryGem;
item.SocketTwo = Game.Enums.Gem.SuperGloryGem;
}
if (id == 204009 && onesoc == 103 && twosoc == 123)
{
item.SocketOne = Game.Enums.Gem.SuperThunderGem;
item.SocketTwo = Game.Enums.Gem.SuperGloryGem;
}
item.Durability = item.MaximDurability = infos.BaseInformation.Durability;
item.StackSize = 1;
item.MaxStackSize = infos.BaseInformation.StackSize;
Add(item, Enums.ItemUse.CreateAndAdd);
}
}
times--;
}
}
catch (Exception e)
{
Program.SaveException(e);
}
return true;
}

public bool AddBound998(uint id, uint soulitem, uint purfylevel, uint timeofpurfy, byte plus, byte times, bool purfystabliz = false, bool bound = false)
{
try
{
Database.ConquerItemInformation infos = new Database.ConquerItemInformation(id, plus);
while (times > 0)
{
if (Count <= 39)
{
ConquerItem item = new ConquerItem(true);

#region Stacksize
if (infos.BaseInformation.StackSize > 1)
{
ushort _StackCount = infos.BaseInformation.StackSize;
if (times <= infos.BaseInformation.StackSize)
_StackCount = (ushort)times;
item.StackSize = (ushort)_StackCount;
Database.ConquerItemTable.UpdateStack(item);
times -= (byte)_StackCount;
}
else
{
item = new ConquerItem(true);
item.StackSize = 1;
times--;
}
#endregion Stacksize
item.ID = id;
item.Plus = plus;
item.Bound = true;
item.Durability = item.MaximDurability = infos.BaseInformation.Durability;
item.StackSize = 1;
item.MaxStackSize = infos.BaseInformation.StackSize;
/*item.SocketOne = Game.Enums.Gem.SuperDragonGem;
item.SocketTwo = Game.Enums.Gem.SuperDragonGem;
item.Enchant = 225;
item.Bless = 7;*/
Database.ConquerItemTable.UpdatePerfection(item);
Add(item, Enums.ItemUse.CreateAndAdd);
if (purfystabliz == false)
{
#region purfy with out stablize
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
purify.AddedOn = DateTime.Now;
purify.Available = true;
purify.ItemUID = item.UID;
purify.PurificationLevel = purfylevel;
purify.PurificationDuration = timeofpurfy * 24 * 60 * 60;
purify.PurificationItemID = soulitem;
Database.ItemAddingTable.AddPurification(purify);
item.Purification = purify;
item.Mode = ahmedfathy.Game.Enums.ItemMode.Update;
item.Send(Owner);
ItemAdding effect = new ItemAdding(true);
effect.Type = ItemAdding.PurificationEffect;
effect.Append2(purify);
Owner.Send(effect);
#endregion
}
else
{
#region purfy with stabliz
ItemAdding.Purification_ purify = new ItemAdding.Purification_();
purify.AddedOn = DateTime.Now;
purify.Available = true;
purify.ItemUID = item.UID;
purify.PurificationLevel = purfylevel;
purify.PurificationDuration = timeofpurfy * 24 * 60 * 60;
purify.PurificationItemID = soulitem;
Database.ItemAddingTable.AddPurification(purify);
item.Purification = purify;
item.Mode = ahmedfathy.Game.Enums.ItemMode.Update;
item.Send(Owner);
ItemAdding effect = new ItemAdding(true);
effect.Type = ItemAdding.PurificationEffect;
effect.Append2(purify);
Owner.Send(effect);
var Backup = item.Purification;
Backup.PurificationDuration = 0;
item.Purification = Backup;
item.Send(Owner);
effect.Type = ItemAdding.StabilizationEffect;
effect.Append2(Backup);
Owner.Send(effect);
Database.ItemAddingTable.Stabilize(item.UID, Backup.PurificationItemID);
#endregion
}
}
else
{
return false;
}
}
times--;
}
catch (Exception e)
{
Program.SaveException(e);
}
return true;
}

loveosama
2019-09-09, 06:13 PM
بجد تسلم يابرنس ربنا يخليك لينا

if (client.ItemGive)


بس بصراحة مش لقى الكلمة ديه خلص فى كلاس PacketHandler.cs



لو مش هتعبك انا عايز انى بى سى بيدى اصطف +3 من غير 2 سوكت او دمج او hp او اى حاجه ويكون لفل قليل يعنى ف حدود ليفل 30

لو مش هتعبك عايز انى بى سى بيدى اصطف +12 بس بي سبس ومن غير صول 7 او برفكشن ويكون في طبعا 2سوكت و7دمج و ال2 جيم و ال hp وليفل 140

وشكرا ليك جدا ياباشا

Tefa
2019-09-10, 02:10 AM
Gamestate.cs
حط ده
public bool ItemGive = false;

packethandler.cs
سيرش
void DoLogin(
انزل لحد
f (client.JustCreated)
و ضيف جوه قوس
client.ItemGive = true;

سيرش
void LoginMessages(

جوه فتحة القوس
#region rdw
if (client.ItemGive)
{
Data data = new Data(true);
data.ID = 443;
data.TimeStamp = Time32.Now;
data.dwParam = 1008;//1009 The Elder
client.Send(data);//1008 The First Online Server

#region GiftBox
client.Inventory.AddBound996(3004122, 0, 0, 0, 0, 1, true, false);
client.Inventory.AddBound996(3000590, 0, 0, 0, 0, 1, true, false);
//client.Inventory.Add(727026, 0, 1);
#endregion
uint itemPack = 0;
client.Inventory.Add(itemPack, 0, 1);
#region New Created
#region Trojan
if (client.Player.Class >= 10 && client.Player.Class <= 11)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 130006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 10 && client.Player.Class <= 11)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 410006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region Warrior
if (client.Player.Class >= 20 && client.Player.Class <= 21)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 131006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 20 && client.Player.Class <= 21)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 410006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region Archer
if (client.Player.Class >= 40 && client.Player.Class <= 41)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 133006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 40 && client.Player.Class <= 41)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 500006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region Pirete
if (client.Player.Class >= 70 && client.Player.Class <= 71)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 139006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 70 && client.Player.Class <= 71)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 611006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region Monk
if (client.Player.Class >= 60 && client.Player.Class <= 61)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 136006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 60 && client.Player.Class <= 61)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 610006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region Ninja
if (client.Player.Class >= 50 && client.Player.Class <= 51)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 135006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 50 && client.Player.Class <= 51)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 601006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region LeeLong
if (client.Player.Class >= 80 && client.Player.Class <= 81)
{
client.Inventory.Add(3004874, 0, 1);
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 138006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 80 && client.Player.Class <= 81)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 617006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region Taoist
if (client.Player.Class >= 100 && client.Player.Class <= 145)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 134006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
if (client.Player.Class >= 100 && client.Player.Class <= 145)
{
ConquerItem item7;
item7 = new ConquerItem(true)
{
ID = 421006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.RightWeapon,
Bound = true
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item7, client);
client.Equipment.Add(item7);
}
#endregion
#region WindWalker

if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
ConquerItem item6;
item6 = new ConquerItem(true)
{
ID = 170006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Head,
};
client.Equipment.Remove((byte)ConquerItem.Head);
Database.ConquerItemTable.AddItem(ref item6, client);
client.Equipment.Add(item6);
}
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
ConquerItem item6;
item6 = new ConquerItem(true)
{
ID = 101006,
UID = ConquerItem.ItemUID.Next,
Durability = 3599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 3599,
Position = ConquerItem.Armor,
};
client.Equipment.Remove((byte)ConquerItem.Armor);
Database.ConquerItemTable.AddItem(ref item6, client);
client.Equipment.Add(item6);
}
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
ConquerItem item6;
item6 = new ConquerItem(true)
{
ID = 626006,
UID = ConquerItem.ItemUID.Next,
Durability = 599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 599,
Position = ConquerItem.RightWeapon,
};
client.Equipment.Remove((byte)ConquerItem.RightWea pon);
Database.ConquerItemTable.AddItem(ref item6, client);
client.Equipment.Add(item6);
}
if (client.Player.Class >= 160 && client.Player.Class <= 165)
{
ConquerItem item6;
item6 = new ConquerItem(true)
{
ID = 626006,
UID = ConquerItem.ItemUID.Next,
Durability = 1599,
Plus = 0,
Enchant = 0,
Bless = 0,
Color = (Game.Enums.Color)Kernel.Random.Next(3, 9),
MaximDurability = 1599,
Position = ConquerItem.LeftWeapon,
};
client.Equipment.Remove((byte)ConquerItem.LeftWeap on);
Database.ConquerItemTable.AddItem(ref item6, client);
client.Equipment.Add(item6);
}
#endregion
if (client.Player.Class >= 60 && client.Player.Class <= 65)
{
client.Player.HairStyle = 0;
client.Player.HairColor = 0;
}

//
#endregion
client.ItemGive = false;
}
foreach (ConquerItem item in client.Inventory.Objects)
item.Send(client);

foreach (ConquerItem item in client.Equipment.Objects)
{
if (item != null)
{
if (Database.ConquerItemInformation.BaseInformations. ContainsKey(item.ID))
{
item.Send(client);
}
else
{
client.Equipment.DestroyArrow(item.Position);
}
}
}
client.LoadItemStats();
if (!client.Equipment.Free(5))
{
if (IsArrow(client.Equipment.TryGetItem(5).ID))
{
if (client.Equipment.Free(4))
client.Equipment.DestroyArrow(5);
else
{
if (client.Equipment.TryGetItem(4).ID / 1000 != 500)
client.Equipment.DestroyArrow(5);
}
}
}
client.GemAlgorithm();
client.CalculateStatBonus();
client.CalculateHPBonus();
client.Equipment.UpdateEntityPacket();
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
#endregion