<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/User:Jbeta/weaponsets?action=history&amp;feed=atom</id>
	<title>User:Jbeta/weaponsets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/User:Jbeta/weaponsets?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;action=history"/>
	<updated>2026-04-09T13:49:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;diff=6940&amp;oldid=prev</id>
		<title>Jbeta at 00:30, 30 December 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;diff=6940&amp;oldid=prev"/>
		<updated>2006-12-30T00:30:28Z</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 00:30, 30 December 2006&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-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&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;*'''ammo''': ammo given&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;*'''ammo''': ammo given&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;*'''chance''': chance to get that weapon from the set, in ratio (i.e total sum of chances doesn't have to be 100, you could use 1:1:2:3:1 for example)&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;*'''chance''': chance to get that weapon from the set, in ratio (i.e total sum of chances doesn't have to be 100, you could use 1:1:2:3:1 for example)&lt;/div&gt;&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;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;br&amp;gt;&lt;/del&gt;''Note'': if chance isn't specified, the weapon is picked automatically and those below it are ignored.&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;''Note'': if chance isn't specified, the weapon is picked automatically and those below it are ignored.&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;*'''drop''': possibility to drop the weapon along with held ammo on death, on percentage&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;*'''drop''': possibility to drop the weapon along with held ammo on death, on percentage&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;*'''boost''': if the player gets this weapon, he also gets an extra powerup (currently '''armor''' is the only valid boost, may be expanded with stats later)&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;*'''boost''': if the player gets this weapon, he also gets an extra powerup (currently '''armor''' is the only valid boost, may be expanded with stats later)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-6939:rev-6940 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jbeta</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;diff=6939&amp;oldid=prev</id>
		<title>Jbeta at 00:29, 30 December 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;diff=6939&amp;oldid=prev"/>
		<updated>2006-12-30T00:29:23Z</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 00:29, 30 December 2006&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-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&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;*'''ammo''': ammo given&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;*'''ammo''': ammo given&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;*'''chance''': chance to get that weapon from the set, in ratio (i.e total sum of chances doesn't have to be 100, you could use 1:1:2:3:1 for example)&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;*'''chance''': chance to get that weapon from the set, in ratio (i.e total sum of chances doesn't have to be 100, you could use 1:1:2:3:1 for example)&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;&amp;lt;br&gt;''Note'': if chance isn't specified, the weapon is picked automatically and those below it are ignored.&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;*'''drop''': possibility to drop the weapon along with held ammo on death, on percentage&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;*'''drop''': possibility to drop the weapon along with held ammo on death, on percentage&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;*'''boost''': if the player gets this weapon, he also gets an extra powerup (currently '''armor''' is the only valid boost, may be expanded with stats later)&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;*'''boost''': if the player gets this weapon, he also gets an extra powerup (currently '''armor''' is the only valid boost, may be expanded with stats later)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki-wiki_dev_:diff::1.12:old-6937:rev-6939 --&gt;
&lt;/table&gt;</summary>
		<author><name>Jbeta</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;diff=6937&amp;oldid=prev</id>
		<title>Jbeta at 00:24, 30 December 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Jbeta/weaponsets&amp;diff=6937&amp;oldid=prev"/>
		<updated>2006-12-30T00:24:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
Assigns weapons to a player based on map-defined weaponsets. Each weaponset may contain any number of weapons with a probability ratio, so that some weapons in the set are more unlikely to be obtained than others.&lt;br /&gt;
&amp;lt;br&amp;gt;A drop chance (in percentage) can also be defined on the map file, to make that weapon have more or less chances to be dropped as a pickup, with the amount of ammo held at the moment of death.&lt;br /&gt;
&lt;br /&gt;
==Weaponset example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;parent&amp;gt;&lt;br /&gt;
	&amp;lt;weaponset&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;3&amp;quot; ammo=&amp;quot;1&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/weaponset&amp;gt;&lt;br /&gt;
	&amp;lt;weaponset&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;24&amp;quot; ammo=&amp;quot;50&amp;quot; drop=&amp;quot;100&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/weaponset&amp;gt;&lt;br /&gt;
	&amp;lt;weaponset&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;25&amp;quot; ammo=&amp;quot;20&amp;quot; chance=&amp;quot;35&amp;quot; drop=&amp;quot;50&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;34&amp;quot; ammo=&amp;quot;15&amp;quot; chance=&amp;quot;20&amp;quot; drop=&amp;quot;50&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;29&amp;quot; ammo=&amp;quot;120&amp;quot; chance=&amp;quot;20&amp;quot; drop=&amp;quot;50&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;31&amp;quot; ammo=&amp;quot;80&amp;quot; chance=&amp;quot;15&amp;quot; drop=&amp;quot;50&amp;quot;/&amp;gt;&lt;br /&gt;
		&amp;lt;weapon id=&amp;quot;17&amp;quot; ammo=&amp;quot;2&amp;quot; chance=&amp;quot;10&amp;quot; drop=&amp;quot;50&amp;quot; boost=&amp;quot;armor&amp;quot;/&amp;gt;&lt;br /&gt;
	&amp;lt;/weaponset&amp;gt;&lt;br /&gt;
&amp;lt;/parent&amp;gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''id''': weapon id&lt;br /&gt;
*'''ammo''': ammo given&lt;br /&gt;
*'''chance''': chance to get that weapon from the set, in ratio (i.e total sum of chances doesn't have to be 100, you could use 1:1:2:3:1 for example)&lt;br /&gt;
*'''drop''': possibility to drop the weapon along with held ammo on death, on percentage&lt;br /&gt;
*'''boost''': if the player gets this weapon, he also gets an extra powerup (currently '''armor''' is the only valid boost, may be expanded with stats later)&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
The weapon assignment function is:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table AssignWeapons ( player player, element parent, [ bool dropenabled = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Returns a table with the chosen weapon elements if assignment was successful, ''false'' if all weaponsets were empty.&lt;/div&gt;</summary>
		<author><name>Jbeta</name></author>
	</entry>
</feed>