<?xml version="1.0"?>
<rss version="2.0"><channel><title>Docs: Docs</title><link>https://metin2.dev/docs/pages/?d=16</link><description>Docs: Docs</description><language>en</language><item><title>Script file</title><link>https://metin2.dev/docs/pages/script-file-r13/</link><description><![CDATA[<p>
	The ScriptFile is a special type of text file used to declare several information, you can think of this format as the JSON of Metin2.<br>
	The format is a simple Dictionary with the ability to contain Group and Lists.<br>
	Each key and value is divided by a TAB (/t), do note that the "4 spaces" does not work in replacement of a tab.<br>
	Comments are done with either * or //
</p>

<p>
	Example:
</p>

<pre class="ipsCode" id="ips_uid_6750_4">ScriptType Test</pre>

<p>
	Usage:
</p>

<pre class="ipsCode" id="ips_uid_6750_6">Key(TAB)Value1(TAB or SPACE)Value2(TAB or SPACE)</pre>

<p>
	 
</p>

<p>
	<strong>Commas</strong>
</p>

<p>
	commas are used to let the client parse multiple values into one.
</p>

<p>
	Example:
</p>

<pre class="ipsCode" id="ips_uid_6750_8">TestKey(TAB)TestNode TestNode2</pre>

<p>
	In this case TestNode and TestNode2 would be readed as two different values.
</p>

<pre class="ipsCode" id="ips_uid_6750_10">TestKey(TAB)"TestNode TestNode2"</pre>

<p>
	In this case TestNode and TestNode2 would be part of the same value.
</p>

<p>
	 
</p>

<p>
	<strong>Groups</strong>
</p>

<p>
	Usage:
</p>

<pre class="ipsCode" id="ips_uid_6750_12">Group (name) {}</pre>

<p>
	The groups are containers of keyvalue and are divided by the {} the key group MUST EXIST or the group is not considered valid
</p>

<p>
	Example:
</p>

<pre class="ipsCode" id="ips_uid_6750_14">Group Foo
{ 
	Test	"1"
	Group2	33
}</pre>

<p>
	 
</p>

<p>
	<strong>List</strong>
</p>

<p>
	Usage:
</p>

<pre class="ipsCode" id="ips_uid_6750_16">List (name) {}</pre>

<p>
	Example:
</p>

<pre class="ipsCode" id="ips_uid_6750_20">List Foo
{
	32, 55, 49, "bar"
}</pre>

<p>
	 
</p>

<p>
	<strong>Used in</strong>
</p>

<ul>
	<li>
		This specification is use for the following formats:
	</li>
	<li>
		.msm (Metin2 Script Mesh)
	</li>
	<li>
		.txt (various text files, see below)
	</li>
	<li>
		.mss (Metin2 Script Sound)
	</li>
	<li>
		.prt (Object Property)
	</li>
	<li>
		.mse (Metin2 Script Effect)
	</li>
	<li>
		.msf (Metin2 Script ?)
	</li>
	<li>
		.msa (Metin2 Script animation)
	</li>
	<li>
		<a href="https://metin2.dev/docs/pages/sub-file-r12/" rel="">.sub (Subimage)</a>
	</li>
	<li>
		.msenv (Metin2 Script Environment)
	</li>
</ul>

<p>
	<strong>Text files (root/locale)</strong>
</p>

<ul>
	<li>
		atlasinfo.txt
	</li>
	<li>
		npclist.txt
	</li>
	<li>
		item_list.txt
	</li>
	<li>
		item_scale.txt
	</li>
	<li>
		loading_tip_list.txt
	</li>
	<li>
		grkblk.txt
	</li>
	<li>
		monster_card.txt
	</li>
	<li>
		monster_card_achiev.txt
	</li>
	<li>
		partymatch_info.txt
	</li>
	<li>
		race_height.txt
	</li>
	<li>
		skilltable.txt
	</li>
	<li>
		user_situation.txt
	</li>
	<li>
		locale/map/point txt files
	</li>
	<li>
		locale/shungmahee tower
	</li>
	<li>
		guildbuildinglist.txt
	</li>
	<li>
		itemdesc.txt
	</li>
	<li>
		locale_string.txt
	</li>
	<li>
		locale_quest.txt
	</li>
	<li>
		locale_quiz.txt
	</li>
	<li>
		locale_interface.txt
	</li>
	<li>
		locale_game.txt
	</li>
	<li>
		loading_tip_vnum.txt
	</li>
	<li>
		pet_skill.txt
	</li>
	<li>
		shop_deco.txt
	</li>
	<li>
		skilldesc.txt
	</li>
	<li>
		web_linked_banner.txt
	</li>
</ul>

<p>
	<strong>Maps</strong>
</p>

