|
|
#region Sanity checks
if (itemType == 900)
{
if (!(client.Entity.FirstRebornClass == client.Entity.SecondRebornClass && client.Entity.SecondRebornClass == StaticClass(client.Entity.Class)))
{
item.Position = 0;
return;
}
var ritem = client.Weapons;
if (ritem.Item1 != null)
{
if (!Valid(ritem.Item1.ID) && (!PurWarrior(client) || client.Entity.Class == 65 || client.Entity.Class == 135 || client.Entity.Class == 145))
{
item.Position = 0;
return;
}
else if ((PurWarrior(client) || client.Entity.Class == 65 || client.Entity.Class == 135 || client.Entity.Class == 145)&& (ritem.Item1.ID / 1000 == 613 || ritem.Item1.ID / 1000 == 617 || ritem.Item1.ID / 1000 == 616 || ritem.Item1.ID / 1000 == 614 || ritem.Item1.ID / 1000 == 611))
{
item.Position = 0;
return;
}
}
}
#region ClientStuffChecks
LeftWeapon = client.Equipment.TryGetItem((byte)SomailProject.Network.PacketHandler.Positions.Left);
if (LeftWeapon != null)
{
var infoItem = new Database.ConquerItemInformation(LeftWeapon.ID, 0).BaseInformation;
try
{
if (!SomailProject.Network.PacketHandler.EquipPassJobReq(infoItem, client))
{
//client.Equipment.Remove((byte)SomailProject.Network.PacketHandler.Positions.Left);
client.Entity.ConquerPoints += 1;
}
}
catch
{
client.Equipment.Remove((byte)SomailProject.Network.PacketHandler.Positions.Left);
}
}
#region sanity checks
if (itemtype == 900)
{
if (!(client.entity.firstrebornclass == client.entity.secondrebornclass && client.entity.secondrebornclass == staticclass(client.entity.class)))
{
item.position = 0;
return;
}
var ritem = client.weapons;
if (ritem.item1 != null)
{
if (!valid(ritem.item1.id) && (!purwarrior(client) || client.entity.class == 65 || client.entity.class == 135 || client.entity.class == 145))
{
item.position = 0;
return;
}
else if ((purwarrior(client) || client.entity.class == 65 || client.entity.class == 135 || client.entity.class == 145)&& (ritem.item1.id / 1000 == 613 || ritem.item1.id / 1000 == 617 || ritem.item1.id / 1000 == 616 || ritem.item1.id / 1000 == 614 || ritem.item1.id / 1000 == 611))
{
item.position = 0;
return;
}
}
}
#region clientstuffchecks
leftweapon = client.equipment.trygetitem((byte)somailproject.network.packethandler.positions.left);
if (leftweapon != null)
{
var infoitem = new database.conqueriteminformation(leftweapon.id, 0).baseinformation;
try
{
if (!somailproject.network.packethandler.equippassjobreq(infoitem, client))
{
//client.equipment.remove((byte)somailproject.network.packethandler.positions.left);
client.entity.conquerpoints += 1;
}
}
catch
{
client.equipment.remove((byte)somailproject.network.packethandler.positions.left);
}
}
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|