public void setRangeWeapon(Item rangeWeapon) { RangeWeapon = rangeWeapon; if (this.Address != 0) { Process process = Process.ThisProcess(); oCNpc npc = new oCNpc(process, this.Address); if (RangeWeapon == null) { hNpc.blockSendUnEquip = true; npc.UnequipItem(npc.GetEquippedRangedWeapon()); } else { if (RangeWeapon.Address == 0) { throw new Exception("RangeWeapon Adress can't be null if player using it is spawned!"); } hNpc.blockSendEquip = true; npc.EquipFarWeapon(new oCItem(process, RangeWeapon.Address)); } } }