<ul>
	<li>
		<a href="https://metin2.dev/docs/pages/maps-r14/" rel="">AreaData.txt</a>
	</li>
	<li>
		<a href="https://metin2.dev/docs/pages/maps-r14/" rel="">AreaProperty.txt</a>
	</li>
	<li>
		<a href="https://metin2.dev/docs/pages/maps-r14/" rel="">AreaAmbienceData.txt</a>
	</li>
	<li>
		<a href="https://metin2.dev/docs/pages/maps-r14/" rel="">Settings.txt</a>
	</li>
	<li>
		<a href="https://metin2.dev/docs/pages/maps-r14/" rel="">MapProperty.txt</a>
	</li>
</ul>
]]></description><guid isPermaLink="false">13</guid><pubDate>Tue, 07 Nov 2023 17:19:57 +0000</pubDate></item><item><title>Property</title><link>https://metin2.dev/docs/pages/property-r17/</link><description><![CDATA[<p>
	The Property files are a special type of <a href="https://metin2.dev/docs/pages/script-file-r13/" rel="">Script file</a> that defines informations about the objects that are contained inside a Map.<br>
	A property file MUST start with YPRT (and next line), this is the magic check that a property file does.<br>
	The next line of the property MUST BE the CRC32 of the object file name (which will be used to build a CRC32 map that will get loaded by AreaData files.<br>
	The remaining lines are parsed as a Script file, there are different lines.<br>
	Between all the Property files that metin2 can load, there are two options (apart from the magic and the crc32) that are always present in any property file.
</p>

<table style="width: 100%;">
	<caption>
		Common options
	</caption>
	<tbody>
		<tr>
			<th>
				Name
			</th>
			<th>
				Description
			</th>
			<th>
				Possible values
			</th>
		</tr>
		<tr>
			<td>
				PropertyName
			</td>
			<td>
				Defines the name of this property
			</td>
			<td>
				A string
			</td>
		</tr>
		<tr>
			<td>
				PropertyType
			</td>
			<td>
				Defines the type of this property
			</td>
			<td>
				A string that must contain a valid property type
			</td>
		</tr>
	</tbody>
</table>

<p>
	The property type also affects the extension that the file MUST have, each property supports extra options (except for None property).
</p>

<p>
	Here is a list of all supported properties:
</p>

<table style="width: 100%;">
	<caption>
		Supported properties
	</caption>
	<tbody>
		<tr>
			<th>
				Name
			</th>
			<th>
				Extension
			</th>
			<th>
				Description
			</th>
		</tr>
		<tr>
			<td>
				None
			</td>
			<td>
				.pr
			</td>
			<td>
				This seems to be an empty property without anything extra.
			</td>
		</tr>
		<tr>
			<td>
				Tree
			</td>
			<td>
				.ptr
			</td>
			<td>
				A tree object that will be rendered with SpeedTree.
			</td>
		</tr>
		<tr>
			<td>
				Building
			</td>
			<td>
				.prb
			</td>
			<td>
				An object found in maps.
			</td>
		</tr>
		<tr>
			<td>
				Effect
			</td>
			<td>
				.pte
			</td>
			<td>
				?
			</td>
		</tr>
		<tr>
			<td>
				Ambience
			</td>
			<td>
				.pra
			</td>
			<td>
				?
			</td>
		</tr>
		<tr>
			<td>
				DungeonBlock
			</td>
			<td>
				.prd
			</td>
			<td>
				Blocks used to rapresent the area of a dungeon.
			</td>
		</tr>
	</tbody>
</table>

<h3>
	 
</h3>

<h3>
	<span class="mw-headline" id="Building">Building</span>
</h3>

<table style="width: 100%;">
	<caption>
		building options
	</caption>
	<tbody>
		<tr>
			<th>
				Name
			</th>
			<th>
				Description
			</th>
			<th>
				Possible values
			</th>
		</tr>
		<tr>
			<td>
				buildingfile
			</td>
			<td>
				Defines the GR2 of the model that will be loaded for the building.
			</td>
			<td>
				A string
			</td>
		</tr>
		<tr>
			<td>
				shadowflag
			</td>
			<td>
				We suppose that this flag was intended to be used for disabling shadows in objects, and despite the game contains reference of it, it doesn't seem to affect the building in any way.
			</td>
			<td>
				A boolean (1 = true, 0 or undefined = false)
			</td>
		</tr>
	</tbody>
</table>

<h3>
	 
</h3>

<h3>
	<span class="mw-headline" id="Dungeon_block">Dungeon block</span>
</h3>

<table style="width: 100%;">
	<caption>
		dungeon block options
	</caption>
	<tbody>
		<tr>
			<th>
				Name
			</th>
			<th>
				Description
			</th>
			<th>
				Possible values
			</th>
		</tr>
		<tr>
			<td>
				dungenblockfile
			</td>
			<td>
				Defines the GR2 of the model that will be loaded as a block.
			</td>
			<td>
				A string
			</td>
		</tr>
	</tbody>
</table>
]]></description><guid isPermaLink="false">17</guid><pubDate>Tue, 07 Nov 2023 18:23:27 +0000</pubDate></item></channel></rss>
