XRWS           	   =  Öext_01.cat ext_01.dat md/fbls.xml 2262 1608549681 d18eb5cd52e0391d0b149996689e3d61
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="fbls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
<cues>
<cue name="fbls_cue" instantiate="true" checkinterval="10s" namespace="this">
	<conditions>
		<check_value value="not player.zone.isclass.highway"/>
		<check_value value="player.activity != activity.scan_stations"/>
	</conditions>
	<actions>
		<set_value name="$distance" exact="1"/>
		<find_object_component name="$scanners" object="player.primaryship" class="class.scanner" multiple="true"/>
		<do_all exact="$scanners.count" counter="$si">
			<do_if value="$scanners.{$si}.maxscanlevel gt $distance">
				<set_value name="$distance" exact="$scanners.{$si}.maxscanlevel"/>
			</do_if>
		</do_all>
		<set_value name="$distance" exact="$distance * 5000"/>

		<create_list name="$drops"/>

		<find_object name="$drops" space="player.zone" class="class.drop" multiple="true">
			<match_distance object="player.primaryship" max="$distance"/>
		</find_object>

		<set_value name="$looted" exact="false"/>
		<set_value name="$warning" exact="false"/>

		<do_all exact="$drops.count" counter="$di" reverse="true">
			<set_value name="$drop" exact="$drops.{$di}"/>
			<do_if value="$drop.isclass.collectable">
				<set_value name="$allow" exact="true"/>

				<set_value name="$wares" exact="$drop.wares.list"/>

				<do_all exact="$wares.count" counter="$wi">
					<do_if value="$drop.unbundle">
						<do_if value="not $wares.{$wi}.isinventory and not player.primaryship.ammostorage.{$wares.{$wi}}.free">
							<set_value name="$warning" exact="true"/>
							<set_value name="$allow" exact="false"/>
							<break/>
						</do_if>
					</do_if>
					<do_else>
						<do_if value="not $wares.{$wi}.isinventory">
							<set_value name="$allow" exact="false"/>
							<break/>
						</do_if>
					</do_else>
				</do_all>

				<do_if value="$allow">
					<collect_drop object="player.primaryship" drop="$drop"/>
					<set_value name="$looted" exact="true"/>
				</do_if>
			</do_if>
		</do_all>

		<do_if value="$warning and $looted">
			<show_help custom="'Your missile storage is full!'"/>
		</do_if>
	</actions>
</cue>
</cues>
</mdscript>
<?xml version="1.0" encoding="iso-8859-1"?>
<content name="" description="" author="Assailer" version="110" save="false" date="2020-12-21" id="" lastupdate="">
  <text language="44" name="Fly-by Looting" description="Fly-by Looting" author="Assailer" version="1.10"/>
</content>
