|
|
#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);
}
}
if (itemusage.dwparam == 5 && !isshield(item.id))
if (firstclass != characterclass)
return;
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|