<?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?feed=atom&amp;target=Phips&amp;title=Special%3AContributions%2FPhips</id>
		<title>STNE Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.en.stne.net/index.php?feed=atom&amp;target=Phips&amp;title=Special%3AContributions%2FPhips"/>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php/Special:Contributions/Phips"/>
		<updated>2026-04-19T14:26:22Z</updated>
		<subtitle>From STNE Wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.en.stne.net/index.php/API:CMyShip</id>
		<title>API:CMyShip</title>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php/API:CMyShip"/>
				<updated>2010-08-19T21:48:59Z</updated>
		
		<summary type="html">&lt;p&gt;Phips: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[API:CMyShip|CMyShip]] is the most important Class in the Scriptengine. [[API:CMyShip|CMyShip]] inherits all Methods and propertys of [[API:CShip|CShip]].&lt;br /&gt;
&lt;br /&gt;
For comprehension a short Example with one of your Ship with NCC-Id 123456&lt;br /&gt;
&lt;br /&gt;
{{Code|Var Ship As New CMyShip(123456);}}&lt;br /&gt;
&lt;br /&gt;
Now is in the Variable Ship an instance of the object [[API:CMyShip|CMyShip]].&lt;br /&gt;
&lt;br /&gt;
A view in the Objectexplorer (http://game.stne.net/ObjectExplorer.aspx?p=CMyShip) shows, what you can do with it:&lt;br /&gt;
&lt;br /&gt;
{{Code|WriteLine(Ship.Name &amp;amp; &amp;quot; has got currently &amp;quot; &amp;amp; Schiff.Energy &amp;amp; &amp;quot; Energy&amp;quot;);}}&lt;br /&gt;
&lt;br /&gt;
In Addition there are Actions possible by help from the object [[API:CBaseShipManager|CBaseShipManager]].&lt;br /&gt;
For further informations look in the documentation from this object.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
{{Code|Schiff.Action.ActivateSRS(True);}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The most important properties and methos are:&lt;br /&gt;
&lt;br /&gt;
*Action [[API:CBaseShipManager|CBaseShipManager]]&lt;br /&gt;
*Energy ---&amp;gt; returns a Number&lt;br /&gt;
*Docked ---&amp;gt; returns true or false&lt;br /&gt;
*FlightRange ---&amp;gt; gives you the amount of flied fields in this tick&lt;br /&gt;
*Name &lt;br /&gt;
*StockRoom --&amp;gt; Give you an instance from the class [[API:SStockRoom|SStockRoom]], which it you can see the amount of goods in the stockroom&lt;br /&gt;
*SRS ---&amp;gt; Give you an instance from the class [[API:CShipList|CShipList]] with all ships in the SRS&lt;br /&gt;
*WarpCore --&amp;gt; Amount of the WarpCore&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With this properties its for example possible to perform a script to refill the warpcore:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Var Ship As CMyShip(12345);&lt;br /&gt;
  If (Ship.WarpCore &amp;lt; 100) {&lt;br /&gt;
    If (Ship.Docked = False) { &lt;br /&gt;
      Ship.Action.DockTo(54321);&lt;br /&gt;
    }&lt;br /&gt;
    Ship.Action.TransferFromShip(54321, 10, EBeamResource.Deuterium);&lt;br /&gt;
    Ship.Action.TransferFromShip(54321, 10, EBeamResource.Antimatter);&lt;br /&gt;
    Ship.Action.TransferFromShip(54321, 5, EBeamResource.Dilicium);&lt;br /&gt;
    Ship.Action.RefilWarpCore(10);&lt;br /&gt;
  }&lt;br /&gt;
  WriteLine(&amp;quot;Now are &amp;quot; &amp;amp; Schiff.WarpCore &amp;amp; &amp;quot; units in your warpcore&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''Please note: You can only create instances from [[API:CMyShip|CMyShip]] with your own ships. Other ships can you only handle with [[API:CShip|CShip]] - but you cant create it via NCC-Id.&lt;br /&gt;
You can only work with CMyShip, when a function return it, i.e the SRS-list of Ship.SRS (it returns a list with instances of CShip''&lt;/div&gt;</summary>
		<author><name>Phips</name></author>	</entry>

	<entry>
		<id>http://wiki.en.stne.net/index.php/API:CMyShip</id>
		<title>API:CMyShip</title>
		<link rel="alternate" type="text/html" href="http://wiki.en.stne.net/index.php/API:CMyShip"/>
				<updated>2010-08-19T21:28:59Z</updated>
		
		<summary type="html">&lt;p&gt;Phips: Created page with &amp;quot;CMyShip is the most important Class in the Scriptengine. CMyShip inherits all Methods and propertys of CShip.  For comprehension a short Example with one of your Ship with NC...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CMyShip is the most important Class in the Scriptengine. CMyShip inherits all Methods and propertys of [[CShip]].&lt;br /&gt;
&lt;br /&gt;
For comprehension a short Example with one of your Ship with NCC-Id 123456&lt;br /&gt;
&lt;br /&gt;
{{Code|Var Ship As New CMyShip(123456);}}&lt;br /&gt;
&lt;br /&gt;
Now is in the Variable Ship an instance of the object CMyShip.&lt;br /&gt;
&lt;br /&gt;
A view in the Objectexplorer (http://game.stne.net/ObjectExplorer.aspx?p=CMyShip) shows, what you can do with it:&lt;br /&gt;
&lt;br /&gt;
{{Code|WriteLine(Ship.Name &amp;amp; &amp;quot; has got currently &amp;quot; &amp;amp; Schiff.Energy &amp;amp; &amp;quot; Energy&amp;quot;);}}&lt;br /&gt;
&lt;br /&gt;
In Addition there are Actions possible by help from the object [[CBaseShipManager]].&lt;br /&gt;
For further informations look in the documentation from this object.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
{{Code|Schiff.Action.ActivateSRS(True);}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The most important properties and methos are:&lt;br /&gt;
&lt;br /&gt;
*Action [[CBaseShipManager]]&lt;br /&gt;
*Energy ---&amp;gt; returns a Number&lt;br /&gt;
*Docked ---&amp;gt; returns true or false&lt;br /&gt;
*FlightRange ---&amp;gt; gives you the amount of flied fields in this tick&lt;br /&gt;
*Name &lt;br /&gt;
*StockRoom --&amp;gt; Give you an instance from the class [[SStockRoom]], which it you can see the amount of goods in the stockroom&lt;br /&gt;
*SRS ---&amp;gt; Give you an instance from the class [[CShipList]] with all ships in the SRS&lt;br /&gt;
*WarpCore --&amp;gt; Amount of the WarpCore&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With this properties its for example possible to perform a script to refill the warpcore:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Var Ship As CMyShip(12345);&lt;br /&gt;
  If (Ship.WarpCore &amp;lt; 100) {&lt;br /&gt;
    If (Ship.Docked = False) { &lt;br /&gt;
      Ship.Action.DockTo(54321);&lt;br /&gt;
    }&lt;br /&gt;
    Ship.Action.TransferFromShip(54321, 10, EBeamResource.Deuterium);&lt;br /&gt;
    Ship.Action.TransferFromShip(54321, 10, EBeamResource.Antimatter);&lt;br /&gt;
    Ship.Action.TransferFromShip(54321, 5, EBeamResource.Dilicium);&lt;br /&gt;
    Ship.Action.RefilWarpCore(10);&lt;br /&gt;
  }&lt;br /&gt;
  WriteLine(&amp;quot;Now are &amp;quot; &amp;amp; Schiff.WarpCore &amp;amp; &amp;quot; units in your warpcore&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''Please note: You can only create instances from CMyShip with your own ships. Other ships can you only handle with [[Cship]] - but you cant create it via NCC-Id.&lt;br /&gt;
You can only work with CMyShip, when a function return it, i.e the SRS-list of Ship.SRS (it returns a list with instances of CShip''&lt;/div&gt;</summary>
		<author><name>Phips</name></author>	</entry>

	</feed>