<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.en.stne.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.en.stne.net/index.php?action=history&amp;feed=atom&amp;title=Scripting%3AOre_Collector_Control</id>
		<title>Scripting:Ore Collector Control - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.en.stne.net/index.php?action=history&amp;feed=atom&amp;title=Scripting%3AOre_Collector_Control"/>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php?title=Scripting:Ore_Collector_Control&amp;action=history"/>
		<updated>2026-04-19T13:57:08Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.en.stne.net/index.php?title=Scripting:Ore_Collector_Control&amp;diff=5520&amp;oldid=prev</id>
		<title>Jacksfh at 20:16, 23 May 2012</title>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php?title=Scripting:Ore_Collector_Control&amp;diff=5520&amp;oldid=prev"/>
				<updated>2012-05-23T20:16:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:16, 23 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{menu}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{menu}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{ScriptingMenu}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{ScriptingMenu}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Deuterium Tanker &lt;/del&gt;Control==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ore Collector &lt;/ins&gt;Control==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Upon entering the portal, all ore collectors in the sector (the sector that the ship is in on which the portal is set up) will use maximum energy to collect [[Iridium Ore]]. It will then report how much ore each ship collected.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Upon entering the portal, all ore collectors in the sector (the sector that the ship is in on which the portal is set up) will use maximum energy to collect [[Iridium Ore]]. It will then report how much ore each ship collected.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jacksfh</name></author>	</entry>

	<entry>
		<id>http://wiki.en.stne.net/index.php?title=Scripting:Ore_Collector_Control&amp;diff=5519&amp;oldid=prev</id>
		<title>Jacksfh: Created page with &quot;{{menu}} {{ScriptingMenu}} ==Deuterium Tanker Control==  Upon entering the portal, all ore collectors in the sector (the sector that the ship is in on which the portal is set up)...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php?title=Scripting:Ore_Collector_Control&amp;diff=5519&amp;oldid=prev"/>
				<updated>2012-05-23T20:16:12Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{menu}} {{ScriptingMenu}} ==Deuterium Tanker Control==  Upon entering the portal, all ore collectors in the sector (the sector that the ship is in on which the portal is set up)...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{menu}}&lt;br /&gt;
{{ScriptingMenu}}&lt;br /&gt;
==Deuterium Tanker Control==&lt;br /&gt;
&lt;br /&gt;
Upon entering the portal, all ore collectors in the sector (the sector that the ship is in on which the portal is set up) will use maximum energy to collect [[Iridium Ore]]. It will then report how much ore each ship collected.&lt;br /&gt;
&lt;br /&gt;
If a tanker is docked, it will first undock and dock again after collecting iridium.&lt;br /&gt;
&lt;br /&gt;
The portal will only do anything if the owner of the ship is the person using the portal.&lt;br /&gt;
&lt;br /&gt;
Script created by Glest Durnham (6609)&lt;br /&gt;
&lt;br /&gt;
==Script Code==&lt;br /&gt;
  #UseInterface Web, ShipPortal;&lt;br /&gt;
 &lt;br /&gt;
 Var scriptName As String = &amp;quot;GC_Miner_Control&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
 If(GuestUser.UserID = MyShip.UserID)&lt;br /&gt;
 {&lt;br /&gt;
   Var curShip As CShip;&lt;br /&gt;
   Var curMyShip As CMyShip;&lt;br /&gt;
   Var dockedTo As Integer = - 1;&lt;br /&gt;
   Var oldQuantity As Integer = 0;&lt;br /&gt;
   &lt;br /&gt;
   &lt;br /&gt;
   // Loop all ships in the sector&lt;br /&gt;
   For (Each curShip In MyShip.SRS)&lt;br /&gt;
   {&lt;br /&gt;
     // Make sure we own it&lt;br /&gt;
     If (curShip.UserID = MyShip.UserID)&lt;br /&gt;
     {&lt;br /&gt;
       // Make sure it's an ore collector.&lt;br /&gt;
       If (curShip.TypName = &amp;quot;Antares&amp;quot; OR curShip.TypName = &amp;quot;Andorra&amp;quot; OR curShip.TypName = &amp;quot;Antares prototype&amp;quot;&amp;lt;br&amp;gt; OR curShip.TypName = &amp;quot;Capo&amp;quot; OR curShip.TypName = &amp;quot;Gathering Station&amp;quot; OR curShip.TypeName = &amp;quot;Atria&amp;quot;&amp;quot;)&lt;br /&gt;
       {&lt;br /&gt;
         // Save initial information&lt;br /&gt;
         curMyShip = New CMyShip(curShip.ShipID);&lt;br /&gt;
         dockedTo = - 1;&lt;br /&gt;
         oldQuantity = curMyShip.Lager.Menge(EWarenTyp.Erz);&lt;br /&gt;
         &lt;br /&gt;
         // Save docking information and undock&lt;br /&gt;
         If (curMyShip.Angedockt)&lt;br /&gt;
         {&lt;br /&gt;
           dockedTo = curMyShip.AngedocktAnID;&lt;br /&gt;
           curMyShip.Aktion.Abdocken();&lt;br /&gt;
         }&lt;br /&gt;
         &lt;br /&gt;
         // Perform the action&lt;br /&gt;
         curMyShip.Aktion.ErzSammeln(1000);&lt;br /&gt;
         &lt;br /&gt;
         // Calculate the result&lt;br /&gt;
         Var collected As Integer = curMyShip.Lager.Menge(EWarenTyp.Erz) - oldQuantity;&lt;br /&gt;
         &lt;br /&gt;
         // Re-dock&lt;br /&gt;
         If (dockedTo &amp;gt; - 1)&lt;br /&gt;
         {&lt;br /&gt;
           curMyShip.Aktion.AndockenAn(dockedTo);&lt;br /&gt;
         }&lt;br /&gt;
        &lt;br /&gt;
         // Output result&lt;br /&gt;
         Response.Add(curMyShip.Name &amp;amp; &amp;quot; (NCC &amp;quot; &amp;amp; curMyShip.ShipID &amp;amp; &amp;quot;) collected &amp;quot; &amp;amp; collected &amp;amp; &amp;quot; Iridium ore.&amp;quot;);&lt;br /&gt;
         Response.Add(New CHtmlBreak());&lt;br /&gt;
         &lt;br /&gt;
       }&lt;br /&gt;
     }&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
{{Note|Feature pack is required to be able to use this script.}}&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Jacksfh</name></author>	</entry>

	</feed>