XRWS         !  C    ê  >ext_01.cat ext_01.dat readme.txt md/EuclidsAutoLooterStart.xml 3416 1426821037 68764b90350006ec2ad72056b2b656f5
md/EuclidsAutoLooterTrigger.xml 571 1419641312 7ec892fe4cbed9cc7e27d1090676780c
t/0001-L007.xml 1161 1426167241 ff9c086ad8fa1c8e81de4cfbf3ffe3fe
t/0001.xml 718 1426159332 c9da1b4b338a0677a2e2548c7cb0bab7
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="EuclidsAutoLooterStart" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
 <cues>
	 <cue name="EuclidALStart" instantiate="true" namespace="this">
		 
		<conditions>
		  <event_conversation_started conversation="EuclidsAutoLooterMenu" /> 
	  </conditions>
		 
		<!-- NO delay or choice not working !!!  -->
		 
	  <actions>
		
			<!-- find drops (pickup crates: inventory wares & ammo -->
			<find_object name="$targets" space="player.zone" class="class.drop" multiple="true" >
				<match_distance object="player.primaryship" max="25km"/>
			</find_object>
			
			<do_if value="$targets.count">
			<!-- Auto Collect or not? -->
				<set_value name="$text" exact="{555000,1}.[$targets.count]"/>
				<add_player_choice_sub text="$text" section="gAutoloot"/>
		  </do_if>
			<do_else>
				<show_help log="true" custom="{555000,2}" position="6" duration="3s" />
			</do_else> 
			
		</actions>
	  </cue>	

	 
	 <cue name="EuclidALEnd" instantiate="true" namespace="this">
		 
		<conditions>
		  <event_conversation_next_section sectionprefix="gAutoloot"/>
	  </conditions>
		 
	  <actions>
			
			<find_object name="$targets" space="player.zone" class="class.drop" multiple="true" >
			  <match_distance object="player.primaryship" max="50km"/>
      </find_object>
			
      <set_value name="$NotCollected" exact="0"/>
		  <set_value name="$Ammo" exact="0"/>  
			<set_value name="$Ware" exact="0"/>
			<do_all exact="$targets.count" counter="$i">
				<set_value name="$loot" exact="true"/>
				<set_value name="$wares" exact="$targets.{$i}.wares.list"/>
          <do_all exact="$wares.count" counter="$k">
            <do_if value="not $wares.{$k}.isinventory">
              <set_value name="$loot" exact="false"/>
							<set_value name="$NotCollected" exact="1" operation="add"/> 
							<write_to_logbook category="tips" text="{555000,3}.[$wares.{$k}.name]"/>
              <break/>
            </do_if>
						<do_else>
							<write_to_logbook category="tips" text="{555000,4}.[$wares.{$k}.name]"/>
						</do_else>
          </do_all>

				  <do_if value="$loot">
						
					<do_if value="$targets.{$i}.name == readtext.{20109}.{1001}">
						<!-- ammo only if Skunk has sufficient free storage -->
				   <do_if value="player.primaryship.ammostorage.missile.free gt 0">
					 	 <collect_drop object="player.primaryship" drop="$targets.{$i}"/>
						 <set_value name="$Ammo" exact="1" operation="add"/> 
					 </do_if>
					 <do_else>
						<set_value name="$NotCollected" exact="1" operation="add"/> 
						 <write_to_logbook category="tips" text="{555000,5}"/>
					 </do_else>
				  </do_if>
				  <do_else>
						
		        <collect_drop object="player.primaryship" drop="$targets.{$i}"/>
					  <set_value name="$Ware" exact="1" operation="add"/> 
				  </do_else>
						
				</do_if>	
				
			</do_all>
			
			
			<set_value name="$text" exact="{555000,6}.[$Ammo,$Ware,$NotCollected]"/>
			<show_help log="true" custom="$text" position="6" duration="4s" />
		  <remove_value name="$targets"/>
			<remove_value name="$text"/>
			<remove_value name="$Ammo"/>
			<remove_value name="$Ware"/>
			<remove_value name="$wares"/>
			<remove_value name="$loot"/>
		 </actions>
	  </cue>	
	
	  
 </cues>
</mdscript>
<?xml version="1.0" encoding="utf-8"?>
<mdscript name="EuclidAutoLooterTrigger" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
 <cues>
	 <cue name="EuclidsAL0" instantiate="true" >
		 <!-- Triggers Auto Loot menu -->
		 <conditions>
			 <event_speak_finished actor="player.computer" line="900"/>
		 </conditions>
		 
		 <delay exact="4s"/>
		
		 <actions>
			 <start_conversation actor="player.copilot" conversation="EuclidsAutoLooterMenu"/>
     </actions>	
			
	 </cue>												 
 </cues>
</mdscript>
﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	Base (English) text file for AutoLooter mod.
	
	Author: euclid
  
	Last Change:
	Version: V0.0.1
	Date: 12-03-2015
	
	X Rebirth version: 3.00+
	
	Перевод alexalsp.  http://apocalypse.moy.su 
    Thanks to alexalsp for this excellent translation!
-->
<language>
	<page id="555000" title="HunterShips" descr="Texts for AutoLooter." voice="no">
	     <t id="1">Контейнеров %1. Собрать?</t>
         <t id="2">Auto Looter:\nКонтейнеры с товарами не обнаружены.</t>
         <t id="3">AutoLooter: Контейнеры без товаров %1</t>
         <t id="4">AutoLooter: Собрал контейнеры: %1</t>
         <t id="5">AutoLooter: Не собрал контейнеры с ракетами. Скунс имеет полный боекомплект.</t>
         <t id="6">Auto Looter завершил сбор груза\nВсего собрано:\nКонтейнеры с Ракетами - %1\nКонтейнеры с Товарами - %2\nКонтейнеров не собрано - %3</t>
	</page>
</language>﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- 
	Base (Russian) text file for AutoLooter mod.
	
	Author: euclid
  
	Last Change:
	Version: V0.0.1
	Date: 12-03-2015
  
	X Rebirth version: 3.00+
-->
<language>
	<page id="555000" title="HunterShips" descr="Texts for AutoLooter." voice="no">
	     <t id="1">Collect %1 crates?</t>
         <t id="2">Auto Looter:\n No crates detected</t>
         <t id="3">AutoLooter: Not collectable %1</t>
         <t id="4">AutoLooter: Collectable %1</t>
         <t id="5">AutoLooter: Ammo (missile) not collected; storage capacity exceeded</t>
         <t id="6">Auto Looter finished\n %1 ammo and %2 ware collected\n %3 not collectable</t>
	</page>
</language>AutoLooter v0.6 March 14 2015
=================================

Use long range scan mode to trigger the autolooter menu.

Cheers Euclid

v0.4: added info on drops toplayer logbook 'tips'
v0.5: changed find_object_component to find_object
v0.6: object changed to space - thx YorrickVander for spotting this.
<?xml version="1.0" encoding="utf-8"?>
<content id="" name="" description="" author="Euclid" version="060" date="2015-03-20" save="0" lastupdate="">
  <text language="7" name="AutoLooter" description="Собирает все контейнеры рядом с вами, выпавшие с уничтоженных кораблей, на дистанции действвия радара." author="Euclid / alexalsp"/>
  <text language="44" name="AutoLooter" description="Collect all drops near you" author="Euclid / alexalsp"/>
  <text language="49" name="AutoLooter" description="Sammel alle Kisten in der Naehe" author="Euclid / alexalsp"/>
</content>
