<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.thedarkmod.com/index.php?action=history&amp;feed=atom&amp;title=In-game_shop</id>
	<title>In-game shop - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.thedarkmod.com/index.php?action=history&amp;feed=atom&amp;title=In-game_shop"/>
	<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;action=history"/>
	<updated>2026-04-29T02:56:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;diff=19312&amp;oldid=prev</id>
		<title>Obsttorte at 14:18, 11 June 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;diff=19312&amp;oldid=prev"/>
		<updated>2017-06-11T14:18:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:18, 11 June 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&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=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Editing]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;== Introduction ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;== Introduction ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Obsttorte</name></author>
	</entry>
	<entry>
		<id>https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;diff=15959&amp;oldid=prev</id>
		<title>Obsttorte: /* Setting it up */</title>
		<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;diff=15959&amp;oldid=prev"/>
		<updated>2013-03-19T16:17:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Setting it up&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:17, 19 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot;&gt;Line 25:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;The script automatically uses the loot the player has. If one type of loot has exceeded, another type is used. If the player hasn&amp;#039;t enough loot to purchase the item, nothings happen. If the amount of items available has exceeded the object will automatically be removed from game.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;The script automatically uses the loot the player has. If one type of loot has exceeded, another type is used. If the player hasn&amp;#039;t enough loot to purchase the item, nothings happen. If the amount of items available has exceeded the object will automatically be removed from game.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;--[[User:Obsttorte|Obsttorte]] ([[User talk:Obsttorte|talk]]) 11:51, 19 March 2013 (EDT)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;--[[User:Obsttorte|Obsttorte]] ([[User talk:Obsttorte|talk]]) 11:51, 19 March 2013 (EDT)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Obsttorte</name></author>
	</entry>
	<entry>
		<id>https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;diff=15956&amp;oldid=prev</id>
		<title>Obsttorte: This article describes how to setup an in-game shop.</title>
		<link rel="alternate" type="text/html" href="https://wiki.thedarkmod.com/index.php?title=In-game_shop&amp;diff=15956&amp;oldid=prev"/>
		<updated>2013-03-19T15:51:44Z</updated>

		<summary type="html">&lt;p&gt;This article describes how to setup an in-game shop.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
If you want to give the player the  possibility to buy items in-game, this article tells you how to do it.&lt;br /&gt;
&lt;br /&gt;
== The scriptobject ==&lt;br /&gt;
&lt;br /&gt;
First of all you need the scriptobject handling the behaviour of the specific objects you want the player to be able to buy. You can get it [http://forums.thedarkmod.com/topic/14394-apples-and-peaches-obsttortes-mapping-and-scripting-thread/page__view__findpost__p__307546, here]. It&amp;#039;s shop_item.script.&lt;br /&gt;
&lt;br /&gt;
Put it in your script folder, delete the .txt ending and include it by adding the line&lt;br /&gt;
&lt;br /&gt;
  #include &amp;quot;script/shop_item.script&amp;quot;&lt;br /&gt;
&lt;br /&gt;
to your tdm_custom_scripts.script file. If there is no such a file, you have to create it.&lt;br /&gt;
&lt;br /&gt;
== Setting it up ==&lt;br /&gt;
&lt;br /&gt;
In DarkRadiant, create a model of the object you want to sell. Place it at it&amp;#039;s position and add the following spawnargs.&lt;br /&gt;
&lt;br /&gt;
- &amp;quot;scriptobject&amp;quot; &amp;quot;shop_item&amp;quot;: This tells the object to use the appropiate script&lt;br /&gt;
- &amp;quot;item&amp;quot; &amp;quot;&amp;lt;itemname&amp;gt;&amp;quot;: itemname is the name of the entity you want the player to buy. If you don&amp;#039;t know the name, you can look it up in the create entity dialog (an example would be atdm:ammo_waterarrow)&lt;br /&gt;
- &amp;quot;price&amp;quot; &amp;quot;X&amp;quot;: how much this item costs (X is the value)&lt;br /&gt;
- &amp;quot;amount&amp;quot; &amp;quot;Y&amp;quot;: how many items are available for selling. If you don&amp;#039;t set this there will be infinite&lt;br /&gt;
- &amp;quot;text&amp;quot; &amp;quot;your_text_here&amp;quot;: if you want a popup-message to appear if the player frobhilights this object, you can put it here (for example &amp;quot;Waterarrow: 50g&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
The script automatically uses the loot the player has. If one type of loot has exceeded, another type is used. If the player hasn&amp;#039;t enough loot to purchase the item, nothings happen. If the amount of items available has exceeded the object will automatically be removed from game.&lt;br /&gt;
--[[User:Obsttorte|Obsttorte]] ([[User talk:Obsttorte|talk]]) 11:51, 19 March 2013 (EDT)&lt;/div&gt;</summary>
		<author><name>Obsttorte</name></author>
	</entry>
</feed>