#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); } }