<?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=API%3ACBaseShipManager</id>
		<title>API:CBaseShipManager - 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=API%3ACBaseShipManager"/>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php?title=API:CBaseShipManager&amp;action=history"/>
		<updated>2026-05-13T22:26:17Z</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=API:CBaseShipManager&amp;diff=81170&amp;oldid=prev</id>
		<title>Jacksfh at 11:27, 4 May 2020</title>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php?title=API:CBaseShipManager&amp;diff=81170&amp;oldid=prev"/>
				<updated>2020-05-04T11:27:42Z</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 11:27, 4 May 2020&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 94:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 94:&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;| LeaveOrbit() || - || Leaves orbit&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;| LeaveOrbit() || - || Leaves orbit&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;|-&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;|-&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;| RefillWarpCore(Quantity, WarpcoreType) || [[API:Integer|Integer]], [[API:EWarpcoreFillType]] || Charges the warp core by the quantity specified with the type of goods specified &amp;nbsp;&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;| RefillWarpCore(Quantity, WarpcoreType) || [[API:Integer|Integer]], [[API:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;EWarpcoreFillType|&lt;/ins&gt;EWarpcoreFillType]] || Charges the warp core by the quantity specified with the type of goods specified &amp;nbsp;&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;|-&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;|-&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;| Repair(Status) || [[API:Boolean|Boolean]] || Activates/Deactivates the autorepair function on the ship&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;| Repair(Status) || [[API:Boolean|Boolean]] || Activates/Deactivates the autorepair function on the ship&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=API:CBaseShipManager&amp;diff=81168&amp;oldid=prev</id>
		<title>Jacksfh: Created page with &quot;{{apiMenu}} The CBaseShipManager is required to perform actions on a ship.  For this it is first necessary to create an instance of [[API:CMyShip|CMyShip...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php?title=API:CBaseShipManager&amp;diff=81168&amp;oldid=prev"/>
				<updated>2020-05-04T11:17:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{apiMenu}} The &lt;a href=&quot;/index.php/API:CBaseShipManager&quot; title=&quot;API:CBaseShipManager&quot;&gt;CBaseShipManager&lt;/a&gt; is required to perform actions on a ship.  For this it is first necessary to create an instance of [[API:CMyShip|CMyShip...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{apiMenu}}&lt;br /&gt;
The [[API:CBaseShipManager|CBaseShipManager]] is required to perform actions on a ship.&lt;br /&gt;
&lt;br /&gt;
For this it is first necessary to create an instance of [[API:CMyShip|CMyShip]]:&lt;br /&gt;
&lt;br /&gt;
 Var Ship As New CMyShip(123456);&lt;br /&gt;
&lt;br /&gt;
On the ship with the NCC 123456 all methods of the CBaseShipManager now apply because the property {{code|Action}} of [[API:CMyShip|CMyShip]] Class is the equivalent of CBaseShipManager.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
 Var Ship as New CMyShip(123456);&lt;br /&gt;
 Var Station as New CMyShip(654321);&lt;br /&gt;
&lt;br /&gt;
 Ship.Action.CollectOre(20);&lt;br /&gt;
 Ship.Action.FlyTo('150|250');&lt;br /&gt;
 Ship.Action.EnterOrbit();&lt;br /&gt;
 Ship.Action.DockTo(Station.ShipID);&lt;br /&gt;
 Ship.Action.TransferToShip(Station.ShipID,100,EBeamResource.IridiumOre);&lt;br /&gt;
 Ship.Action.TransferFromShip(Station.ShipID,20,EBeamResource.Antimatter);&lt;br /&gt;
 Ship.Action.TransferFromShip(Station.ShipID,20,EBeamResource.Deuterium);&lt;br /&gt;
 Ship.Action.TransferFromShip(Station.ShipID,10,EBeamResource.Dilithium);&lt;br /&gt;
 Ship.Action.RefillWarpCore(500, EWarpcoreFillType.diliAMDeut);&lt;br /&gt;
 Ship.Action.Undock();&lt;br /&gt;
 Ship.Action.LeaveOrbit();&lt;br /&gt;
 Ship.Action.FlyTo('152|251');&lt;br /&gt;
&lt;br /&gt;
In this example the ship would carry out the specified actions, in this case, collecting ore, flying to a station in orbit, docking, transferring the ore collected to the station, transferring fuel from the station, refilling the warp core, undocking, leaving orbit then flying back.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Methods==&lt;br /&gt;
&lt;br /&gt;
Here is a list of the common CBaseShipManager methods:&lt;br /&gt;
&lt;br /&gt;
''Please Note: The actions are subject to the same restrictions as in the game, which means you can only interact with other ships if they are in the same sector or for example, only activate the main computer when crew and energy are on the ship.''&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;p style=&amp;quot;color:red; padding:5px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;u&amp;gt;'''Important:'''&amp;lt;/u&amp;gt; Before you perform any actions, first check whether this is possible, e.g. when beaming or activating SRS - otherwise unnecessary code will be executed and a combat tick may be calculated (even if there are no enemy ships. Please keep in mind that your script can carry out a maximum of 100 actions per run, so don't just pay attention to the server for love!&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
!Method !! Parameter !! Explanation &lt;br /&gt;
|-&lt;br /&gt;
|ActivateLRS(Status) || [[API:Boolean|Boolean]] || With Ship.Action.ActivateLRS({{code|True}}) the LRS is activated, with {{code|False}} it is deactivated&lt;br /&gt;
|-&lt;br /&gt;
|ActivateMaincomputer(Status) || [[API:Boolean|Boolean]] || Activates/Deactivates the main computer&lt;br /&gt;
|-&lt;br /&gt;
|ActivateOverdrive(Status) || [[API:Boolean|Boolean]] || Activates/Deactivates overdrive&lt;br /&gt;
|-&lt;br /&gt;
|ActivateReplicators(Status) || [[API:Boolean|Boolean]] || Activates/Deactivates the replicator on board&lt;br /&gt;
|-&lt;br /&gt;
|ActivateShields(Status) || [[API:Boolean|Boolean]] || Activates the shields&lt;br /&gt;
|-&lt;br /&gt;
|ActivateSRS(Status) || [[API:Boolean|Boolean]] || Activates the SRS&lt;br /&gt;
|-&lt;br /&gt;
|ActivateTractorBeam(ShipID) || [[API:Integer|Integer]] || Directs a tractor beam to the ship which has the NCC number {{code|ShipID}}&lt;br /&gt;
|-&lt;br /&gt;
|ActivateWarpCore(Status) || [[API:Boolean|Boolean]] || Activates the Warpcore&lt;br /&gt;
|-&lt;br /&gt;
|ApplyGoodsToConstruction() || - || Applys goods when converting tugs/stations&lt;br /&gt;
|-&lt;br /&gt;
|CollectDeuterium(Energy) ** || [[API:Integer|Integer]] || Collects Deuterium with the amount of energy specified as {{code|Energy}}&lt;br /&gt;
|-&lt;br /&gt;
|CollectOre(Energy) ** || [[API:Integer|Integer]] || Collects Iridium Ore with the amount of energy specified as {{code|Energy}}&lt;br /&gt;
|-&lt;br /&gt;
|DeactivateTractorBeam() || - || Deactivates the tractor beam in which another ship is being held&lt;br /&gt;
|-&lt;br /&gt;
|DockHangar(inShipID) || [[API:Integer|Integer]] || Enters the hangar of the ship specified as {{code|inShipID}}&lt;br /&gt;
|-&lt;br /&gt;
|DockHangarForce(targetShip) || [[API:Integer|Integer]] || Pulls the ship with NCC {{code|targetShip}} into the hangar, ship must be held with a tractor beam first&lt;br /&gt;
|-&lt;br /&gt;
|DockTo(ShipID) || [[API:Integer|Integer]] || Docks to the Ship/Station with the NCC {{code|ShipID}}&lt;br /&gt;
|-&lt;br /&gt;
|DockToForce(ShipID) || [[API:Integer|Integer]] || Pulls the ship with NCC {{code|targetShip}} into a docking port, ship must be held with a tractor beam first&lt;br /&gt;
|-&lt;br /&gt;
|EnterOrbit || - || Enter the orbit of the colony the ship is over&lt;br /&gt;
|-&lt;br /&gt;
| ExtractFromWreck(Quantity) || [[API:Integer|Integer]] || Uses the specified quantity of energy to extract duranium from a Debris Field&lt;br /&gt;
|-&lt;br /&gt;
| Fly(NumberOfFields, Direction) || [[API:Integer|Integer]], [[API:EShipDirection|EShipDirection]] || Flies the {{code|Number of Fields}} in the predetermined {{code|Direction}}&lt;br /&gt;
|- &lt;br /&gt;
| FlyTo(Position) ** || [[API:String|String]] || Flies to the specified coordinates in format {{code|'x&amp;amp;#124;y'}}&lt;br /&gt;
|-&lt;br /&gt;
| Hide || [[API:Boolean|Boolean]] || Hides the Ship (If it is in a Dense Deuterium Nebula or Large Asteroid Field)&lt;br /&gt;
|-&lt;br /&gt;
| JettisonGoods(Quantity, GoodsType) || [[API:Integer|Integer]], [[API:EGoodsType|EGoodsType]] || Jettisons the {{code|quantity}} of the {{code|GoodsType}} specified&lt;br /&gt;
|-&lt;br /&gt;
| LeaveAllFleets() || - || Leaves all fleets which the ship was part of&lt;br /&gt;
|-&lt;br /&gt;
| LeaveOrbit() || - || Leaves orbit&lt;br /&gt;
|-&lt;br /&gt;
| RefillWarpCore(Quantity, WarpcoreType) || [[API:Integer|Integer]], [[API:EWarpcoreFillType]] || Charges the warp core by the quantity specified with the type of goods specified &lt;br /&gt;
|-&lt;br /&gt;
| Repair(Status) || [[API:Boolean|Boolean]] || Activates/Deactivates the autorepair function on the ship&lt;br /&gt;
|-&lt;br /&gt;
| ReserveBatterieEntladen(Quantity) || [[API:Integer|Integer]] || &lt;br /&gt;
|-&lt;br /&gt;
| SalvageItemsFromWreck(ShipID) || [[API:Integer|Integer]] || Beams any items from the Debris Field with the NCC {{code|ShipID}}&lt;br /&gt;
|-&lt;br /&gt;
| SchildeAufladen(Quantity) || [[API:Integer|Integer]] || &lt;br /&gt;
|-&lt;br /&gt;
| SetAlertLevel(alertLevel) || [[API:EAlertLevel|EAlertLevel]] || Sets the alert level to the given value of the type [[API:EAlertLevel|EAlertLevel]]&lt;br /&gt;
|-&lt;br /&gt;
| SetName(Name) || [[API:String|String]] || Renames the ship&lt;br /&gt;
|-&lt;br /&gt;
| StationsReserveBatterieAufladen(Quantity) || [[API:Integer|Integer]] || &lt;br /&gt;
|-&lt;br /&gt;
| TransferFromColony(ColonyID, Quantity, ResourceType) || [[API:Integer|Integer]], [[API:Integer|Integer]], [[API:EBeamResource|EBeamResource]] || Transports from the colony with ID {{code|ColonyID}} the specified {{code|Quantity}} of resources of type {{code|ResourceType}} ([[API:EBeamResource|EBeamResource]])&lt;br /&gt;
|-&lt;br /&gt;
| TransferFromShip(ShipID, Quantity, ResourceType) || [[API:Integer|Integer]], [[API:Integer|Integer]], [[API:EBeamResource|EBeamResource]] || Transfers goods from the ship with NCC {{code|FromShipID}}&lt;br /&gt;
|-&lt;br /&gt;
| TransferToColony(ColonyID, Quantity, ResourceType) || [[API:Integer|Integer]], [[API:Integer|Integer]], [[API:EBeamResource|EBeamResource]] || Transports goods to colony&lt;br /&gt;
|-&lt;br /&gt;
| TransferToShip(ShipID, Anzahl, Ressource) || [[API:Integer|Integer]], [[API:Integer|Integer]], [[API:EBeamResource|EBeamResource]] || Transports goods to ship&lt;br /&gt;
|-&lt;br /&gt;
| Undock() || - || Undocks the ship&lt;br /&gt;
|-&lt;br /&gt;
| UndockForce(targetShip) || [[API:Integer|Integer]] || Force undocks the ship with the NCC specified&lt;br /&gt;
|-&lt;br /&gt;
| UndockHangar() || - || Causes the ship to exit the hangar&lt;br /&gt;
|-&lt;br /&gt;
| UndockHangarForce(targetShip) || [[API:Integer|Integer]] || Forces the ship with the NCC specified out of the hangar&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
 **Only possible with Feature Pack&lt;br /&gt;
&lt;br /&gt;
https://game.en.stne.net/objectexplorer?p=CBaseShipManager&lt;br /&gt;
[[Category:API]]&lt;/div&gt;</summary>
		<author><name>Jacksfh</name></author>	</entry>

	</feed>