<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://backup.witchspacewiki.org/index.php?action=history&amp;feed=atom&amp;title=NewCargoesAPI%2FPermits</id>
	<title>NewCargoesAPI/Permits - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://backup.witchspacewiki.org/index.php?action=history&amp;feed=atom&amp;title=NewCargoesAPI%2FPermits"/>
	<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Permits&amp;action=history"/>
	<updated>2026-04-12T12:21:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Permits&amp;diff=35451&amp;oldid=prev</id>
		<title>Svengali: added category</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Permits&amp;diff=35451&amp;oldid=prev"/>
		<updated>2013-01-11T23:09:16Z</updated>

		<summary type="html">&lt;p&gt;added category&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 23:09, 11 January 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Otherwise return false.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Otherwise return false.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty&quot;&gt;&amp;#160;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;+&lt;/td&gt;
  &lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:OXPDoc]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Svengali</name></author>
		
	</entry>
	<entry>
		<id>http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Permits&amp;diff=31228&amp;oldid=prev</id>
		<title>Cim: New Cargoes API for permits</title>
		<link rel="alternate" type="text/html" href="http://backup.witchspacewiki.org/index.php?title=NewCargoesAPI/Permits&amp;diff=31228&amp;oldid=prev"/>
		<updated>2012-03-31T20:24:13Z</updated>

		<summary type="html">&lt;p&gt;New Cargoes API for permits&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Any world script registered as providing trading permit definitions&lt;br /&gt;
for New Cargoes through [[NewCargoesAPI#registerPermit|registerPermit]] must&lt;br /&gt;
contain all of these functions. Permits can include things which make&lt;br /&gt;
goods ''more'' illegal than they would otherwise be (e.g. a trade&lt;br /&gt;
embargo)&lt;br /&gt;
&lt;br /&gt;
Look at the Scripts/cargotypepermits.js script of the New Cargoes OXP&lt;br /&gt;
for a simple example.&lt;br /&gt;
&lt;br /&gt;
==Required functions==&lt;br /&gt;
&lt;br /&gt;
===checkImport===&lt;br /&gt;
&amp;lt;code&amp;gt;int checkImport(CargoID good, int quantity, bool dryrun)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the per-TC legal penalty which these &amp;quot;permits&amp;quot; would apply to&lt;br /&gt;
that good for docking at a Galcop-rules station. This will be added to&lt;br /&gt;
that provided by other permit extensions and the base import penalty&lt;br /&gt;
of the good to calculate the overall legal penalty.&lt;br /&gt;
&lt;br /&gt;
If ''dryrun'' is true, then the check is for a &amp;quot;what-if&amp;quot; scenario, and&lt;br /&gt;
the state of the permit must not be changed by the check (e.g. for a&lt;br /&gt;
limited use permit)&lt;br /&gt;
&lt;br /&gt;
===checkPermit===&lt;br /&gt;
&amp;lt;code&amp;gt;int checkPermit(CargoID good, int quantity, bool dryrun)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the per-TC legal penalty which these &amp;quot;permits&amp;quot; would apply to&lt;br /&gt;
that good for launching from a Galcop-rules station. This will be&lt;br /&gt;
added to that provided by other permit extensions and the base import&lt;br /&gt;
penalty of the good to calculate the overall legal penalty.&lt;br /&gt;
&lt;br /&gt;
If ''dryrun'' is true, then the check is for a &amp;quot;what-if&amp;quot; scenario, and&lt;br /&gt;
the state of the permit must not be changed by the check (e.g. for a&lt;br /&gt;
limited use permit)&lt;br /&gt;
&lt;br /&gt;
===describePermits===&lt;br /&gt;
&amp;lt;code&amp;gt;String describePermits()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns a short string describing the legality modifications currently&lt;br /&gt;
applying to the player in this system as a result of this world&lt;br /&gt;
script.&lt;br /&gt;
&lt;br /&gt;
===permitGossip===&lt;br /&gt;
&amp;lt;code&amp;gt;String? permitGossip()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you wish there to be gossip in the trader bars of this system about&lt;br /&gt;
this permit script, return it here. Gossip should be at most 80&lt;br /&gt;
characters in length, and start with the string &amp;quot;* &amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Otherwise return false.&lt;/div&gt;</summary>
		<author><name>Cim</name></author>
		
	</entry>
</feed>