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
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