<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.spherecommunity.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wap</id>
		<title>SphereWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.spherecommunity.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Wap"/>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special:Contributions/Wap"/>
		<updated>2026-04-15T12:09:09Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ROOMDEF&amp;diff=4010</id>
		<title>ROOMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ROOMDEF&amp;diff=4010"/>
				<updated>2013-04-21T15:22:06Z</updated>
		
		<summary type="html">&lt;p&gt;Wap: /* Examples */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
Within [[Regions|regions]] you can also define rooms, which are basically 'sub-regions' that exist inside the area which may represent buildings within a town or a boss room within a dungeon. Rooms are almost identical to regions, except they cannot possess triggers, events or tags.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The syntax for defining a room is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[ROOMDEF ''defname'']&amp;lt;br /&amp;gt;&lt;br /&gt;
RECT=''left, top, right, bottom, map''&amp;lt;br /&amp;gt;&lt;br /&gt;
RECT=''left, top, right, bottom, map''&amp;lt;br /&amp;gt;&lt;br /&gt;
RECT=''left, top, right, bottom, map''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Within the room definition the following properties are also available to customise the behaviour of the area.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ANNOUNCE]] || RW || Gets or sets whether or not there will be an announcement when someone enters or exits the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARENA]] || RW || Gets or sets whether or not the room is considered to be an arena.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUILDABLE]] || RW || Gets or sets whether or not players can place buildings and ships in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the room's attributes.&lt;br /&gt;
|-&lt;br /&gt;
| [[GATE]] || RW || Gets or sets whether or not casting the gate travel spell is allowed in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[GROUP]] || RW || Gets or sets a group name for the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[GUARDED]] || RW || Gets or sets whether or not guards can be called within the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAGIC]] || RW || Gets or sets whether or not there is an anti-magic field in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[MARK]] || RW || Gets or sets whether or not casting the mark spell is allowed in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOBUILD]] || RW || Gets or sets whether or not players can place buildings in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[NODECAY]] || RW || Gets or sets whether or not items will decay in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOPVP]] || RW || Gets or sets whether or not PvP combat is allowed in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the location of the room (used when using the [[GO]] command).&lt;br /&gt;
|-&lt;br /&gt;
| [[RECALL]] || RW || Gets or sets whether or not casting the recall spell is allowed in the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[RECALLIN]] || RW || Gets or sets whether or not it is possible to use the recall spell to enter the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[RECALLOUT]] || RW || Gets or sets whether players can recall out of the room.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAFE]] || RW || Gets or sets whether or not the room is a safe zone.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERGROUND]] || RW || Gets or sets whether or not the room is considered to be underground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// A House in Minoc, from the default script pack.&lt;br /&gt;
//&lt;br /&gt;
[ROOMDEF a_house_1]&lt;br /&gt;
NAME=House&lt;br /&gt;
GROUP=Minoc&lt;br /&gt;
FLAGS=04000&lt;br /&gt;
P=2484,472,0,0&lt;br /&gt;
RECT=2479,463,2489,481,0&lt;br /&gt;
RECT=2489,471,2497,481,0&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// A Secret Cave, from the default script pack.&lt;br /&gt;
//&lt;br /&gt;
[ROOMDEF a_secret_cave_1]&lt;br /&gt;
NAME=Secret Cave&lt;br /&gt;
GROUP=Hidden Valley&lt;br /&gt;
P=1653,2967,0,0&lt;br /&gt;
RECT=1648,2957,1658,2977,0&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Wap</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=1278</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=1278"/>
				<updated>2013-01-02T21:33:38Z</updated>
		
		<summary type="html">&lt;p&gt;Wap: /* Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|ITEMDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
&lt;br /&gt;
An ITEMDEF block defines the basic properties of an [[Items|item]].&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
Here is a list of all item definition properties.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]] ''min,max'' || RW || Gets or sets the base protection that the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].LO || R || Gets the minimum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARMOR]].HI || R || Gets the maximum base protection the armour will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASEID]] || R || Gets the defname of the item if set, otherwise the ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW || Gets or sets attributes for the item. See can_i_flags in sphere_defs.scp.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]] ''min,max'' || RW || Gets or sets the base damage that the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].LO || R || Gets the minimum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAM]].HI || R || Gets the maximum base damage the weapon will deal.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEFNAME]] || RW || Gets or sets defname of the item&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID to display as to clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPEITEM]] || RW || Gets or sets the defname of the item that this is a duplicate/rotation of (see [[DUPELIST]]).&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPELIST]] ''item_defname, item_defname, ...'' || RW || Gets or sets a comma-separated list of items that this item will cycle through when rotated.&lt;br /&gt;
|-&lt;br /&gt;
| [[DYE]] || RW || Gets or sets whether or not the item can be dyed using dye tubs (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || RW || Gets or sets whether or not the item automatically rotates when dropped.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || RW || Gets or sets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item to inherit property values from.&lt;br /&gt;
|-&lt;br /&gt;
| [[INSTANCES]] || R || Returns the number of this item that exist in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] || R || Gets whether or not the item is considered to be armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] || R || Gets whether or not the item is considered to be a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item will occupy when equipped (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the name of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] ''min, max'' || RW || Gets or sets the range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEH]] || R || Gets the maximum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGEL]] || R || Gets the minimum range of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || RW || Gets or sets whether or not the item can be repaired (1 or 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[REPLICATE]] || RW || Gets or sets whether or not multiple instances of the item can be crafted at once.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPDNHUE]] || RW || Gets or sets the colour to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESDISPNID]] || RW || Gets or sets the item ID to display as to clients who don't have a high enough [[RESDISP]] to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESLEVEL]] || RW || Gets the minimum [[RESDISP]] required for a client to see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESMAKE]] || R || Returns the names of the resources needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]] || RW || Gets or sets the resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.COUNT'' || R || Gets the number of different resources that are needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.KEY'' || R || Gets the [[BASEID]] of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[RESOURCES]]''.n.VAL'' || R || Gets the amount of the nth resource needed to craft the item. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[REQSTR]] || RW || Gets or sets the amount of strength needed to equip the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Item Property)|SKILL]] || RW || Gets or sets the skill that is used with the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]] || RW || Gets or sets the list of skills needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.KEY || R || Gets the name of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMAKE]]''.n.VAL || R || Gets the amount of the nth skill needed to craft the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEED]] || RW || Gets or sets the speed of the weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA1]] || RW || Gets or sets the TDATA1 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA2]] || RW || Gets or sets the TDATA2 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA3]] || RW || Gets or sets the TDATA3 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TDATA4]] || RW || Gets or sets the TDATA4 value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TEVENTS]] || RW || Gets a list of events attached the item, or adds an event to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TFLAGS]] || R || Gets or sets the flags of the item from tiledata.mul.&lt;br /&gt;
|-&lt;br /&gt;
| [[TWOHANDS]] || RW || Gets or sets whether or not the item occupies both hands when equipped (layer_hand2)&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item's type.&lt;br /&gt;
|-&lt;br /&gt;
| [[VALUE]] || RW || Gets or sets the base value of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || RW || Gets or sets the weight of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multi Definitions==&lt;br /&gt;
For multi items (t_multi, t_multi_custom, t_ship), the ITEMDEF has additional properties.&lt;br /&gt;
&lt;br /&gt;
===Properties===&lt;br /&gt;
Here is a list of all multi definition properties.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Read/Write''' || '''Override&amp;amp;dagger;''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]] || R || ?? || Gets how many static components the multi has in the multi.mul file.&lt;br /&gt;
|-&lt;br /&gt;
| [[BASECOMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's static components directly from the multi.mul file. (ID,DX,DY,DZ,D,VISIBLE)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] || R || ?? || Gets how many dynamic components have been defined for the multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]]''.n.KEY'' || R || ?? || Accesses the multi's dynamic components. (ID,DX,DY,DZ,D)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENT]] ''item_defname, dx, dy, dz'' || W || ?? || Defines a dynamic component to the multi that will be spawned along with it (e.g. doors and house sign)&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTIREGION]] ''left, top, right, bottom'' || RW || ?? || Gets or sets the boundaries of the multi (t_multi, t_multi_custom, t_ship).&lt;br /&gt;
|-&lt;br /&gt;
| [[REGIONFLAGS]] || RW || ?? || Gets or sets the flags that will be set on the multi's region.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]] ''tiles, period'' || RW || ?? || Gets or sets the speed that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the speed that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[TSPEECH]] || RW || ?? || Gets a list of attached [[SPEECH]] handlers, or adds a handler to the multi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''&amp;amp;dagger;''' Some ITEMDEF properties can be overridden using tags.  For example, TAG.OVERRIDE.SHIPSPEED.PERIOD and TAG.OVERRIDE.SHIPSPEED.TILES can be set on individual ships in-game to affect their speed.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;//&lt;br /&gt;
// Blue Gold&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF i_gold_blue]&lt;br /&gt;
ID=i_gold      // inherits from i_gold&lt;br /&gt;
NAME=Blue Gold // named Blue Gold&lt;br /&gt;
TYPE=t_gold    // is type t_gold&lt;br /&gt;
VALUE=10       // valued at gold&lt;br /&gt;
&lt;br /&gt;
ON=@Create&lt;br /&gt;
	COLOR = colors_blue&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//&lt;br /&gt;
// Small Stone and Plaster House (from default script pack)&lt;br /&gt;
//&lt;br /&gt;
[ITEMDEF 04064]                           // item ID 0x4064 (in mul files)&lt;br /&gt;
DEFNAME=i_multi_house_stone_plaster_small&lt;br /&gt;
NAME=Small Stone and Plaster House&lt;br /&gt;
TYPE=t_multi&lt;br /&gt;
VALUE=43800                               // valued at 43800 gold&lt;br /&gt;
MULTIREGION=-3,-3,3,4                     // size of the region, relative to location of the item&lt;br /&gt;
COMPONENT=i_door_wood,0,3,7               // adds a door at 0,3,7 (relative to location of the item)&lt;br /&gt;
COMPONENT=i_sign_brass_2,2,4,5            // adds a brass sign at 2,4,5 (relative to location of the item)&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Wap</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=LIST&amp;diff=1277</id>
		<title>LIST</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=LIST&amp;diff=1277"/>
				<updated>2013-01-02T21:30:42Z</updated>
		
		<summary type="html">&lt;p&gt;Wap: Created page with &amp;quot;01-02-2009, Shadow Dragon - Added: Basic LIST support.   LIST.xxx to show elements in list. Also, can be used like LIST.xxx=value to clear list and add a value   LIST.xxx.ADD ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;01-02-2009, Shadow Dragon&lt;br /&gt;
- Added: Basic LIST support.&lt;br /&gt;
  LIST.xxx to show elements in list. Also, can be used like LIST.xxx=value to clear list and add a value&lt;br /&gt;
  LIST.xxx.ADD to add new element to list, can be number or string&lt;br /&gt;
  LIST.xxx.CLEAR to clear list&lt;br /&gt;
  LIST.xxx.index to read/write value on element in list&lt;br /&gt;
  LIST.xxx.COUNT to get count of elements in list&lt;br /&gt;
  LIST.xxx.index.REMOVE to remove element at specified index in list&lt;br /&gt;
  LIST.xxx.index.INSERT to insert element at specified index in list&lt;br /&gt;
  LIST.xxx.FINDELEM search_value returns index of first found element in list. Search starting from begin&lt;br /&gt;
  LIST.xxx.index.FINDELEM search_value returns index of first found element in list. Search starting from index&lt;br /&gt;
  SERV.PRINTLISTS to print all lists and their elements&lt;br /&gt;
  SERV.CLEARLISTS to clear all lists. If used with mask parameter, then clear all lists, which name countains specified mask&lt;/div&gt;</summary>
		<author><name>Wap</name></author>	</entry>

	</feed>