<?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=Jhobean</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=Jhobean"/>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special:Contributions/Jhobean"/>
		<updated>2026-04-19T09:05:35Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@PersonalSpace&amp;diff=8905</id>
		<title>@PersonalSpace</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@PersonalSpace&amp;diff=8905"/>
				<updated>2025-10-02T16:26:54Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add ARGN3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is stepped on by another character.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] being stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] doing the stepping.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The amount of stamina needed to step on to the character.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || O  || Setting it to 1 allow NPCs to pass over another NPCs, 0 reject the movement.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO  || Maximum stamina requirement (default 1 = require maximum stamina)(X-Only)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the character from being stepped on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=8114</id>
		<title>TYPEDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=8114"/>
				<updated>2025-05-20T10:45:33Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|TYPEDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Type definitions are the equivalent of [[EVENTS]] that can be attached to [[Items|items]]. There are different properties that can be used to attach a type block to an item or set of items:&lt;br /&gt;
* [[ITEMDEF|item definitions]] via their [[TYPE]] and/or [[TEVENTS]] property.&lt;br /&gt;
* [[Items|items]] via their [[TYPE]] and/or [[EVENTS (Property)|EVENTS]] property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to handling triggers, type definitions can also be used to define different types of terrain. This can be used to affect the return value of the [[TYPE]] property on [[Map points|map points]], or for some hardcoded types such as t_rock it can be used to define which terrain IDs Sphere should consider to be rock when the mining skill is used.&lt;br /&gt;
&lt;br /&gt;
==Built-in Types==&lt;br /&gt;
&lt;br /&gt;
The built-in types are all listed in the sphere_defs.scp file.  The table below only lists some of the built-in types and it is VERY weak on actual details...so use with care.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! DEFNAME !! Number !! Description&lt;br /&gt;
|- &lt;br /&gt;
| t_normal || 0 || No built-in behavior.&lt;br /&gt;
|- &lt;br /&gt;
| t_container and t_container_locked || 1 and 2 || These types are used for containers.  They leverage the following properties:&lt;br /&gt;
* MORE1 = &amp;quot;ID&amp;quot; from the key that can unlock this item (If the MORE1 of the key matches the MORE1 of the container then they are linked)&lt;br /&gt;
* MORE2 = The lock complexity (how hard it is to pick the lock)&lt;br /&gt;
* MOREX = The trap type (not used yet?)&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3/4: Defines rectangle, where you can place items (so they won't end up out of gump)&lt;br /&gt;
* TDATA3 = top left corner. Hexadecimal number, each position takes 4 bytes, XY (example: X = 10 (0a) and Y = 20 (014) will look like TDATA3=000a0014&lt;br /&gt;
* TDATA4 = bottom right corner.&lt;br /&gt;
* LINK = UID of a secondary key?&lt;br /&gt;
|- &lt;br /&gt;
| t_door or t_door_locked || 3 or 4 || This type is used for both unlocked and locked doors.  They leverage the following properties:&lt;br /&gt;
* MORE1 = UID of this door's key (if it has one)&lt;br /&gt;
* TDATA1 = ID for the sound it makes when double clicked&lt;br /&gt;
|- &lt;br /&gt;
| t_key || 5 || This type is used for keys.  It leverages the following properties:&lt;br /&gt;
* MORE1 = &amp;quot;ID&amp;quot; of the item(s) this key can unlock (if the MORE1 of the key matches the MORE1 of the container/door then they are linked)&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_light_lit || 6 || This type is used for light sources that can be turned onIT_S or off.  It leverages the following properties:&lt;br /&gt;
* MOREY = Number of charges before the item is consumed&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|- &lt;br /&gt;
| t_light_out || 7 || This type is used for light sources that can be turned on or off.  It leverages the following properties:&lt;br /&gt;
* MOREY = Number of charges before the item is consumed&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|- &lt;br /&gt;
| t_food || 8 || This type is used for edible food.  It leverages the following properties:&lt;br /&gt;
* MORE2 = The ID of the creature that this came from&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the food&lt;br /&gt;
'''Note:''' The following properties may also exist depending on your server version:&lt;br /&gt;
* MOREX = The ID of a spell effect that will be gained when eaten&lt;br /&gt;
* MOREY = The strength of the spell effect&lt;br /&gt;
|- &lt;br /&gt;
| t_food_raw || 9 || This type is used for ''raw'' food.  It leverages the following properties:&lt;br /&gt;
* MORE1 = ID of the item it makes when cooked (the default is i_unused and if defined, it will override TDATA1)&lt;br /&gt;
* MORE2 = The ID of the creature that this came from&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the food&lt;br /&gt;
* TDATA1 = The item ID this cooks into&lt;br /&gt;
'''Note:''' The following properties may also exist depending on your server version:&lt;br /&gt;
* MOREX = The ID of a spell effect that will be gained when eaten&lt;br /&gt;
* MOREY = The strength of the spell effect&lt;br /&gt;
* TDATA2 = The creature ID type that the food came from&lt;br /&gt;
* TDATA3 = The amount of skill required to cook it (did this ever work?)&lt;br /&gt;
|- &lt;br /&gt;
| t_armor || 10 || This type is used for armor.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREX = Spell effect when worn (for example, setting MOREX=1 causes a permanent Clumsy effect)&lt;br /&gt;
* MOREY = There are two possible effects of setting MOREY:&lt;br /&gt;
*# If MOREX is set, then MOREY is the power/effect of that spell&lt;br /&gt;
*# If the ATTR includes attr_magic, then there is an AR bonus (how is this calculated?)&lt;br /&gt;
'''Note:''' Old versions of sphere stored remaining charges in MORE2, this is no longer true.&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_mace_smith || 11 || This type is used for macefighting weapons that can also be used by blacksmiths to forge items.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_mace_sharp || 12 || This type is used for macefighting weapons that have sharp cutting edges.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_sword || 13 || This type is used for swordsmanship weapons.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_fence || 14 || This type is used for fencing weapons.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_bow || 15 || This type is used for archery weapons (bow or crossbow).  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
* TDATA1 = The sound effect the weapon makes when it shoots&lt;br /&gt;
* TDATA2 = The required strength to wield the weapon&lt;br /&gt;
* TDATA3 = ID of arrow item that will be fired (and must therefore be on the player's person)&lt;br /&gt;
* TDATA4 = ID of the arrow animation (for bows it is usually i_arrow_x, for crossbows, i_xbow_x)&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = to override the sound this weapon makes when it misses&lt;br /&gt;
* AMMOANIMRENDER = to override the rendermode of the ANIM this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOTYPE = to override the type of ammo (TDATA3) this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOANIM = to override the ammo animation (TDATA4) this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOANIMHUE = to override the color of the ammo animation this item uses (yes, no TAGs)&lt;br /&gt;
|- &lt;br /&gt;
| t_wand || 16 || This type is used for magic wands.  It leverages the following properties:&lt;br /&gt;
* MORE1L = the current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = the maximum hitpoints for the item&lt;br /&gt;
* MORE2 = the number of remaining charges (if magical)&lt;br /&gt;
* MOREX = the spell type (if magical)&lt;br /&gt;
* MOREY = the spell strength (0-1000)&lt;br /&gt;
* MOREZ = the poison skill applied (0-100)&lt;br /&gt;
* TDATA2 = Required Strength to equip the wand&lt;br /&gt;
* TDATA3 = ID of the light pattern&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object). &lt;br /&gt;
|- &lt;br /&gt;
| t_telepad || 17 || This type is used for teleport pads.  It leverages the following properties:&lt;br /&gt;
* MOREP = Coordinates of the point to which you will teleport when you step on the item&lt;br /&gt;
* MORE1 = If set to 1, the teleport pad will only work for players (and their pets)&lt;br /&gt;
* MORE2 = If set to 1, the teleport animation and sound will not be shown to anyone witnessing the teleport&lt;br /&gt;
|- &lt;br /&gt;
| t_switch || 18 || This type is used for switches.  The way these things work is, when used, they trigger @DCLICK on the LINK object.  It leverages the following properties:&lt;br /&gt;
* LINK = UID of item to trigger&lt;br /&gt;
* MORE1 = The item ID of the next state of the switch&lt;br /&gt;
* MOREX = A flag to indicate if this is activated by stepping on it&lt;br /&gt;
|-&lt;br /&gt;
| t_book || 19 || This type is used for books of static or dynamic text.  It leverages the following properties:&lt;br /&gt;
* MORE1L = This can be set to an ID of a book (some default book text is included in the sphere_books.scp file)&lt;br /&gt;
* MORE1H = Some flags that determine book behavior:&lt;br /&gt;
** 0c00: Scripted book&lt;br /&gt;
** 0800: Editable book&lt;br /&gt;
** 08000: ? time stamp ?&lt;br /&gt;
* AUTHOR = The ID of the character that wrote the book&lt;br /&gt;
* BODY.# = The text for each page of the book (starting with page 0)&lt;br /&gt;
'''Note:''' we need more information on those flags...&lt;br /&gt;
|-&lt;br /&gt;
| t_rune || 20 || This type is used for recall runes.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The number of uses left before it wears out&lt;br /&gt;
* MOREP = The coordinates of the marked location&lt;br /&gt;
|-&lt;br /&gt;
| t_booze || 21 || This type is used for alcohol (it causes a drunk effect when double clicked.)  It leverages the following properties:&lt;br /&gt;
* TDATA1 = A flag that indicates whether the container is empty or not.&lt;br /&gt;
|-&lt;br /&gt;
| t_potion || 22 || This type is used for potions.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The potion spell effect that will result when the potion is double clicked&lt;br /&gt;
* MORE2 = The strength of the potion (This has a different effect defending on the spell, usually between 0 and 1000)&lt;br /&gt;
* MOREX = The countdown to explosion (for purple potions)&lt;br /&gt;
* TDATA1 = A flag that indicates whether the container is empty or not&lt;br /&gt;
|-&lt;br /&gt;
| t_fire || 23 || This type is used for fires (and ovens?).  These items can be used to cook food, and they can burn you if stepped on.  It leverages the following properties:&lt;br /&gt;
* TIMER = time until it decays?&lt;br /&gt;
* MORE1 (or MORE2?) = Amount of damage it will cause when stepped on or dclicked&lt;br /&gt;
* MOREZ =  Type of light pattern it will cast&lt;br /&gt;
|-&lt;br /&gt;
| t_clock || 24 || This type is used to tell time (game time, not real time) when double clicked.  The result comes out something like &amp;quot;half past eleven o'clock at night&amp;quot;.  From what I can tell there are no MORE or TDATA modifiers that affect the result.&lt;br /&gt;
|-&lt;br /&gt;
| t_trap and t_trap_active || 25 and 26 || These types are used for traps that are triggered when walked on.  They leverage the following properties:&lt;br /&gt;
* MORE1 = ID of the animation&lt;br /&gt;
* MORE2 = The damage the trap will cause&lt;br /&gt;
* MOREX = The length of time the animation will run&lt;br /&gt;
* MOREY = The length of time the activated trap will idle until reset&lt;br /&gt;
* MOREZ = A flag that indicates if the trap must idle before changing from active to inactive. &lt;br /&gt;
|-&lt;br /&gt;
| t_musical || 27 || This type is used for musical instruments.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The sound ID to be played if successful&lt;br /&gt;
* TDATA2 = The sound ID to be played if not successful&lt;br /&gt;
|-&lt;br /&gt;
| t_spell || 28 || This type is used for magic spell effects.  It leverages the following properties:&lt;br /&gt;
* MORE1L = The polymorph effect on STR&lt;br /&gt;
* MORE1H = The polymorph effect on DEX&lt;br /&gt;
* MORE2 = The number of charges left&lt;br /&gt;
* MOREX = The spell effect that will result when the item is stepped on&lt;br /&gt;
* MOREY = The strength of the spell (This has a different effect defending on the spell, usually between 0 and 1000)&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|-&lt;br /&gt;
| t_gem || 29 || This type is used for gems, and from what I can tell there is no built-in behavior for it.&lt;br /&gt;
|-&lt;br /&gt;
| t_water || 30 || This type is used for water, which means it can be fished in or used to clean used bandages.&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_clothing || 31 || This type is used for all cloth based equip-able items.  It is essentially identical to t_armor and t_armor_leather.    It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREX = Spell effect when worn (for example, setting MOREX=1 causes a permanent Clumsy effect)&lt;br /&gt;
* MOREY = There are two possible effects of setting MOREY:&lt;br /&gt;
*# If MOREX is set, then MOREY is the power/effect of that spell&lt;br /&gt;
*# If the ATTR includes attr_magic, then there is an AR bonus (how is this calculated?)&lt;br /&gt;
'''Note:''' Old versions of sphere stored remaining charges in MORE2, this is no longer true.&lt;br /&gt;
|-&lt;br /&gt;
| t_scroll || 32 || This type is used for scrolls.  It leverages the following properties:&lt;br /&gt;
* MOREX = ID of the spell to cast when double-clicked&lt;br /&gt;
* MOREY = Power of the spell (equivalent to the EFFECT setting of the spell itself?)&lt;br /&gt;
|- &lt;br /&gt;
| t_carpentry || 33 || This type is used by carpenters to craft items, and from what I can tell there is no built-in behavior for it.&lt;br /&gt;
|- &lt;br /&gt;
| t_spawn_char || 34 || This type is used to spawn NPCs.  Once it spawns its first creature, it will turn red and change its appearance to the ICON of the creature (or appear as a wisp if the spawn is set to use a template.)  It leverages the following properties:&lt;br /&gt;
* AMOUNT = The maximum amount of NPCs the spawner should create&lt;br /&gt;
* MORE1/SPAWNID* = The creature ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2/COUNT* = The current number of creatures spawned from this point&lt;br /&gt;
* MOREX/TIMELO* = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY/TIMEHI* = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ/MAXDIST* = The maximum distance away from the spawn to create the spawned NPC (this is also the maximum wander distance for the NPC)&lt;br /&gt;
* AT*(R/W) = Access the object in the N position and reads/writes/executes the given text, eg: at.0.remove, &amp;lt;at.0.str&amp;gt;...&lt;br /&gt;
* ADDOBJ*(W) = Adds to the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* DELOBJ*(W) = Deletes from the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* START*(W) = Forces the spawn to start spawning&lt;br /&gt;
* STOP*(W) = Stops the spawn and removes everything it created&lt;br /&gt;
* RESET*(W) = Froces an STOP and then START it again&lt;br /&gt;
&lt;br /&gt;
   *X branch only&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The spawn is considered active if the TIMER has a positive value, and when the timer reaches zero, it is automatically restarted using a random number between MOREX and MOREY.&lt;br /&gt;
|- &lt;br /&gt;
| t_game_piece || 35 || This type is used for game board pieces (checkers, chess, etc).  They cannot be removed from the game, and they have no tile image outside of the game board gump.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The starting x position for this piece&lt;br /&gt;
* TDATA2 = The starting y position for this piece&lt;br /&gt;
|- &lt;br /&gt;
| t_portculis || 36 || This type is used for portcullis doors that raise and lower when double clicked.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The z height at the lowest setting&lt;br /&gt;
* MORE2 = The z height at the highest setting&lt;br /&gt;
|- &lt;br /&gt;
| t_figurine || 37 || This type is used for shrunk NPCs (essentially magic figurines), that turn into a &amp;quot;pet&amp;quot; creature when double clicked.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The creature ID that will spawn when the item is double clicked.&lt;br /&gt;
* MORE2 = The UID of the off-line creature (in &amp;quot;stable master&amp;quot; inventory)&lt;br /&gt;
* TDATA2 = The required strength to mount the creature (presumably only if it is possible to mount it)&lt;br /&gt;
* TDATA3 = The base creature ID. &lt;br /&gt;
|-&lt;br /&gt;
| t_shrine || 38 || This type is used for shrines.  They will resurrect a ghost when double-clicked by a ghost.&lt;br /&gt;
|- &lt;br /&gt;
| t_moongate || 39 || This type is used for moongates.  When stepped on they teleport the player to another location.  It leverages the following properties:&lt;br /&gt;
* MOREP = The coordinates that the moongate leads to&lt;br /&gt;
* MORE1 = If set to 1, the smoke and sound is supressed&lt;br /&gt;
* MORE2 = If set to 1, NPCs (and pets?) cannot use it&lt;br /&gt;
|- &lt;br /&gt;
| t_chair || 40 || This type is used for any sort of a chair item and it's only purpose is to trigger a sitting animation.&lt;br /&gt;
|-&lt;br /&gt;
| t_forge || 41 || This type is used by blacksmiths to smelt ore....&lt;br /&gt;
|-&lt;br /&gt;
| t_ore || 42 || This type is harvested by miners, and converted by blacksmiths (using a forge) into something else.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = ID of item created when the ore is smelted (usually ingots)&lt;br /&gt;
|- &lt;br /&gt;
| t_log || 43 || This type is a raw material resource usually harvested from trees.&lt;br /&gt;
|-&lt;br /&gt;
| t_tree || 44 || This type is chopped by lumberjacks to get logs.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
* FRUIT = ID of item gathered if double-clicked (usually logs)&lt;br /&gt;
|- &lt;br /&gt;
| t_rock || 45 || This type can be mined for ore.&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_carpentry_chop || 46 || A carpentry tool that can be used to craft carpentry objects as well as used to &amp;quot;chop&amp;quot; trees (like a saw?)&lt;br /&gt;
|-&lt;br /&gt;
| t_multi || 47 || Multi part object like house or ship.&lt;br /&gt;
* MORE1 is the UID of the player that created/owns the multi&lt;br /&gt;
|-&lt;br /&gt;
| t_reagent || 48 || Alchemy when clicked ?&lt;br /&gt;
|-&lt;br /&gt;
| t_ship || 49 || This is a ship multi.&lt;br /&gt;
* MORE1 is the UID of the player that created/owns the multi&lt;br /&gt;
* MORE2 contains the speed, anchor flag, direction of movement, and facing direction in each byte respectively&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_plank || 50 || Ship plank for players to get on a boat.&lt;br /&gt;
* TDATA1 = is the itemID of the next open/closed state.&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
* MOREX = type to become (IT_SHIP_SIDE or IT_SHIP_SIDE_LOCKED)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_side || 51 || Should extend to make a plank TDATA1 is the itemID of the next open/closed state. &lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_side_locked || 52 || TDATA1 is the itemID of the next open/closed state. &lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_tiller || 53 || Tiller man on the ship.&lt;br /&gt;
* MORE1 = the lock code. Normally this is the UID, except if uidLink is set.&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_trade_window || 54 || Container for the trade window.&lt;br /&gt;
|-&lt;br /&gt;
| t_fish || 55 || Fish can be cut up. Yields 4 * &amp;lt;Amount&amp;gt; when a bladed object is used on it.&lt;br /&gt;
|-&lt;br /&gt;
| t_sign_gump || 56 || This type is used for simple signs (and things like grave stones).  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
* MORE1 = the lock code. Normally this is the UID, except if uidLink is set.&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_stone_guild || 57 || This type is used for guild stones.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The alignment of the guild (chaos, neutral, order)&lt;br /&gt;
* MORE2 = The amount of gold in the guild account&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_anim_active            58   // = active anium that will recycle when done.&lt;br /&gt;
 t_sand                   59   // = sand on the beach&lt;br /&gt;
 t_cloth                  60   // = bolt or folded cloth&lt;br /&gt;
 t_hair                   61   //&lt;br /&gt;
 t_beard                  62   // = just for grouping purposes.&lt;br /&gt;
|-&lt;br /&gt;
| t_ingot || 63 || This type is used for ingots (when a blacksmith smelts ore, it turns into ingots.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The skill required to smelt this&lt;br /&gt;
* TDATA2 = The skill required to get the maximum yield when smelting&lt;br /&gt;
|-&lt;br /&gt;
| t_coin || 64 || This types is used for coins, gold or otherwise.&lt;br /&gt;
|-&lt;br /&gt;
| t_crops || 65 || This type is used to grow plants that likely bear fruit.  Double clicking a t_crop item will harvest the fruit if it is ripe.  It leverages the following properties:&lt;br /&gt;
* MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)&lt;br /&gt;
* TDATA1 = Is the ID of the first stage of the crop (the sprout), it is the ID that the crop will be reset to regrow from (0=nothing, which means this plant will not regrow once harvested)&lt;br /&gt;
* TDATA2 = Is the ID of the next stage of the crop (or zero if this is the final mature crop which will bear the fruit)&lt;br /&gt;
* TDATA3 = Is the ID of the fruit that this plant will grow and should only be set on the ''ripe'' plant (0 means the plant is not mature)&lt;br /&gt;
'''Note''' This type has unusual TIMER behavior in that regardless of the ATTR flags, the timer will restart when it reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| t_drink || 66 || This type is used for non-alcoholic drinks.  It leverages the following properties:&lt;br /&gt;
* TATA1 = A flag that indicates whether the container is empty or not. &lt;br /&gt;
'''Note:''' There is an INI flag OF_DrinkIsFood (0x10000) that, if set, will increase FOOD level when the drink is consumed (like T_FOOD does)&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_anvil                  67   // = for repair.&lt;br /&gt;
 t_port_locked            68   // = this portcullis must be triggered.&lt;br /&gt;
|-&lt;br /&gt;
| t_spawn_item || 69 || This type is used to spawn items.  Once it spawns its first item, it will turn red and change its appearance to the i_worldgem_lg ID item. It leverages the following properties:&lt;br /&gt;
* AMOUNT = The maximum amount of items the spawner should create&lt;br /&gt;
* MORE1/SPAWNID* = The item ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2/PILE* = The current number of items spawned from this point&lt;br /&gt;
* MOREX/TIMELO* = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY/TIMEHI* = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ/MAXDIST* = The maximum distance away from the spawn to create the spawned item (this is also the maximum wander distance for the NPC)&lt;br /&gt;
* AT*(R/W) = Access the object in the N position and reads/writes/executes the given text, eg: at.0.remove, &amp;lt;at.0.str&amp;gt;...&lt;br /&gt;
* ADDOBJ*(W) = Adds to the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* DELOBJ*(W) = Deletes from the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* START*(W) = Forces the spawn to start spawning&lt;br /&gt;
* STOP*(W) = Stops the spawn and removes everything it created&lt;br /&gt;
* RESET*(W) = Froces an STOP and then START it again&lt;br /&gt;
&lt;br /&gt;
   *X branch only&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The spawn is considered active if the TIMER has a positive value, and when the timer reaches zero, it is automatically restarted using a random number between MOREX and MOREY.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_telescope              70   // = big telescope pic.&lt;br /&gt;
|-&lt;br /&gt;
| t_bed || 71 || This type is used to indicate the item is a bed.  I am not sure how it is used exactly, but it leverages the following properties:&lt;br /&gt;
* TDATA1 = The direction it occupies&lt;br /&gt;
|-&lt;br /&gt;
| t_gold || 72 || This type is used to indicate the object is a gold coin and can be used to purchase stuff.&lt;br /&gt;
|-&lt;br /&gt;
| t_map || 73 || This type is used for cartography maps.  It has the following properties:&lt;br /&gt;
* MORE1L = The top coordinate.&lt;br /&gt;
* MORE1H = The left coordinate.&lt;br /&gt;
* MORE2L = The bottom coordinate.&lt;br /&gt;
* MORE2H = The right coordinate.&lt;br /&gt;
* MOREZ = A flag that indicates whether the map has pins or not.&lt;br /&gt;
* MOREX and MOREY = The coordinates of the pin (I think).&lt;br /&gt;
* TDATA1 = The map gump width.&lt;br /&gt;
* TDATA2 = The map gump height.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_memory_obj || 74 || This type is used for character memories, and it really depends on the type of memory to know what each property really means, but here is a relatively good guide:&lt;br /&gt;
* MORE1L = The action type this is a memory for&lt;br /&gt;
* MORE1H = The skill involved&lt;br /&gt;
* MORE2 = The start time of the memory&lt;br /&gt;
* MOREP = The map coordinates at which the memory occurred. &lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_weapon_mace_staff      75   // = staff type of mace. or just other type of mace.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_horse || 76 || This type is used for equipped horse object.  Essentially it represents a riding horse to the client.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The creature ID&lt;br /&gt;
* MORE2 = The UID of the offline creature (in &amp;quot;stable master&amp;quot; inventory)&lt;br /&gt;
* TDATA2 = The required strength to mount it&lt;br /&gt;
* TDATA3 = The base creature ID&lt;br /&gt;
|-&lt;br /&gt;
| t_comm_crystal || 77 || This type is used for communication crystals.&lt;br /&gt;
|-&lt;br /&gt;
| t_game_board || 78  || This type is used as a container for game pieces (t_game_piece).  It leverages the following properties:&lt;br /&gt;
* MORE1 = The type of pieces to use (0=chess, 1=checkers, 2=none... presumably this is hard-coded)&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_trash_can || 79 || This type is used as a trash can container, and it deletes any object placed into it.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon_muzzle || 80 || This type is used for the business end of the cannon. It leverages the following properties:&lt;br /&gt;
* MORE2 = A mask of what is currently loaded in it. (0 = none, 1=powder, 2=shot)&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon || 81 || This type is used for the cannon control.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon_ball || 82 || This is ammo for a t_cannon.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_armor_leather          83   // = non metallic armor (t_clothing)&lt;br /&gt;
|-&lt;br /&gt;
| t_seed || 84 || This type is used for seeds.  A seed can be created by using a dagger on a fruit (assuming the fruit is setup to have a seed.)  A seed can be planted by double clicking it and targeting the ground (specifically t_dirt items).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that will grow the fruit that this seed comes from. 0 is Nothing.&lt;br /&gt;
* TDATA2 = The art asset to use as the seed art asset. A copper coin is default.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_junk                   85   // = never used&lt;br /&gt;
 t_crystal_ball           86   // = Has no internal use.&lt;br /&gt;
 t_swamp                  87   // = swamp (smelly)&lt;br /&gt;
|-&lt;br /&gt;
| t_message || 88 || This type is used for bulletin board messages.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_reagent_raw || 89 || Freshly grown reagents...not processed yet. A seed can be created by using a dagger on a raw reagent (assuming the raw reagent is setup to have a seed.)  A seed can be planted by double clicking it and targeting the ground (specifically t_dirt items).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that will grow the fruit that this seed comes from. 0 is Nothing.&lt;br /&gt;
* TDATA2 = The art asset to use as the seed art asset. A copper coin is default.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_client_linger || 90 || Change player to npc for a while.&lt;br /&gt;
|-&lt;br /&gt;
| t_snow || 91 || Snow&lt;br /&gt;
|-&lt;br /&gt;
| t_it_stone || 92 || This type is an &amp;quot;item stone&amp;quot; that is used to generate items when the object is double clicked.  It has the following properties:&lt;br /&gt;
* MORE1 = The item or template ID to generate&lt;br /&gt;
* MORE2 = The price (or Plotflags to set?)&lt;br /&gt;
* MOREX = The regen time (0 = instant)&lt;br /&gt;
* MOREY = The total amount to deliver (0 = infinite, 0xFFFF = none left)&lt;br /&gt;
|-&lt;br /&gt;
| t_unused_93 || 93 || This has no use.&lt;br /&gt;
|-&lt;br /&gt;
| t_explosion || 94 ||  This type is used for explosion animations.  It leverages the following properties:&lt;br /&gt;
* MOREX = The damage that the explosion will cause&lt;br /&gt;
* MOREY = The type of damage (fire, magic, etc)&lt;br /&gt;
* MOREZ = The distance range for the damage&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_npc_script || 95 || This type is used to script NPC actions (in the form of a book).  The sphere_defs.scp file says &amp;quot;get rid of this in favor of waiting on m_events&amp;quot; but it may still exist... if so, it leverages the following properties:&lt;br /&gt;
* MORE1 = The same as for other books&lt;br /&gt;
* MORE2L = The current script page&lt;br /&gt;
* MORE2H = The current offset&lt;br /&gt;
* MOREZ = The priority for this script (as a percent, this is the chance they want to &amp;quot;do&amp;quot; this task)&lt;br /&gt;
|-&lt;br /&gt;
| t_web || 96 || Walk on this and transform into some other object.  MORE1 is the amount of hits the web can take.&lt;br /&gt;
|-&lt;br /&gt;
| t_grass || 97 || Can be eaten by grazing animals&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_arock || 98 || A rock or boulder. can be thrown by giants.&lt;br /&gt;
|-&lt;br /&gt;
| t_tracker || 99 || Points to a linked object.&lt;br /&gt;
|-&lt;br /&gt;
| t_sound || 100 || This type is used to play sounds.  It uses the following properties:&lt;br /&gt;
* MORE1 = The sound ID&lt;br /&gt;
* MORE2 = A flag to indicate repetition&lt;br /&gt;
|-&lt;br /&gt;
| t_stone_town || 101 || This type is used for town stones.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The alignment of the town (chaos, neutral, order)&lt;br /&gt;
* MORE2 = The amount of gold in the town bank account&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_weapon_mace_crook     102   //&lt;br /&gt;
 t_weapon_mace_pick      103   //&lt;br /&gt;
 t_leather               104   // = leather or skins of some sort.(not wearable)&lt;br /&gt;
 t_ship_other            105   // = some other part of a ship.&lt;br /&gt;
|-&lt;br /&gt;
| t_bboard || 106 || This type is a bulleting board container that holds t_message items.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID of the container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook || 107 || This type is used for the Magery spellbook.  It leverages the following properties:&lt;br /&gt;
* MORE1 = A bit mask of available spells in circles 0-4, so to add all those spells: set MORE1=0ffffffff&lt;br /&gt;
* MORE2 = A bit mask of available spells in circles 5-8, so to add all those spells: set MORE2=0ffffffff&lt;br /&gt;
'''Note:''' In older sphere versions, MOREX, MOREY, and MOREZ could be set to add additional spells (necro, etc), but recently these concepts may have been removed... same with these TDATA settings:&lt;br /&gt;
* TDATA2 = Required Strength to equip the book&lt;br /&gt;
* TDATA3 = Type of light pattern it will cast&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object)&lt;br /&gt;
|-&lt;br /&gt;
| t_corpse || 108 || This type is a container used for all dead corpses.  It leverages the following properties:&lt;br /&gt;
* &amp;lt;s&amp;gt;MORE1 = The time of death&amp;lt;/s&amp;gt; TIMESTAMP seems to hold the time of death.&lt;br /&gt;
* MORE1 = Corpse is already carved? (0=not carved, 1=carved) &lt;br /&gt;
* MORE2 = The UID of the individual character that landed the killing blow&lt;br /&gt;
* MOREX &amp;amp; MOREY = Combined, these make up a single DWORD which specifies what type of creature this was&lt;br /&gt;
* MOREZ = The direction it is facing&lt;br /&gt;
* TDATA2 = The gumpID of the container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
There are two special TAGs for corpses:&lt;br /&gt;
* TAG.BLOOD = This is the number of times you can carve the corpse and cause blood to come out (default 5)&lt;br /&gt;
* TAG.MAXBLOOD = Not certain about this one, but it is likely related... perhaps it is set on the CHARDEF?&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_track_item            109   // - track a id or type of item.&lt;br /&gt;
 t_track_char            110   // = track a char or range of char id's&lt;br /&gt;
 t_weapon_arrow          111   //&lt;br /&gt;
 t_weapon_bolt           112   //&lt;br /&gt;
 t_eq_vendor_box         113   // = an equipped vendor box&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_bank_box || 114 || This type is a container that is used for the character bank.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The amount of gold in the account (is this still true?)&lt;br /&gt;
* MORE2 = The amount to restock to (for NPCs vendors who can buy stuff from players?)&lt;br /&gt;
* MOREP = The location in the world (x, y, and z) where the bank box was opened&lt;br /&gt;
* TDATA2 = The gumpID for the bank box container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = the maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_deed || 115 || This type is used to create something else when double clicked.  It is perhaps the best solution for a player to place a ''multi'' part item like a house.  When double clicked, it will prompt for a target location.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID of the item that will be created at the target location&lt;br /&gt;
* MORE2 = The previous key ID (ideally this is set when a house or ship are re-deeded so that all the existing keys will still work)&lt;br /&gt;
|-&lt;br /&gt;
| t_loom || 116 || This type of device is used by weavers who turn wool or thread into bolts of cloth.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID of the currently loaded resource (wool or cotton/flax) that is being woven&lt;br /&gt;
* MORE2 = The amount of resources currently in the loom&lt;br /&gt;
|-&lt;br /&gt;
| t_bee_hive || 117 || This type is used for beehives.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The amount of honey which has accumulated in the hive&lt;br /&gt;
|-&lt;br /&gt;
| t_archery_butte || 118 || This type is used for practice archery targets.  When double clicked, the target will first check if you have an archery weapon equipped and if so, it will return some ammo.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID for the type of ammo currently stuck in the target&lt;br /&gt;
* MORE2 = The amount of items stuck in the target&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_eq_murder_count       119   // = my murder count flag.  MORE1 contains the amount of time before it expires. &lt;br /&gt;
 t_eq_stuck              120   // we are stuck in a web&lt;br /&gt;
 t_trap_inactive         121   //  = a safe trap.&lt;br /&gt;
 //t_unused_122          122&lt;br /&gt;
 t_bandage               123   //  = can be used for healing.&lt;br /&gt;
 t_campfire              124   //  = this is a fire but a small one.&lt;br /&gt;
 t_map_blank             125&lt;br /&gt;
 t_spy_glass             126&lt;br /&gt;
 t_sextant               127&lt;br /&gt;
 t_scroll_blank          128&lt;br /&gt;
|-&lt;br /&gt;
| t_fruit || 129 || This type is used for fruit.  When double clicked, fruit will be eaten.  Fruit can be grown from crops (t_crop).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that this fruit comes from (If not set, this fruit may not have a seed, use zero to be certain)&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the fruit&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_water_wash            130   // water that will not contain fish. (for washing or drinking)  TDATA1 is a flag that indicates whether the container is empty or not &lt;br /&gt;
 t_weapon_axe            131   // not the same as a sword. but uses swordsmanship skill&lt;br /&gt;
|-&lt;br /&gt;
| t_weapon_xbow || 132 || This type is used for crossbow weapons.  It is essentially identical to t_weapon_bow.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_spellicon             133&lt;br /&gt;
 t_door_open             134&lt;br /&gt;
 t_meat_raw              135   // just a meaty part of a corpse. (uncooked meat)&lt;br /&gt;
 t_garbage               136&lt;br /&gt;
|-&lt;br /&gt;
| t_keyring || 137 || This type is a container used to store keys.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_table || 138 || doesn't really do anything.&lt;br /&gt;
|-&lt;br /&gt;
| t_floor || 139 || &lt;br /&gt;
|-&lt;br /&gt;
| t_roof || 140 || &lt;br /&gt;
|-&lt;br /&gt;
| t_feather || 141 || a birds feather&lt;br /&gt;
|-&lt;br /&gt;
| t_wool || 142 || wool cut from a sheep.&lt;br /&gt;
|-&lt;br /&gt;
| t_fur || 143 || &lt;br /&gt;
|-&lt;br /&gt;
| t_blood || 144 || blood of some creature&lt;br /&gt;
|-&lt;br /&gt;
| t_foliage || 145 || This type is very similar to t_crops, the difference being the foliage does not disappear when the fruit is harvested.  It leverages the following properties:&lt;br /&gt;
* MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)&lt;br /&gt;
* TDATA1 = Is the ID of the first stage of the crop (the sprout)&lt;br /&gt;
* TDATA2 = Is the ID of the next stage of the crop (or zero if this is the final mature crop which will bear the fruit)&lt;br /&gt;
* TDATA3 = Is the ID of the fruit that this plant will grow and should only be set on the ''ripe'' plant&lt;br /&gt;
'''Note''' This type has unusual TIMER behavior in that regardless of the ATTR flags, the timer will restart when it reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_grain                 146&lt;br /&gt;
 t_scissors              147&lt;br /&gt;
 t_thread                148&lt;br /&gt;
 t_yarn                  149&lt;br /&gt;
 t_spinwheel             150&lt;br /&gt;
 t_bandage_blood         151   //  = can't be used for healing.&lt;br /&gt;
 t_fish_pole             152&lt;br /&gt;
 t_shaft                 153   // bolt or arrow.&lt;br /&gt;
 t_lockpick              154&lt;br /&gt;
 t_kindling              155&lt;br /&gt;
 t_train_dummy           156&lt;br /&gt;
 t_train_pickpocket      157&lt;br /&gt;
 t_bedroll               158&lt;br /&gt;
 t_bellows               159&lt;br /&gt;
|-&lt;br /&gt;
| t_hide || 160 ||Made into leather.&lt;br /&gt;
* TDATA1 = Hold ID or DEFNAME of custom cut leather (or any item).&lt;br /&gt;
|-&lt;br /&gt;
| t_cloth_bolt || 161 || A bolt of cloth.&lt;br /&gt;
|-&lt;br /&gt;
| t_board || 162 || Logs are plained into decent lumber&lt;br /&gt;
|-&lt;br /&gt;
| t_pitcher || 163 || A pitcher holding a liquid of some kind.&lt;br /&gt;
*TDATA1 is a flag that indicates whether the container is empty or not. &lt;br /&gt;
|-&lt;br /&gt;
| t_pitcher_empty || 164 || An empty pitcher that can or did hold a liquid.&lt;br /&gt;
* TDATA1 is a flag that indicates whether the container is empty or not. &lt;br /&gt;
|-&lt;br /&gt;
| t_dye_vat || 165 || For dyeing items with.&lt;br /&gt;
|-&lt;br /&gt;
| t_dye || 166 || Dyes to set colors on a t_dye_vat&lt;br /&gt;
|-&lt;br /&gt;
| t_potion_empty || 167 || Empty bottle.&lt;br /&gt;
|-&lt;br /&gt;
| t_mortar || 168 || Alchemists mortar and pestle.&lt;br /&gt;
|-&lt;br /&gt;
| t_hair_dye || 169 || Hair dye.&lt;br /&gt;
|-&lt;br /&gt;
| t_sewing_kit || 170 || Tailoring sewing kit.&lt;br /&gt;
|-&lt;br /&gt;
| t_tinker_tools || 171 || Tinker's tools.&lt;br /&gt;
|-&lt;br /&gt;
| t_wall || 172 || Wall of a structure.&lt;br /&gt;
|-&lt;br /&gt;
| t_window || 173 || Window for a structure.  MOREZ is the light pattern&lt;br /&gt;
|-&lt;br /&gt;
| t_cotton || 174 || Cotton from the plant&lt;br /&gt;
|-&lt;br /&gt;
| t_bone || 175 || A bone from a corpse.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_script || 176 || This type can have tags and can be equipped.  Possibly used for memory objects that leverage @Equip and @UnEquip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_hold || 177 || A ships hold.&lt;br /&gt;
* TDATA2 is the gumpID&lt;br /&gt;
* TDATA3 is the minimum gump size&lt;br /&gt;
* TDATA4 is the maximum gump size&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_hold_lock || 178 || A locked ship's hold.&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_lava || 179 || &lt;br /&gt;
|-&lt;br /&gt;
| t_shield || 180 || This type is used to indicate the object is an equipable shield.  It has the following properties:&lt;br /&gt;
* MORE1L = The current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = The maximum hitpoints for the item&lt;br /&gt;
* MORE2 = The number of remaining charges (if magical)&lt;br /&gt;
* MOREX = The spell type (if magical)&lt;br /&gt;
* MOREY = The spell strength (0-1000)&lt;br /&gt;
|-&lt;br /&gt;
| t_jewelry || 181 || This type is used for equpable jewelry.  It leverages the following properties:&lt;br /&gt;
* MORE1L = The current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = The maximum hitpoints for the item&lt;br /&gt;
* MORE2 = The number of remaining charges (if magical)&lt;br /&gt;
* MOREX = The spell type (if magical)&lt;br /&gt;
* MOREY = The spell strength (0-1000)&lt;br /&gt;
* TDATA2 = Required Strength to equip the item&lt;br /&gt;
* TDATA3 = Light pattern&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object)&lt;br /&gt;
|-&lt;br /&gt;
| t_dirt || 182 || This type is used to represent a patch of dirt where something can be planted.&lt;br /&gt;
|- &lt;br /&gt;
| t_script || 183 || This type can have tags, but can NOT be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_necro || 184 || AOS Necromancy spellbook (should have MOREZ=100 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_pala || 185 || AOS Paladin spellbook (should have MOREZ=200 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_extra || 186 || some spellbook for script purposes (MOREZ=basic offset)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_bushido || 187 || SE Bushido spellbook (should have MOREZ=400 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_ninjitsu || 188 || SE Ninjitsu spellbook (should have MOREZ=500 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_arcanist || 189 || ML Spellweaver spellbook (should have MOREZ=600 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_multi_custom || 190 || Customisable multi&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_mystic || 191 || SA Mysticism spellbook (should have MOREZ=677 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_hoverover || 192 || Hover-over item (CAN_C_HOVER can hover over blocking items)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_bard || 193 || SA Bard spellbook (should have MOREZ=700 by default)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Scripted TYPEDEFs==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! DEFNAME !! File !! Description&lt;br /&gt;
|-&lt;br /&gt;
| t_advance_gate || ??.scp || MORE = ID of character to change into&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
The syntax for defining a type is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[TYPEDEF ''defname'']&amp;lt;br /&amp;gt;&lt;br /&gt;
TERRAIN=''id''&amp;lt;br /&amp;gt;&lt;br /&gt;
TERRAIN=''start_id'', ''end_id''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''trigger_name''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''trigger_name''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any number of triggers can be handled by one [[TYPEDEF]] definition, however it is not possible to handle the same trigger twice without using multiple definitions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The trigger name can be the name of any [[Items#Triggers|item trigger]]. The return value from the script can affect Sphere's hardcoded behaviour in different ways. See the documentation for the trigger to discover what parameters are passed in to each trigger and what the return values do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the ''defname'' matches any of Sphere's hardcoded types (see 'typedefs' block in sphere_defs.scp), then the [[TYPEDEF]] can be used to override the behaviours of items of that type.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// Water definition from default script pack.&lt;br /&gt;
//&lt;br /&gt;
[TYPEDEF t_water]&lt;br /&gt;
TERRAIN = 0a8	0ab&lt;br /&gt;
TERRAIN = 0136	0137&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;
// Makes an item speak when double clicked.&lt;br /&gt;
//&lt;br /&gt;
[TYPEDEF t_exampletype]&lt;br /&gt;
ON=@DClick&lt;br /&gt;
  SAY I have been double clicked!&lt;br /&gt;
  RETURN 2&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>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=8113</id>
		<title>TYPEDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=TYPEDEF&amp;diff=8113"/>
				<updated>2025-05-19T12:02:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Update Tdata3 et 4 for t_container&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|TYPEDEF}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Type definitions are the equivalent of [[EVENTS]] that can be attached to [[Items|items]]. There are different properties that can be used to attach a type block to an item or set of items:&lt;br /&gt;
* [[ITEMDEF|item definitions]] via their [[TYPE]] and/or [[TEVENTS]] property.&lt;br /&gt;
* [[Items|items]] via their [[TYPE]] and/or [[EVENTS (Property)|EVENTS]] property.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to handling triggers, type definitions can also be used to define different types of terrain. This can be used to affect the return value of the [[TYPE]] property on [[Map points|map points]], or for some hardcoded types such as t_rock it can be used to define which terrain IDs Sphere should consider to be rock when the mining skill is used.&lt;br /&gt;
&lt;br /&gt;
==Built-in Types==&lt;br /&gt;
&lt;br /&gt;
The built-in types are all listed in the sphere_defs.scp file.  The table below only lists some of the built-in types and it is VERY weak on actual details...so use with care.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! DEFNAME !! Number !! Description&lt;br /&gt;
|- &lt;br /&gt;
| t_normal || 0 || No built-in behavior.&lt;br /&gt;
|- &lt;br /&gt;
| t_container and t_container_locked || 1 and 2 || These types are used for containers.  They leverage the following properties:&lt;br /&gt;
* MORE1 = &amp;quot;ID&amp;quot; from the key that can unlock this item (If the MORE1 of the key matches the MORE1 of the container then they are linked)&lt;br /&gt;
* MORE2 = The lock complexity (how hard it is to pick the lock)&lt;br /&gt;
* MOREX = The trap type (not used yet?)&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3/4: Defines rectangle, where you can place items (so they won't end up out of gump).&lt;br /&gt;
* TDATA3 = top left corner. Hexadecimal number, each position takes 4 bytes, YX (example: X = 10 (0a) and Y = 20 (014) will look like TDATA3=0014000a&lt;br /&gt;
* TDATA4 = bottom right corner.&lt;br /&gt;
* LINK = UID of a secondary key?&lt;br /&gt;
|- &lt;br /&gt;
| t_door or t_door_locked || 3 or 4 || This type is used for both unlocked and locked doors.  They leverage the following properties:&lt;br /&gt;
* MORE1 = UID of this door's key (if it has one)&lt;br /&gt;
* TDATA1 = ID for the sound it makes when double clicked&lt;br /&gt;
|- &lt;br /&gt;
| t_key || 5 || This type is used for keys.  It leverages the following properties:&lt;br /&gt;
* MORE1 = &amp;quot;ID&amp;quot; of the item(s) this key can unlock (if the MORE1 of the key matches the MORE1 of the container/door then they are linked)&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_light_lit || 6 || This type is used for light sources that can be turned onIT_S or off.  It leverages the following properties:&lt;br /&gt;
* MOREY = Number of charges before the item is consumed&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|- &lt;br /&gt;
| t_light_out || 7 || This type is used for light sources that can be turned on or off.  It leverages the following properties:&lt;br /&gt;
* MOREY = Number of charges before the item is consumed&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|- &lt;br /&gt;
| t_food || 8 || This type is used for edible food.  It leverages the following properties:&lt;br /&gt;
* MORE2 = The ID of the creature that this came from&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the food&lt;br /&gt;
'''Note:''' The following properties may also exist depending on your server version:&lt;br /&gt;
* MOREX = The ID of a spell effect that will be gained when eaten&lt;br /&gt;
* MOREY = The strength of the spell effect&lt;br /&gt;
|- &lt;br /&gt;
| t_food_raw || 9 || This type is used for ''raw'' food.  It leverages the following properties:&lt;br /&gt;
* MORE1 = ID of the item it makes when cooked (the default is i_unused and if defined, it will override TDATA1)&lt;br /&gt;
* MORE2 = The ID of the creature that this came from&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the food&lt;br /&gt;
* TDATA1 = The item ID this cooks into&lt;br /&gt;
'''Note:''' The following properties may also exist depending on your server version:&lt;br /&gt;
* MOREX = The ID of a spell effect that will be gained when eaten&lt;br /&gt;
* MOREY = The strength of the spell effect&lt;br /&gt;
* TDATA2 = The creature ID type that the food came from&lt;br /&gt;
* TDATA3 = The amount of skill required to cook it (did this ever work?)&lt;br /&gt;
|- &lt;br /&gt;
| t_armor || 10 || This type is used for armor.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREX = Spell effect when worn (for example, setting MOREX=1 causes a permanent Clumsy effect)&lt;br /&gt;
* MOREY = There are two possible effects of setting MOREY:&lt;br /&gt;
*# If MOREX is set, then MOREY is the power/effect of that spell&lt;br /&gt;
*# If the ATTR includes attr_magic, then there is an AR bonus (how is this calculated?)&lt;br /&gt;
'''Note:''' Old versions of sphere stored remaining charges in MORE2, this is no longer true.&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_mace_smith || 11 || This type is used for macefighting weapons that can also be used by blacksmiths to forge items.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_mace_sharp || 12 || This type is used for macefighting weapons that have sharp cutting edges.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_sword || 13 || This type is used for swordsmanship weapons.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_fence || 14 || This type is used for fencing weapons.  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = can be used on a per item basis to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = can be used on a per item basis to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = can be used on a per item basis to override the sound this weapon makes when it misses&lt;br /&gt;
|- &lt;br /&gt;
| t_weapon_bow || 15 || This type is used for archery weapons (bow or crossbow).  It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREY = Attack bonus (percentage), but only if ATTR &amp;amp; attr_magic&lt;br /&gt;
* TDATA1 = The sound effect the weapon makes when it shoots&lt;br /&gt;
* TDATA2 = The required strength to wield the weapon&lt;br /&gt;
* TDATA3 = ID of arrow item that will be fired (and must therefore be on the player's person)&lt;br /&gt;
* TDATA4 = ID of the arrow animation (for bows it is usually i_arrow_x, for crossbows, i_xbow_x)&lt;br /&gt;
The following overrides can be set on a per item basis:&lt;br /&gt;
* TAG.OVERRIDE.DAMAGETYPE = to override the types of damage this weapon does&lt;br /&gt;
* TAG.OVERRIDE.SOUND_HIT = to override the sound this weapon makes when it hits&lt;br /&gt;
* TAG.OVERRIDE.SOUND_MISS = to override the sound this weapon makes when it misses&lt;br /&gt;
* AMMOANIMRENDER = to override the rendermode of the ANIM this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOTYPE = to override the type of ammo (TDATA3) this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOANIM = to override the ammo animation (TDATA4) this item uses (yes, no TAGs)&lt;br /&gt;
* AMMOANIMHUE = to override the color of the ammo animation this item uses (yes, no TAGs)&lt;br /&gt;
|- &lt;br /&gt;
| t_wand || 16 || This type is used for magic wands.  It leverages the following properties:&lt;br /&gt;
* MORE1L = the current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = the maximum hitpoints for the item&lt;br /&gt;
* MORE2 = the number of remaining charges (if magical)&lt;br /&gt;
* MOREX = the spell type (if magical)&lt;br /&gt;
* MOREY = the spell strength (0-1000)&lt;br /&gt;
* MOREZ = the poison skill applied (0-100)&lt;br /&gt;
* TDATA2 = Required Strength to equip the wand&lt;br /&gt;
* TDATA3 = ID of the light pattern&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object). &lt;br /&gt;
|- &lt;br /&gt;
| t_telepad || 17 || This type is used for teleport pads.  It leverages the following properties:&lt;br /&gt;
* MOREP = Coordinates of the point to which you will teleport when you step on the item&lt;br /&gt;
* MORE1 = If set to 1, the teleport pad will only work for players (and their pets)&lt;br /&gt;
* MORE2 = If set to 1, the teleport animation and sound will not be shown to anyone witnessing the teleport&lt;br /&gt;
|- &lt;br /&gt;
| t_switch || 18 || This type is used for switches.  The way these things work is, when used, they trigger @DCLICK on the LINK object.  It leverages the following properties:&lt;br /&gt;
* LINK = UID of item to trigger&lt;br /&gt;
* MORE1 = The item ID of the next state of the switch&lt;br /&gt;
* MOREX = A flag to indicate if this is activated by stepping on it&lt;br /&gt;
|-&lt;br /&gt;
| t_book || 19 || This type is used for books of static or dynamic text.  It leverages the following properties:&lt;br /&gt;
* MORE1L = This can be set to an ID of a book (some default book text is included in the sphere_books.scp file)&lt;br /&gt;
* MORE1H = Some flags that determine book behavior:&lt;br /&gt;
** 0c00: Scripted book&lt;br /&gt;
** 0800: Editable book&lt;br /&gt;
** 08000: ? time stamp ?&lt;br /&gt;
* AUTHOR = The ID of the character that wrote the book&lt;br /&gt;
* BODY.# = The text for each page of the book (starting with page 0)&lt;br /&gt;
'''Note:''' we need more information on those flags...&lt;br /&gt;
|-&lt;br /&gt;
| t_rune || 20 || This type is used for recall runes.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The number of uses left before it wears out&lt;br /&gt;
* MOREP = The coordinates of the marked location&lt;br /&gt;
|-&lt;br /&gt;
| t_booze || 21 || This type is used for alcohol (it causes a drunk effect when double clicked.)  It leverages the following properties:&lt;br /&gt;
* TDATA1 = A flag that indicates whether the container is empty or not.&lt;br /&gt;
|-&lt;br /&gt;
| t_potion || 22 || This type is used for potions.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The potion spell effect that will result when the potion is double clicked&lt;br /&gt;
* MORE2 = The strength of the potion (This has a different effect defending on the spell, usually between 0 and 1000)&lt;br /&gt;
* MOREX = The countdown to explosion (for purple potions)&lt;br /&gt;
* TDATA1 = A flag that indicates whether the container is empty or not&lt;br /&gt;
|-&lt;br /&gt;
| t_fire || 23 || This type is used for fires (and ovens?).  These items can be used to cook food, and they can burn you if stepped on.  It leverages the following properties:&lt;br /&gt;
* TIMER = time until it decays?&lt;br /&gt;
* MORE1 (or MORE2?) = Amount of damage it will cause when stepped on or dclicked&lt;br /&gt;
* MOREZ =  Type of light pattern it will cast&lt;br /&gt;
|-&lt;br /&gt;
| t_clock || 24 || This type is used to tell time (game time, not real time) when double clicked.  The result comes out something like &amp;quot;half past eleven o'clock at night&amp;quot;.  From what I can tell there are no MORE or TDATA modifiers that affect the result.&lt;br /&gt;
|-&lt;br /&gt;
| t_trap and t_trap_active || 25 and 26 || These types are used for traps that are triggered when walked on.  They leverage the following properties:&lt;br /&gt;
* MORE1 = ID of the animation&lt;br /&gt;
* MORE2 = The damage the trap will cause&lt;br /&gt;
* MOREX = The length of time the animation will run&lt;br /&gt;
* MOREY = The length of time the activated trap will idle until reset&lt;br /&gt;
* MOREZ = A flag that indicates if the trap must idle before changing from active to inactive. &lt;br /&gt;
|-&lt;br /&gt;
| t_musical || 27 || This type is used for musical instruments.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The sound ID to be played if successful&lt;br /&gt;
* TDATA2 = The sound ID to be played if not successful&lt;br /&gt;
|-&lt;br /&gt;
| t_spell || 28 || This type is used for magic spell effects.  It leverages the following properties:&lt;br /&gt;
* MORE1L = The polymorph effect on STR&lt;br /&gt;
* MORE1H = The polymorph effect on DEX&lt;br /&gt;
* MORE2 = The number of charges left&lt;br /&gt;
* MOREX = The spell effect that will result when the item is stepped on&lt;br /&gt;
* MOREY = The strength of the spell (This has a different effect defending on the spell, usually between 0 and 1000)&lt;br /&gt;
* MOREZ = Type of light pattern it will cast&lt;br /&gt;
|-&lt;br /&gt;
| t_gem || 29 || This type is used for gems, and from what I can tell there is no built-in behavior for it.&lt;br /&gt;
|-&lt;br /&gt;
| t_water || 30 || This type is used for water, which means it can be fished in or used to clean used bandages.&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_clothing || 31 || This type is used for all cloth based equip-able items.  It is essentially identical to t_armor and t_armor_leather.    It leverages the following properties:&lt;br /&gt;
* MORE1L = Max hitpoints&lt;br /&gt;
* MORE1H = Current hitpoints&lt;br /&gt;
* MOREX = Spell effect when worn (for example, setting MOREX=1 causes a permanent Clumsy effect)&lt;br /&gt;
* MOREY = There are two possible effects of setting MOREY:&lt;br /&gt;
*# If MOREX is set, then MOREY is the power/effect of that spell&lt;br /&gt;
*# If the ATTR includes attr_magic, then there is an AR bonus (how is this calculated?)&lt;br /&gt;
'''Note:''' Old versions of sphere stored remaining charges in MORE2, this is no longer true.&lt;br /&gt;
|-&lt;br /&gt;
| t_scroll || 32 || This type is used for scrolls.  It leverages the following properties:&lt;br /&gt;
* MOREX = ID of the spell to cast when double-clicked&lt;br /&gt;
* MOREY = Power of the spell (equivalent to the EFFECT setting of the spell itself?)&lt;br /&gt;
|- &lt;br /&gt;
| t_carpentry || 33 || This type is used by carpenters to craft items, and from what I can tell there is no built-in behavior for it.&lt;br /&gt;
|- &lt;br /&gt;
| t_spawn_char || 34 || This type is used to spawn NPCs.  Once it spawns its first creature, it will turn red and change its appearance to the ICON of the creature (or appear as a wisp if the spawn is set to use a template.)  It leverages the following properties:&lt;br /&gt;
* AMOUNT = The maximum amount of NPCs the spawner should create&lt;br /&gt;
* MORE1/SPAWNID* = The creature ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2/COUNT* = The current number of creatures spawned from this point&lt;br /&gt;
* MOREX/TIMELO* = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY/TIMEHI* = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ/MAXDIST* = The maximum distance away from the spawn to create the spawned NPC (this is also the maximum wander distance for the NPC)&lt;br /&gt;
* AT*(R/W) = Access the object in the N position and reads/writes/executes the given text, eg: at.0.remove, &amp;lt;at.0.str&amp;gt;...&lt;br /&gt;
* ADDOBJ*(W) = Adds to the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* DELOBJ*(W) = Deletes from the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* START*(W) = Forces the spawn to start spawning&lt;br /&gt;
* STOP*(W) = Stops the spawn and removes everything it created&lt;br /&gt;
* RESET*(W) = Froces an STOP and then START it again&lt;br /&gt;
&lt;br /&gt;
   *X branch only&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The spawn is considered active if the TIMER has a positive value, and when the timer reaches zero, it is automatically restarted using a random number between MOREX and MOREY.&lt;br /&gt;
|- &lt;br /&gt;
| t_game_piece || 35 || This type is used for game board pieces (checkers, chess, etc).  They cannot be removed from the game, and they have no tile image outside of the game board gump.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The starting x position for this piece&lt;br /&gt;
* TDATA2 = The starting y position for this piece&lt;br /&gt;
|- &lt;br /&gt;
| t_portculis || 36 || This type is used for portcullis doors that raise and lower when double clicked.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The z height at the lowest setting&lt;br /&gt;
* MORE2 = The z height at the highest setting&lt;br /&gt;
|- &lt;br /&gt;
| t_figurine || 37 || This type is used for shrunk NPCs (essentially magic figurines), that turn into a &amp;quot;pet&amp;quot; creature when double clicked.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The creature ID that will spawn when the item is double clicked.&lt;br /&gt;
* MORE2 = The UID of the off-line creature (in &amp;quot;stable master&amp;quot; inventory)&lt;br /&gt;
* TDATA2 = The required strength to mount the creature (presumably only if it is possible to mount it)&lt;br /&gt;
* TDATA3 = The base creature ID. &lt;br /&gt;
|-&lt;br /&gt;
| t_shrine || 38 || This type is used for shrines.  They will resurrect a ghost when double-clicked by a ghost.&lt;br /&gt;
|- &lt;br /&gt;
| t_moongate || 39 || This type is used for moongates.  When stepped on they teleport the player to another location.  It leverages the following properties:&lt;br /&gt;
* MOREP = The coordinates that the moongate leads to&lt;br /&gt;
* MORE1 = If set to 1, the smoke and sound is supressed&lt;br /&gt;
* MORE2 = If set to 1, NPCs (and pets?) cannot use it&lt;br /&gt;
|- &lt;br /&gt;
| t_chair || 40 || This type is used for any sort of a chair item and it's only purpose is to trigger a sitting animation.&lt;br /&gt;
|-&lt;br /&gt;
| t_forge || 41 || This type is used by blacksmiths to smelt ore....&lt;br /&gt;
|-&lt;br /&gt;
| t_ore || 42 || This type is harvested by miners, and converted by blacksmiths (using a forge) into something else.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = ID of item created when the ore is smelted (usually ingots)&lt;br /&gt;
|- &lt;br /&gt;
| t_log || 43 || This type is a raw material resource usually harvested from trees.&lt;br /&gt;
|-&lt;br /&gt;
| t_tree || 44 || This type is chopped by lumberjacks to get logs.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
* FRUIT = ID of item gathered if double-clicked (usually logs)&lt;br /&gt;
|- &lt;br /&gt;
| t_rock || 45 || This type can be mined for ore.&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_carpentry_chop || 46 || A carpentry tool that can be used to craft carpentry objects as well as used to &amp;quot;chop&amp;quot; trees (like a saw?)&lt;br /&gt;
|-&lt;br /&gt;
| t_multi || 47 || Multi part object like house or ship.&lt;br /&gt;
* MORE1 is the UID of the player that created/owns the multi&lt;br /&gt;
|-&lt;br /&gt;
| t_reagent || 48 || Alchemy when clicked ?&lt;br /&gt;
|-&lt;br /&gt;
| t_ship || 49 || This is a ship multi.&lt;br /&gt;
* MORE1 is the UID of the player that created/owns the multi&lt;br /&gt;
* MORE2 contains the speed, anchor flag, direction of movement, and facing direction in each byte respectively&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_plank || 50 || Ship plank for players to get on a boat.&lt;br /&gt;
* TDATA1 = is the itemID of the next open/closed state.&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
* MOREX = type to become (IT_SHIP_SIDE or IT_SHIP_SIDE_LOCKED)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_side || 51 || Should extend to make a plank TDATA1 is the itemID of the next open/closed state. &lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_side_locked || 52 || TDATA1 is the itemID of the next open/closed state. &lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_tiller || 53 || Tiller man on the ship.&lt;br /&gt;
* MORE1 = the lock code. Normally this is the UID, except if uidLink is set.&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_trade_window || 54 || Container for the trade window.&lt;br /&gt;
|-&lt;br /&gt;
| t_fish || 55 || Fish can be cut up. Yields 4 * &amp;lt;Amount&amp;gt; when a bladed object is used on it.&lt;br /&gt;
|-&lt;br /&gt;
| t_sign_gump || 56 || This type is used for simple signs (and things like grave stones).  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
* MORE1 = the lock code. Normally this is the UID, except if uidLink is set.&lt;br /&gt;
* LINK = If this is set to the UID of a &amp;quot;multi&amp;quot; object (like a house) the key can open all doors/containers in that multi?&lt;br /&gt;
'''Note:''' Keys, containers, and doors are interesting. If both a key and a door/container contain the same arbitrary MORE1 value, the key can be used to lock or unlock the door/container.  That action changes the TYPE of the door/container to indicate whether it is locked or not. It also seems like LINK on the key can be set to the UID of a multi so that it can be used to open all doors/containers inside that multi.&lt;br /&gt;
|-&lt;br /&gt;
| t_stone_guild || 57 || This type is used for guild stones.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The alignment of the guild (chaos, neutral, order)&lt;br /&gt;
* MORE2 = The amount of gold in the guild account&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_anim_active            58   // = active anium that will recycle when done.&lt;br /&gt;
 t_sand                   59   // = sand on the beach&lt;br /&gt;
 t_cloth                  60   // = bolt or folded cloth&lt;br /&gt;
 t_hair                   61   //&lt;br /&gt;
 t_beard                  62   // = just for grouping purposes.&lt;br /&gt;
|-&lt;br /&gt;
| t_ingot || 63 || This type is used for ingots (when a blacksmith smelts ore, it turns into ingots.  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The skill required to smelt this&lt;br /&gt;
* TDATA2 = The skill required to get the maximum yield when smelting&lt;br /&gt;
|-&lt;br /&gt;
| t_coin || 64 || This types is used for coins, gold or otherwise.&lt;br /&gt;
|-&lt;br /&gt;
| t_crops || 65 || This type is used to grow plants that likely bear fruit.  Double clicking a t_crop item will harvest the fruit if it is ripe.  It leverages the following properties:&lt;br /&gt;
* MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)&lt;br /&gt;
* TDATA1 = Is the ID of the first stage of the crop (the sprout), it is the ID that the crop will be reset to regrow from (0=nothing, which means this plant will not regrow once harvested)&lt;br /&gt;
* TDATA2 = Is the ID of the next stage of the crop (or zero if this is the final mature crop which will bear the fruit)&lt;br /&gt;
* TDATA3 = Is the ID of the fruit that this plant will grow and should only be set on the ''ripe'' plant (0 means the plant is not mature)&lt;br /&gt;
'''Note''' This type has unusual TIMER behavior in that regardless of the ATTR flags, the timer will restart when it reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| t_drink || 66 || This type is used for non-alcoholic drinks.  It leverages the following properties:&lt;br /&gt;
* TATA1 = A flag that indicates whether the container is empty or not. &lt;br /&gt;
'''Note:''' There is an INI flag OF_DrinkIsFood (0x10000) that, if set, will increase FOOD level when the drink is consumed (like T_FOOD does)&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_anvil                  67   // = for repair.&lt;br /&gt;
 t_port_locked            68   // = this portcullis must be triggered.&lt;br /&gt;
|-&lt;br /&gt;
| t_spawn_item || 69 || This type is used to spawn items.  Once it spawns its first item, it will turn red and change its appearance to the i_worldgem_lg ID item. It leverages the following properties:&lt;br /&gt;
* AMOUNT = The maximum amount of items the spawner should create&lt;br /&gt;
* MORE1/SPAWNID* = The item ID or spawn template ID for what you want to spawn&lt;br /&gt;
* MORE2/PILE* = The current number of items spawned from this point&lt;br /&gt;
* MOREX/TIMELO* = The minimum time between spawns (in minutes)&lt;br /&gt;
* MOREY/TIMEHI* = The maximum time between spawns (in minutes)&lt;br /&gt;
* MOREZ/MAXDIST* = The maximum distance away from the spawn to create the spawned item (this is also the maximum wander distance for the NPC)&lt;br /&gt;
* AT*(R/W) = Access the object in the N position and reads/writes/executes the given text, eg: at.0.remove, &amp;lt;at.0.str&amp;gt;...&lt;br /&gt;
* ADDOBJ*(W) = Adds to the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* DELOBJ*(W) = Deletes from the spawn an object with the given uid (must be a valid uid)&lt;br /&gt;
* START*(W) = Forces the spawn to start spawning&lt;br /&gt;
* STOP*(W) = Stops the spawn and removes everything it created&lt;br /&gt;
* RESET*(W) = Froces an STOP and then START it again&lt;br /&gt;
&lt;br /&gt;
   *X branch only&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The spawn is considered active if the TIMER has a positive value, and when the timer reaches zero, it is automatically restarted using a random number between MOREX and MOREY.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_telescope              70   // = big telescope pic.&lt;br /&gt;
|-&lt;br /&gt;
| t_bed || 71 || This type is used to indicate the item is a bed.  I am not sure how it is used exactly, but it leverages the following properties:&lt;br /&gt;
* TDATA1 = The direction it occupies&lt;br /&gt;
|-&lt;br /&gt;
| t_gold || 72 || This type is used to indicate the object is a gold coin and can be used to purchase stuff.&lt;br /&gt;
|-&lt;br /&gt;
| t_map || 73 || This type is used for cartography maps.  It has the following properties:&lt;br /&gt;
* MORE1L = The top coordinate.&lt;br /&gt;
* MORE1H = The left coordinate.&lt;br /&gt;
* MORE2L = The bottom coordinate.&lt;br /&gt;
* MORE2H = The right coordinate.&lt;br /&gt;
* MOREZ = A flag that indicates whether the map has pins or not.&lt;br /&gt;
* MOREX and MOREY = The coordinates of the pin (I think).&lt;br /&gt;
* TDATA1 = The map gump width.&lt;br /&gt;
* TDATA2 = The map gump height.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_memory_obj || 74 || This type is used for character memories, and it really depends on the type of memory to know what each property really means, but here is a relatively good guide:&lt;br /&gt;
* MORE1L = The action type this is a memory for&lt;br /&gt;
* MORE1H = The skill involved&lt;br /&gt;
* MORE2 = The start time of the memory&lt;br /&gt;
* MOREP = The map coordinates at which the memory occurred. &lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_weapon_mace_staff      75   // = staff type of mace. or just other type of mace.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_horse || 76 || This type is used for equipped horse object.  Essentially it represents a riding horse to the client.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The creature ID&lt;br /&gt;
* MORE2 = The UID of the offline creature (in &amp;quot;stable master&amp;quot; inventory)&lt;br /&gt;
* TDATA2 = The required strength to mount it&lt;br /&gt;
* TDATA3 = The base creature ID&lt;br /&gt;
|-&lt;br /&gt;
| t_comm_crystal || 77 || This type is used for communication crystals.&lt;br /&gt;
|-&lt;br /&gt;
| t_game_board || 78  || This type is used as a container for game pieces (t_game_piece).  It leverages the following properties:&lt;br /&gt;
* MORE1 = The type of pieces to use (0=chess, 1=checkers, 2=none... presumably this is hard-coded)&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_trash_can || 79 || This type is used as a trash can container, and it deletes any object placed into it.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID of the container (this is not an ITEMDEF)&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon_muzzle || 80 || This type is used for the business end of the cannon. It leverages the following properties:&lt;br /&gt;
* MORE2 = A mask of what is currently loaded in it. (0 = none, 1=powder, 2=shot)&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon || 81 || This type is used for the cannon control.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| t_cannon_ball || 82 || This is ammo for a t_cannon.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_armor_leather          83   // = non metallic armor (t_clothing)&lt;br /&gt;
|-&lt;br /&gt;
| t_seed || 84 || This type is used for seeds.  A seed can be created by using a dagger on a fruit (assuming the fruit is setup to have a seed.)  A seed can be planted by double clicking it and targeting the ground (specifically t_dirt items).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that will grow the fruit that this seed comes from. 0 is Nothing.&lt;br /&gt;
* TDATA2 = The art asset to use as the seed art asset. A copper coin is default.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_junk                   85   // = never used&lt;br /&gt;
 t_crystal_ball           86   // = Has no internal use.&lt;br /&gt;
 t_swamp                  87   // = swamp (smelly)&lt;br /&gt;
|-&lt;br /&gt;
| t_message || 88 || This type is used for bulletin board messages.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_reagent_raw || 89 || Freshly grown reagents...not processed yet. A seed can be created by using a dagger on a raw reagent (assuming the raw reagent is setup to have a seed.)  A seed can be planted by double clicking it and targeting the ground (specifically t_dirt items).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that will grow the fruit that this seed comes from. 0 is Nothing.&lt;br /&gt;
* TDATA2 = The art asset to use as the seed art asset. A copper coin is default.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_client_linger || 90 || Change player to npc for a while.&lt;br /&gt;
|-&lt;br /&gt;
| t_snow || 91 || Snow&lt;br /&gt;
|-&lt;br /&gt;
| t_it_stone || 92 || This type is an &amp;quot;item stone&amp;quot; that is used to generate items when the object is double clicked.  It has the following properties:&lt;br /&gt;
* MORE1 = The item or template ID to generate&lt;br /&gt;
* MORE2 = The price (or Plotflags to set?)&lt;br /&gt;
* MOREX = The regen time (0 = instant)&lt;br /&gt;
* MOREY = The total amount to deliver (0 = infinite, 0xFFFF = none left)&lt;br /&gt;
|-&lt;br /&gt;
| t_unused_93 || 93 || This has no use.&lt;br /&gt;
|-&lt;br /&gt;
| t_explosion || 94 ||  This type is used for explosion animations.  It leverages the following properties:&lt;br /&gt;
* MOREX = The damage that the explosion will cause&lt;br /&gt;
* MOREY = The type of damage (fire, magic, etc)&lt;br /&gt;
* MOREZ = The distance range for the damage&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_npc_script || 95 || This type is used to script NPC actions (in the form of a book).  The sphere_defs.scp file says &amp;quot;get rid of this in favor of waiting on m_events&amp;quot; but it may still exist... if so, it leverages the following properties:&lt;br /&gt;
* MORE1 = The same as for other books&lt;br /&gt;
* MORE2L = The current script page&lt;br /&gt;
* MORE2H = The current offset&lt;br /&gt;
* MOREZ = The priority for this script (as a percent, this is the chance they want to &amp;quot;do&amp;quot; this task)&lt;br /&gt;
|-&lt;br /&gt;
| t_web || 96 || Walk on this and transform into some other object.  MORE1 is the amount of hits the web can take.&lt;br /&gt;
|-&lt;br /&gt;
| t_grass || 97 || Can be eaten by grazing animals&lt;br /&gt;
* MORE1 = The regiontype ID that determines what sorts of resources (fish etc) that it can produce.&lt;br /&gt;
|-&lt;br /&gt;
| t_arock || 98 || A rock or boulder. can be thrown by giants.&lt;br /&gt;
|-&lt;br /&gt;
| t_tracker || 99 || Points to a linked object.&lt;br /&gt;
|-&lt;br /&gt;
| t_sound || 100 || This type is used to play sounds.  It uses the following properties:&lt;br /&gt;
* MORE1 = The sound ID&lt;br /&gt;
* MORE2 = A flag to indicate repetition&lt;br /&gt;
|-&lt;br /&gt;
| t_stone_town || 101 || This type is used for town stones.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The alignment of the town (chaos, neutral, order)&lt;br /&gt;
* MORE2 = The amount of gold in the town bank account&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_weapon_mace_crook     102   //&lt;br /&gt;
 t_weapon_mace_pick      103   //&lt;br /&gt;
 t_leather               104   // = leather or skins of some sort.(not wearable)&lt;br /&gt;
 t_ship_other            105   // = some other part of a ship.&lt;br /&gt;
|-&lt;br /&gt;
| t_bboard || 106 || This type is a bulleting board container that holds t_message items.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID of the container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook || 107 || This type is used for the Magery spellbook.  It leverages the following properties:&lt;br /&gt;
* MORE1 = A bit mask of available spells in circles 0-4, so to add all those spells: set MORE1=0ffffffff&lt;br /&gt;
* MORE2 = A bit mask of available spells in circles 5-8, so to add all those spells: set MORE2=0ffffffff&lt;br /&gt;
'''Note:''' In older sphere versions, MOREX, MOREY, and MOREZ could be set to add additional spells (necro, etc), but recently these concepts may have been removed... same with these TDATA settings:&lt;br /&gt;
* TDATA2 = Required Strength to equip the book&lt;br /&gt;
* TDATA3 = Type of light pattern it will cast&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object)&lt;br /&gt;
|-&lt;br /&gt;
| t_corpse || 108 || This type is a container used for all dead corpses.  It leverages the following properties:&lt;br /&gt;
* &amp;lt;s&amp;gt;MORE1 = The time of death&amp;lt;/s&amp;gt; TIMESTAMP seems to hold the time of death.&lt;br /&gt;
* MORE1 = Corpse is already carved? (0=not carved, 1=carved) &lt;br /&gt;
* MORE2 = The UID of the individual character that landed the killing blow&lt;br /&gt;
* MOREX &amp;amp; MOREY = Combined, these make up a single DWORD which specifies what type of creature this was&lt;br /&gt;
* MOREZ = The direction it is facing&lt;br /&gt;
* TDATA2 = The gumpID of the container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
There are two special TAGs for corpses:&lt;br /&gt;
* TAG.BLOOD = This is the number of times you can carve the corpse and cause blood to come out (default 5)&lt;br /&gt;
* TAG.MAXBLOOD = Not certain about this one, but it is likely related... perhaps it is set on the CHARDEF?&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_track_item            109   // - track a id or type of item.&lt;br /&gt;
 t_track_char            110   // = track a char or range of char id's&lt;br /&gt;
 t_weapon_arrow          111   //&lt;br /&gt;
 t_weapon_bolt           112   //&lt;br /&gt;
 t_eq_vendor_box         113   // = an equipped vendor box&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_bank_box || 114 || This type is a container that is used for the character bank.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The amount of gold in the account (is this still true?)&lt;br /&gt;
* MORE2 = The amount to restock to (for NPCs vendors who can buy stuff from players?)&lt;br /&gt;
* MOREP = The location in the world (x, y, and z) where the bank box was opened&lt;br /&gt;
* TDATA2 = The gumpID for the bank box container&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = the maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_deed || 115 || This type is used to create something else when double clicked.  It is perhaps the best solution for a player to place a ''multi'' part item like a house.  When double clicked, it will prompt for a target location.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID of the item that will be created at the target location&lt;br /&gt;
* MORE2 = The previous key ID (ideally this is set when a house or ship are re-deeded so that all the existing keys will still work)&lt;br /&gt;
|-&lt;br /&gt;
| t_loom || 116 || This type of device is used by weavers who turn wool or thread into bolts of cloth.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID of the currently loaded resource (wool or cotton/flax) that is being woven&lt;br /&gt;
* MORE2 = The amount of resources currently in the loom&lt;br /&gt;
|-&lt;br /&gt;
| t_bee_hive || 117 || This type is used for beehives.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The amount of honey which has accumulated in the hive&lt;br /&gt;
|-&lt;br /&gt;
| t_archery_butte || 118 || This type is used for practice archery targets.  When double clicked, the target will first check if you have an archery weapon equipped and if so, it will return some ammo.  It leverages the following properties:&lt;br /&gt;
* MORE1 = The ID for the type of ammo currently stuck in the target&lt;br /&gt;
* MORE2 = The amount of items stuck in the target&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_eq_murder_count       119   // = my murder count flag.  MORE1 contains the amount of time before it expires. &lt;br /&gt;
 t_eq_stuck              120   // we are stuck in a web&lt;br /&gt;
 t_trap_inactive         121   //  = a safe trap.&lt;br /&gt;
 //t_unused_122          122&lt;br /&gt;
 t_bandage               123   //  = can be used for healing.&lt;br /&gt;
 t_campfire              124   //  = this is a fire but a small one.&lt;br /&gt;
 t_map_blank             125&lt;br /&gt;
 t_spy_glass             126&lt;br /&gt;
 t_sextant               127&lt;br /&gt;
 t_scroll_blank          128&lt;br /&gt;
|-&lt;br /&gt;
| t_fruit || 129 || This type is used for fruit.  When double clicked, fruit will be eaten.  Fruit can be grown from crops (t_crop).  It leverages the following properties:&lt;br /&gt;
* TDATA1 = The ID of a t_crop item that this fruit comes from (If not set, this fruit may not have a seed, use zero to be certain)&lt;br /&gt;
* MOREM = Is the amount (0 to 127) of &amp;quot;food units&amp;quot; that will be gained when the item is used (eaten)&lt;br /&gt;
* MOREZ = Is the poison level of the fruit&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_water_wash            130   // water that will not contain fish. (for washing or drinking)  TDATA1 is a flag that indicates whether the container is empty or not &lt;br /&gt;
 t_weapon_axe            131   // not the same as a sword. but uses swordsmanship skill&lt;br /&gt;
|-&lt;br /&gt;
| t_weapon_xbow || 132 || This type is used for crossbow weapons.  It is essentially identical to t_weapon_bow.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_spellicon             133&lt;br /&gt;
 t_door_open             134&lt;br /&gt;
 t_meat_raw              135   // just a meaty part of a corpse. (uncooked meat)&lt;br /&gt;
 t_garbage               136&lt;br /&gt;
|-&lt;br /&gt;
| t_keyring || 137 || This type is a container used to store keys.  It leverages the following properties:&lt;br /&gt;
* TDATA2 = The gumpID&lt;br /&gt;
* TDATA3 = The minimum gump size&lt;br /&gt;
* TDATA4 = The maximum gump size&lt;br /&gt;
|-&lt;br /&gt;
| t_table || 138 || doesn't really do anything.&lt;br /&gt;
|-&lt;br /&gt;
| t_floor || 139 || &lt;br /&gt;
|-&lt;br /&gt;
| t_roof || 140 || &lt;br /&gt;
|-&lt;br /&gt;
| t_feather || 141 || a birds feather&lt;br /&gt;
|-&lt;br /&gt;
| t_wool || 142 || wool cut from a sheep.&lt;br /&gt;
|-&lt;br /&gt;
| t_fur || 143 || &lt;br /&gt;
|-&lt;br /&gt;
| t_blood || 144 || blood of some creature&lt;br /&gt;
|-&lt;br /&gt;
| t_foliage || 145 || This type is very similar to t_crops, the difference being the foliage does not disappear when the fruit is harvested.  It leverages the following properties:&lt;br /&gt;
* MORE1 = Time in seconds before this item will grow to the next stage (this overrides the default server defined number)&lt;br /&gt;
* TDATA1 = Is the ID of the first stage of the crop (the sprout)&lt;br /&gt;
* TDATA2 = Is the ID of the next stage of the crop (or zero if this is the final mature crop which will bear the fruit)&lt;br /&gt;
* TDATA3 = Is the ID of the fruit that this plant will grow and should only be set on the ''ripe'' plant&lt;br /&gt;
'''Note''' This type has unusual TIMER behavior in that regardless of the ATTR flags, the timer will restart when it reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| || ||&lt;br /&gt;
 t_grain                 146&lt;br /&gt;
 t_scissors              147&lt;br /&gt;
 t_thread                148&lt;br /&gt;
 t_yarn                  149&lt;br /&gt;
 t_spinwheel             150&lt;br /&gt;
 t_bandage_blood         151   //  = can't be used for healing.&lt;br /&gt;
 t_fish_pole             152&lt;br /&gt;
 t_shaft                 153   // bolt or arrow.&lt;br /&gt;
 t_lockpick              154&lt;br /&gt;
 t_kindling              155&lt;br /&gt;
 t_train_dummy           156&lt;br /&gt;
 t_train_pickpocket      157&lt;br /&gt;
 t_bedroll               158&lt;br /&gt;
 t_bellows               159&lt;br /&gt;
|-&lt;br /&gt;
| t_hide || 160 ||Made into leather.&lt;br /&gt;
* TDATA1 = Hold ID or DEFNAME of custom cut leather (or any item).&lt;br /&gt;
|-&lt;br /&gt;
| t_cloth_bolt || 161 || A bolt of cloth.&lt;br /&gt;
|-&lt;br /&gt;
| t_board || 162 || Logs are plained into decent lumber&lt;br /&gt;
|-&lt;br /&gt;
| t_pitcher || 163 || A pitcher holding a liquid of some kind.&lt;br /&gt;
*TDATA1 is a flag that indicates whether the container is empty or not. &lt;br /&gt;
|-&lt;br /&gt;
| t_pitcher_empty || 164 || An empty pitcher that can or did hold a liquid.&lt;br /&gt;
* TDATA1 is a flag that indicates whether the container is empty or not. &lt;br /&gt;
|-&lt;br /&gt;
| t_dye_vat || 165 || For dyeing items with.&lt;br /&gt;
|-&lt;br /&gt;
| t_dye || 166 || Dyes to set colors on a t_dye_vat&lt;br /&gt;
|-&lt;br /&gt;
| t_potion_empty || 167 || Empty bottle.&lt;br /&gt;
|-&lt;br /&gt;
| t_mortar || 168 || Alchemists mortar and pestle.&lt;br /&gt;
|-&lt;br /&gt;
| t_hair_dye || 169 || Hair dye.&lt;br /&gt;
|-&lt;br /&gt;
| t_sewing_kit || 170 || Tailoring sewing kit.&lt;br /&gt;
|-&lt;br /&gt;
| t_tinker_tools || 171 || Tinker's tools.&lt;br /&gt;
|-&lt;br /&gt;
| t_wall || 172 || Wall of a structure.&lt;br /&gt;
|-&lt;br /&gt;
| t_window || 173 || Window for a structure.  MOREZ is the light pattern&lt;br /&gt;
|-&lt;br /&gt;
| t_cotton || 174 || Cotton from the plant&lt;br /&gt;
|-&lt;br /&gt;
| t_bone || 175 || A bone from a corpse.&lt;br /&gt;
|-&lt;br /&gt;
| t_eq_script || 176 || This type can have tags and can be equipped.  Possibly used for memory objects that leverage @Equip and @UnEquip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_hold || 177 || A ships hold.&lt;br /&gt;
* TDATA2 is the gumpID&lt;br /&gt;
* TDATA3 is the minimum gump size&lt;br /&gt;
* TDATA4 is the maximum gump size&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_ship_hold_lock || 178 || A locked ship's hold.&lt;br /&gt;
* MORE1 = the lock code. normally this is the same as the uid (magic lock=non UID)&lt;br /&gt;
* MORE2= 0-1000 = How hard to pick or magic unlock. (conflict with door ?)&lt;br /&gt;
|-&lt;br /&gt;
| t_lava || 179 || &lt;br /&gt;
|-&lt;br /&gt;
| t_shield || 180 || This type is used to indicate the object is an equipable shield.  It has the following properties:&lt;br /&gt;
* MORE1L = The current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = The maximum hitpoints for the item&lt;br /&gt;
* MORE2 = The number of remaining charges (if magical)&lt;br /&gt;
* MOREX = The spell type (if magical)&lt;br /&gt;
* MOREY = The spell strength (0-1000)&lt;br /&gt;
|-&lt;br /&gt;
| t_jewelry || 181 || This type is used for equpable jewelry.  It leverages the following properties:&lt;br /&gt;
* MORE1L = The current amount of hitpoints the item has&lt;br /&gt;
* MORE1H = The maximum hitpoints for the item&lt;br /&gt;
* MORE2 = The number of remaining charges (if magical)&lt;br /&gt;
* MOREX = The spell type (if magical)&lt;br /&gt;
* MOREY = The spell strength (0-1000)&lt;br /&gt;
* TDATA2 = Required Strength to equip the item&lt;br /&gt;
* TDATA3 = Light pattern&lt;br /&gt;
* TDATA4 = A flag to indicate what happens when the light burns out (0=nothing, 1=delete the object)&lt;br /&gt;
|-&lt;br /&gt;
| t_dirt || 182 || This type is used to represent a patch of dirt where something can be planted.&lt;br /&gt;
|- &lt;br /&gt;
| t_script || 183 || This type can have tags, but can NOT be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_necro || 184 || AOS Necromancy spellbook (should have MOREZ=100 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_pala || 185 || AOS Paladin spellbook (should have MOREZ=200 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_extra || 186 || some spellbook for script purposes (MOREZ=basic offset)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_bushido || 187 || SE Bushido spellbook (should have MOREZ=400 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_ninjitsu || 188 || SE Ninjitsu spellbook (should have MOREZ=500 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_arcanist || 189 || ML Spellweaver spellbook (should have MOREZ=600 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_multi_custom || 190 || Customisable multi&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_mystic || 191 || SA Mysticism spellbook (should have MOREZ=677 by default)&lt;br /&gt;
|-&lt;br /&gt;
| t_hoverover || 192 || Hover-over item (CAN_C_HOVER can hover over blocking items)&lt;br /&gt;
|-&lt;br /&gt;
| t_spellbook_bard || 193 || SA Bard spellbook (should have MOREZ=700 by default)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Scripted TYPEDEFs==&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
! DEFNAME !! File !! Description&lt;br /&gt;
|-&lt;br /&gt;
| t_advance_gate || ??.scp || MORE = ID of character to change into&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
The syntax for defining a type is:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[TYPEDEF ''defname'']&amp;lt;br /&amp;gt;&lt;br /&gt;
TERRAIN=''id''&amp;lt;br /&amp;gt;&lt;br /&gt;
TERRAIN=''start_id'', ''end_id''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''trigger_name''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''trigger_name''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any number of triggers can be handled by one [[TYPEDEF]] definition, however it is not possible to handle the same trigger twice without using multiple definitions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The trigger name can be the name of any [[Items#Triggers|item trigger]]. The return value from the script can affect Sphere's hardcoded behaviour in different ways. See the documentation for the trigger to discover what parameters are passed in to each trigger and what the return values do.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the ''defname'' matches any of Sphere's hardcoded types (see 'typedefs' block in sphere_defs.scp), then the [[TYPEDEF]] can be used to override the behaviours of items of that type.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// Water definition from default script pack.&lt;br /&gt;
//&lt;br /&gt;
[TYPEDEF t_water]&lt;br /&gt;
TERRAIN = 0a8	0ab&lt;br /&gt;
TERRAIN = 0136	0137&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;
// Makes an item speak when double clicked.&lt;br /&gt;
//&lt;br /&gt;
[TYPEDEF t_exampletype]&lt;br /&gt;
ON=@DClick&lt;br /&gt;
  SAY I have been double clicked!&lt;br /&gt;
  RETURN 2&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>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=How_Combat_Works&amp;diff=8111</id>
		<title>How Combat Works</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=How_Combat_Works&amp;diff=8111"/>
				<updated>2024-10-02T01:35:02Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|How_Combat_Works}}&lt;br /&gt;
&lt;br /&gt;
The following diagram shows when combat triggers are triggered. See the [[Triggers]] page for more information on each trigger.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;[[@HitTry]] (attacker)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;/&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;\&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@Hit]] (attacker)&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;[[@HitMiss]] (attacker)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@Damage]] (weapon)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@HitParry]] (victim)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@GetHit]] (victim)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
[[@Damage]] (armor)&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks to Moe for posting this.&lt;br /&gt;
&lt;br /&gt;
NOTE: HITCHECK was added too. page need to be create&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SkillMenu&amp;diff=8110</id>
		<title>@SkillMenu</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SkillMenu&amp;diff=8110"/>
				<updated>2024-06-03T01:53:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a [[SKILLMENU|skill menu]] is displayed to a player. Note that the trigger only fires when Sphere attempts to display the menu through hardcoded behaviour, using the [[SKILLMENU]] command will not cause this trigger to fire.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters#Players|Players]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters#Players|player]] who the menu is being shown to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters#Players|player]] who the menu is being shown to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGS || I || The skillmenu's defname. This is expected to be one of the following:&lt;br /&gt;
* sm_alchemy&lt;br /&gt;
* sm_blacksmith&lt;br /&gt;
* sm_bolts&lt;br /&gt;
* sm_bowcraft&lt;br /&gt;
* sm_carpentry&lt;br /&gt;
* sm_cartography&lt;br /&gt;
* sm_inscription&lt;br /&gt;
* sm_polymorph&lt;br /&gt;
* sm_summon&lt;br /&gt;
* sm_tailor_cloth&lt;br /&gt;
* sm_tailor_leather&lt;br /&gt;
* sm_tinker&lt;br /&gt;
|-&lt;br /&gt;
| BIG change on X || I || https://github.com/Sphereserver/Source-X/blob/3b2c4d9c6dec393eaea725770bb86237e2a85074/Changelog.txt#L3408&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the skillmenu from being displayed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8109</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8109"/>
				<updated>2024-05-30T01:11:07Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Starting with SphereServer'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Setup of Sphere'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Where to get Sphere]]&lt;br /&gt;
* [[Installing Sphere]]&lt;br /&gt;
* [[Configuring Sphere.ini]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Sphere 101'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Chapter 1]] ''(Numbers, DEFNAME, ITEMDEF, CHARDEF)''&lt;br /&gt;
* [[Chapter 2]] ''(Sphere files explained)''&lt;br /&gt;
* [[Chapter 3]] ''(Scripting NPC's and items, Cool commands)''&lt;br /&gt;
* [[Chapter 4]] ''(Objects, operators, speech)''&lt;br /&gt;
* [[Chapter 5]] ''(Tags, Vars, Locals, Functions)''&lt;br /&gt;
* [[Chapter 6]] ''(LINKs, TIMERs, TARGETs)''&lt;br /&gt;
* [[Chapter 7]] ''(Loops and powerful functions)''&lt;br /&gt;
* [[Chapter 8]] ''(SKILLMENUs, MENUs, Gumps)''&lt;br /&gt;
* [[Chapter 9]] ''(Events)''&lt;br /&gt;
* [[Chapter 10]] ''(String Handling)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Extra Tutorials'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Common Mistakes|Common Mistakes Explained]] ''(A revision of Maximus's tutorial on the forums, and continuation of Taran's Misconceptions tutorial)''&lt;br /&gt;
* [[Internet and Sphere]] ''(And how to make the right use of them)''&lt;br /&gt;
* [[Languages Tutorial]] ''(How to script your own language system)''&lt;br /&gt;
* [[Making your own Skills]] ''(How to make and customize your skill)''&lt;br /&gt;
* [[Mul Patching Tutorial|Nazghul's Mul Patching Tutorial]] [http://sorea.profitux.cz/patching/ external link] ''(A document about mul patching and customizing your server)''&lt;br /&gt;
* [[Overriding Hardcoded Commands]] ''(How to override hardcoded commands and functions)''&lt;br /&gt;
* [[Scheduled Reboot]] ''(How to schedule system reboots)''&lt;br /&gt;
* [[Using MySQL]] ''(How to use MySQL)''&lt;br /&gt;
* [[Bitwise Operations]] ''(How to work with FLAGS/ATTR)''&lt;br /&gt;
* [[Script Debugging]] ''(How to fix your scripts)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''IMPORTANT LINKS'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [https://github.com/Sphereserver SphereServer Official Github]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Download Nightly Builds] ''(Plus! Extra downloads, like tools and scripts!)''&lt;br /&gt;
* [https://github.com/Sphereserver/Source-X/blob/master/Changelog.txt SphereX Changelog] | [https://github.com/Sphereserver/Source/blob/master/changelog.txt 56d Changelog] | [https://github.com/Sphereserver/Source-X/tree/master/docst Older Changelog]&lt;br /&gt;
* [https://discord.gg/BZj2fEA Join us at Discord] ''(We will solve most of your doubts over there)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Reference Compendium'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Definitions|'''Definitions''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[CHARDEF|Chardef]] | [[Characters|Characters]]&lt;br /&gt;
* [[DIALOG|Dialogs]]&lt;br /&gt;
* [[EVENTS|Events]]&lt;br /&gt;
* [[ITEMDEF|Itemdef]] | [[Items|Items]]&lt;br /&gt;
* [[MENU|Menus]]&lt;br /&gt;
* [[REGIONRESOURCE|Region Resources]]&lt;br /&gt;
* [[REGIONTYPE|Region Types]]&lt;br /&gt;
* [[AREADEF|Regions]]&lt;br /&gt;
* [[ROOMDEF|Rooms]]&lt;br /&gt;
* [[SKILLCLASS|Skill Classes]]&lt;br /&gt;
* [[SKILLMENU|Skill Menus]]&lt;br /&gt;
* [[SKILL|Skills]]&lt;br /&gt;
* [[SPAWN|Spawn Groups]]&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
* [[TYPEDEF|Types]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Objects|'''Objects''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Accounts]]&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
* [[Database]]&lt;br /&gt;
* [[Files]]&lt;br /&gt;
* [[GM Pages]]&lt;br /&gt;
* [[Items]]&lt;br /&gt;
** ''[[Special Items]]''&lt;br /&gt;
* [[Map Points]]&lt;br /&gt;
* [[Parties]]&lt;br /&gt;
* [[Regions]]&lt;br /&gt;
* [[Rooms]]&lt;br /&gt;
* [[Sectors]]&lt;br /&gt;
* [[Server]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Scripts|'''Scripts''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[:Category:Functions|Functions and Triggers]]&lt;br /&gt;
* [[:Category:Variables|General Functions, Properties and References]]&lt;br /&gt;
* [[Intrinsic Functions]]&lt;br /&gt;
* [[:Category:Statements|Statements]]&lt;br /&gt;
* [[:Category:Triggers|Triggers]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
* Modern SphereServer Nightly Downloads (Server) https://forum.spherecommunity.net/sshare.php?srt=4&lt;br /&gt;
* Older/Classic SphereServer downloads (Server) https://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=7&lt;br /&gt;
* Sphere-X Script Pack (Scripts) https://github.com/Sphereserver/Scripts-X&lt;br /&gt;
* Julians Script Vault (Scripts) https://github.com/JulianUO/SphereX-ScriptsVault&lt;br /&gt;
* List of UO Packets (Info) https://docs.polserver.com/packets/index.php&lt;br /&gt;
* Scripts https://mirror.ashkantra.de/scripts/Sphere/&lt;br /&gt;
* GM Commands (Commands) https://wiki.spherecommunity.net/index.php?title=GM_Commands&lt;br /&gt;
* Axis 2 Downloads (GM Tool) https://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=1 &lt;br /&gt;
* Leviathan (GM tool) https://github.com/cbnolok/Leviathan/releases&lt;br /&gt;
* Ultima Online Downloads (Clients) https://mega.nz/folder/6uYxnIpY#tahGzzz_yOkLgNM1c_DxdQ&lt;br /&gt;
* Client 7.0.20 https://mirror.ashkantra.de/fullclients/&lt;br /&gt;
* ClassicUO (Third Party Client) https://www.classicuo.eu/&lt;br /&gt;
* OrionUO (Third Party Client) http://orionuo.online/&lt;br /&gt;
* CentrED (Worldbuilding)  https://uo.wzk.cz/centred/&lt;br /&gt;
* UO-Pixel (Graphics) http://www.uo-pixel.de/&lt;br /&gt;
* UO Fiddler ( MUL Viewer) http://uofiddler.polserver.com/&lt;br /&gt;
* UO Grafiken by Nyray (Graphics) https://nyray.wordpress.com/&lt;br /&gt;
* Vestimisu (Graphics) http://vestimisu.blogspot.com/&lt;br /&gt;
* Ultima Online Graphics By Rubra (Graphcs) http://uographicsrubra.blogspot.com/&lt;br /&gt;
* Isis‘ UO Grafiken (Graphics) https://isispixel.wordpress.com/&lt;br /&gt;
* ServUO (Graphics) https://www.servuo.com/archive/categories/assets.13/&lt;br /&gt;
* UOGateway (Shard Listing) https://uogateway.com/ &lt;br /&gt;
&lt;br /&gt;
==Sphere 3rd Party Tools==&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;uid=603 Axis II] - GM Tool for Sphere that will allow you to place objects in-game, spawns, traveling and many other useful functions for shard admins and GMs.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=3 vSCP] - vSCP is the most complete and up-to-date syntax editor for sphere scripting. It does contain syntax highlighting, autocomplete, folding markers to specify blocks of code that can expand or collapse, bookmarks, autoindent, find/replace/gotoline, help guide for all the sphere elements added to your code, and more! &lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=2 vServerLauncher] - Install and run the latest build of sphereserver in a few clicks with vServerLauncher. It's pretty quick and simple!&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=5 SphereService] - Relaunch SphereSvr.exe everytime it closes/crashes. Automatically runs at windows startup and works in a silent mode minimized to Tray.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=4 vCrypter] - Type the client version and the tool will calculate the correct UO login keys for classic or enhanced clients.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Articles==&lt;br /&gt;
&lt;br /&gt;
* [[Armor Calculation]]&lt;br /&gt;
* [[Client Changes]]&lt;br /&gt;
* [[Common Scripting Misconceptions]]&lt;br /&gt;
* [[Custom Object Properties]]&lt;br /&gt;
* [[Error Codes]]&lt;br /&gt;
* [[Experience System]]&lt;br /&gt;
* [[How Combat Works]]&lt;br /&gt;
* [[Occam's Razor]]&lt;br /&gt;
* [[Optimization|Optimization Theory]]&lt;br /&gt;
* [[Override TAGs]]&lt;br /&gt;
* [[Revisions Changelog]]&lt;br /&gt;
* [[Sendpacket]]&lt;br /&gt;
* [[Skill Gain Theory]]&lt;br /&gt;
* [[The Process of Scripting]]&lt;br /&gt;
* [[Building Component Reference]]&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to:'''&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|XuN, Nolok, Ben, and Drk]], for their hard work on the X branch taking Sphere into the next decade.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Cloud_Br, Ellessar, Jdog, Lord Zerofiz, Mordaunt, Nazghul-ll, RanXerox, Rattlehead, Sandman, Sharlenwar, ShiryuX, thelegbra, Maximus, WarAngel and Valios]], for helping to add content.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Daleth]], for writing the Sphere Reference Project, and [[WhoIsWho|Mordaunt]] for converting it to .chm format.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Tracker]], for writing the Sphere 56 Tracking Changes in Sphereserver.net&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Taran]], for writing the original and now famous Sphere Scripting for Dummies tutorials, and [[WhoIsWho|MrSugarCube]] for bringing it up-to-date directly from source.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Khaos, Ranxerox, Shiryux, Furio, Radiant, Vjaka, Nazghul-ll, Ellessar, Torfo, Shadow Dragon, MrSugarCube and coruja747]] for continuing to develop Sphere into a powerful and very customizable Ultima Online emulator.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Crius]], for providing hosting for the original SphereWiki, and [[WhoIsWho|Torfo]] for providing the current hosting.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
* [[Useful Links]] ''(An ongoing list of useful links for community members)''&lt;br /&gt;
* [http://www.spherecommunity.net/ Official SphereServer Website]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Nightly builds]&lt;br /&gt;
* [http://nightly.prerelease.sphere.torfo.org/ Nightly builds - OUTDATED, use the link above]&lt;br /&gt;
* [http://spherepack.codeplex.com/ Sphere Community Pack 2.0]&lt;br /&gt;
* [http://uo.torfo.org/packetguide/ Jerrith's UO Packet Guide]&lt;br /&gt;
* [http://uo.torfo.org/packetguideKR/ Wyatt&amp;amp;Kons's UOKR Packet Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Navigation]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Eat&amp;diff=8108</id>
		<title>@Eat</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Eat&amp;diff=8108"/>
				<updated>2024-04-28T13:02:56Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add Argo trigger&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when someone is eating something.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|item]] being ate (X ONLY).&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] / [[SRC]] || The [[Characters|character]] doing the clicking.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| Argn1 || I/O || Set to 1 to let it pass your MaxStats, ie: MaxHits=100 and local.hits + hits = 150, having it to 1 will set hits to 150 and setting it to 0 will raise hits up to MaxHits only.&lt;br /&gt;
|-&lt;br /&gt;
| local.hits || I/O || Amount of HitPoints to regenerate.&lt;br /&gt;
|-&lt;br /&gt;
| local.mana || I/O || Amount of Mana to regenerate.&lt;br /&gt;
|-&lt;br /&gt;
| local.stam || I/O || Amount of Stamina to regenerate.&lt;br /&gt;
|-&lt;br /&gt;
| local.food || I/O || Amount of Food to regenerate.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the gain of stats but not the eating.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8106</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8106"/>
				<updated>2024-04-05T12:17:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Starting with SphereServer'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Setup of Sphere'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Where to get Sphere]]&lt;br /&gt;
* [[Installing Sphere]]&lt;br /&gt;
* [[Configuring Sphere.ini]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Sphere 101'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Chapter 1]] ''(Numbers, DEFNAME, ITEMDEF, CHARDEF)''&lt;br /&gt;
* [[Chapter 2]] ''(Sphere files explained)''&lt;br /&gt;
* [[Chapter 3]] ''(Scripting NPC's and items, Cool commands)''&lt;br /&gt;
* [[Chapter 4]] ''(Objects, operators, speech)''&lt;br /&gt;
* [[Chapter 5]] ''(Tags, Vars, Locals, Functions)''&lt;br /&gt;
* [[Chapter 6]] ''(LINKs, TIMERs, TARGETs)''&lt;br /&gt;
* [[Chapter 7]] ''(Loops and powerful functions)''&lt;br /&gt;
* [[Chapter 8]] ''(SKILLMENUs, MENUs, Gumps)''&lt;br /&gt;
* [[Chapter 9]] ''(Events)''&lt;br /&gt;
* [[Chapter 10]] ''(String Handling)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Extra Tutorials'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Common Mistakes|Common Mistakes Explained]] ''(A revision of Maximus's tutorial on the forums, and continuation of Taran's Misconceptions tutorial)''&lt;br /&gt;
* [[Internet and Sphere]] ''(And how to make the right use of them)''&lt;br /&gt;
* [[Languages Tutorial]] ''(How to script your own language system)''&lt;br /&gt;
* [[Making your own Skills]] ''(How to make and customize your skill)''&lt;br /&gt;
* [[Mul Patching Tutorial|Nazghul's Mul Patching Tutorial]] [http://sorea.profitux.cz/patching/ external link] ''(A document about mul patching and customizing your server)''&lt;br /&gt;
* [[Overriding Hardcoded Commands]] ''(How to override hardcoded commands and functions)''&lt;br /&gt;
* [[Scheduled Reboot]] ''(How to schedule system reboots)''&lt;br /&gt;
* [[Using MySQL]] ''(How to use MySQL)''&lt;br /&gt;
* [[Bitwise Operations]] ''(How to work with FLAGS/ATTR)''&lt;br /&gt;
* [[Script Debugging]] ''(How to fix your scripts)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''IMPORTANT LINKS'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [https://github.com/Sphereserver SphereServer Official Github]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Download Nightly Builds] ''(Plus! Extra downloads, like tools and scripts!)''&lt;br /&gt;
* [https://github.com/Sphereserver/Source-X/blob/master/Changelog.txt SphereX Changelog] | [https://github.com/Sphereserver/Source/blob/master/changelog.txt 56d Changelog] | [https://github.com/Sphereserver/Source-X/tree/master/docst Older Changelog]&lt;br /&gt;
* [https://discord.gg/BZj2fEA Join us at Discord] ''(We will solve most of your doubts over there)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Reference Compendium'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Definitions|'''Definitions''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[CHARDEF|Characters]]&lt;br /&gt;
* [[DIALOG|Dialogs]]&lt;br /&gt;
* [[EVENTS|Events]]&lt;br /&gt;
* [[ITEMDEF|Itemdef]] | [[Items|Items]]&lt;br /&gt;
* [[MENU|Menus]]&lt;br /&gt;
* [[REGIONRESOURCE|Region Resources]]&lt;br /&gt;
* [[REGIONTYPE|Region Types]]&lt;br /&gt;
* [[AREADEF|Regions]]&lt;br /&gt;
* [[ROOMDEF|Rooms]]&lt;br /&gt;
* [[SKILLCLASS|Skill Classes]]&lt;br /&gt;
* [[SKILLMENU|Skill Menus]]&lt;br /&gt;
* [[SKILL|Skills]]&lt;br /&gt;
* [[SPAWN|Spawn Groups]]&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
* [[TYPEDEF|Types]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Objects|'''Objects''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Accounts]]&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
* [[Database]]&lt;br /&gt;
* [[Files]]&lt;br /&gt;
* [[GM Pages]]&lt;br /&gt;
* [[Items]]&lt;br /&gt;
** ''[[Special Items]]''&lt;br /&gt;
* [[Map Points]]&lt;br /&gt;
* [[Parties]]&lt;br /&gt;
* [[Regions]]&lt;br /&gt;
* [[Rooms]]&lt;br /&gt;
* [[Sectors]]&lt;br /&gt;
* [[Server]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Scripts|'''Scripts''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[:Category:Functions|Functions and Triggers]]&lt;br /&gt;
* [[:Category:Variables|General Functions, Properties and References]]&lt;br /&gt;
* [[Intrinsic Functions]]&lt;br /&gt;
* [[:Category:Statements|Statements]]&lt;br /&gt;
* [[:Category:Triggers|Triggers]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
* Modern SphereServer Nightly Downloads (Server) https://forum.spherecommunity.net/sshare.php?srt=4&lt;br /&gt;
* Older/Classic SphereServer downloads (Server) https://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=7&lt;br /&gt;
* Sphere-X Script Pack (Scripts) https://github.com/Sphereserver/Scripts-X&lt;br /&gt;
* Julians Script Vault (Scripts) https://github.com/JulianUO/SphereX-ScriptsVault&lt;br /&gt;
* List of UO Packets (Info) https://docs.polserver.com/packets/index.php&lt;br /&gt;
* Scripts https://mirror.ashkantra.de/scripts/Sphere/&lt;br /&gt;
* GM Commands (Commands) https://wiki.spherecommunity.net/index.php?title=GM_Commands&lt;br /&gt;
* Axis 2 Downloads (GM Tool) https://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=1 &lt;br /&gt;
* Leviathan (GM tool) https://github.com/cbnolok/Leviathan/releases&lt;br /&gt;
* Ultima Online Downloads (Clients) https://mega.nz/folder/6uYxnIpY#tahGzzz_yOkLgNM1c_DxdQ&lt;br /&gt;
* Client 7.0.20 https://mirror.ashkantra.de/fullclients/&lt;br /&gt;
* ClassicUO (Third Party Client) https://www.classicuo.eu/&lt;br /&gt;
* OrionUO (Third Party Client) http://orionuo.online/&lt;br /&gt;
* CentrED (Worldbuilding)  https://uo.wzk.cz/centred/&lt;br /&gt;
* UO-Pixel (Graphics) http://www.uo-pixel.de/&lt;br /&gt;
* UO Fiddler ( MUL Viewer) http://uofiddler.polserver.com/&lt;br /&gt;
* UO Grafiken by Nyray (Graphics) https://nyray.wordpress.com/&lt;br /&gt;
* Vestimisu (Graphics) http://vestimisu.blogspot.com/&lt;br /&gt;
* Ultima Online Graphics By Rubra (Graphcs) http://uographicsrubra.blogspot.com/&lt;br /&gt;
* Isis‘ UO Grafiken (Graphics) https://isispixel.wordpress.com/&lt;br /&gt;
* ServUO (Graphics) https://www.servuo.com/archive/categories/assets.13/&lt;br /&gt;
* UOGateway (Shard Listing) https://uogateway.com/ &lt;br /&gt;
&lt;br /&gt;
==Sphere 3rd Party Tools==&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;uid=603 Axis II] - GM Tool for Sphere that will allow you to place objects in-game, spawns, traveling and many other useful functions for shard admins and GMs.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=3 vSCP] - vSCP is the most complete and up-to-date syntax editor for sphere scripting. It does contain syntax highlighting, autocomplete, folding markers to specify blocks of code that can expand or collapse, bookmarks, autoindent, find/replace/gotoline, help guide for all the sphere elements added to your code, and more! &lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=2 vServerLauncher] - Install and run the latest build of sphereserver in a few clicks with vServerLauncher. It's pretty quick and simple!&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=5 SphereService] - Relaunch SphereSvr.exe everytime it closes/crashes. Automatically runs at windows startup and works in a silent mode minimized to Tray.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=4 vCrypter] - Type the client version and the tool will calculate the correct UO login keys for classic or enhanced clients.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Articles==&lt;br /&gt;
&lt;br /&gt;
* [[Armor Calculation]]&lt;br /&gt;
* [[Client Changes]]&lt;br /&gt;
* [[Common Scripting Misconceptions]]&lt;br /&gt;
* [[Custom Object Properties]]&lt;br /&gt;
* [[Error Codes]]&lt;br /&gt;
* [[Experience System]]&lt;br /&gt;
* [[How Combat Works]]&lt;br /&gt;
* [[Occam's Razor]]&lt;br /&gt;
* [[Optimization|Optimization Theory]]&lt;br /&gt;
* [[Override TAGs]]&lt;br /&gt;
* [[Revisions Changelog]]&lt;br /&gt;
* [[Sendpacket]]&lt;br /&gt;
* [[Skill Gain Theory]]&lt;br /&gt;
* [[The Process of Scripting]]&lt;br /&gt;
* [[Building Component Reference]]&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to:'''&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|XuN, Nolok, Ben, and Drk]], for their hard work on the X branch taking Sphere into the next decade.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Cloud_Br, Ellessar, Jdog, Lord Zerofiz, Mordaunt, Nazghul-ll, RanXerox, Rattlehead, Sandman, Sharlenwar, ShiryuX, thelegbra, Maximus, WarAngel and Valios]], for helping to add content.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Daleth]], for writing the Sphere Reference Project, and [[WhoIsWho|Mordaunt]] for converting it to .chm format.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Tracker]], for writing the Sphere 56 Tracking Changes in Sphereserver.net&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Taran]], for writing the original and now famous Sphere Scripting for Dummies tutorials, and [[WhoIsWho|MrSugarCube]] for bringing it up-to-date directly from source.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Khaos, Ranxerox, Shiryux, Furio, Radiant, Vjaka, Nazghul-ll, Ellessar, Torfo, Shadow Dragon, MrSugarCube and coruja747]] for continuing to develop Sphere into a powerful and very customizable Ultima Online emulator.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Crius]], for providing hosting for the original SphereWiki, and [[WhoIsWho|Torfo]] for providing the current hosting.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
* [[Useful Links]] ''(An ongoing list of useful links for community members)''&lt;br /&gt;
* [http://www.spherecommunity.net/ Official SphereServer Website]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Nightly builds]&lt;br /&gt;
* [http://nightly.prerelease.sphere.torfo.org/ Nightly builds - OUTDATED, use the link above]&lt;br /&gt;
* [http://spherepack.codeplex.com/ Sphere Community Pack 2.0]&lt;br /&gt;
* [http://uo.torfo.org/packetguide/ Jerrith's UO Packet Guide]&lt;br /&gt;
* [http://uo.torfo.org/packetguideKR/ Wyatt&amp;amp;Kons's UOKR Packet Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Navigation]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8105</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8105"/>
				<updated>2024-04-05T12:17:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: add itemdef link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Starting with SphereServer'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Setup of Sphere'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Where to get Sphere]]&lt;br /&gt;
* [[Installing Sphere]]&lt;br /&gt;
* [[Configuring Sphere.ini]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Sphere 101'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Chapter 1]] ''(Numbers, DEFNAME, ITEMDEF, CHARDEF)''&lt;br /&gt;
* [[Chapter 2]] ''(Sphere files explained)''&lt;br /&gt;
* [[Chapter 3]] ''(Scripting NPC's and items, Cool commands)''&lt;br /&gt;
* [[Chapter 4]] ''(Objects, operators, speech)''&lt;br /&gt;
* [[Chapter 5]] ''(Tags, Vars, Locals, Functions)''&lt;br /&gt;
* [[Chapter 6]] ''(LINKs, TIMERs, TARGETs)''&lt;br /&gt;
* [[Chapter 7]] ''(Loops and powerful functions)''&lt;br /&gt;
* [[Chapter 8]] ''(SKILLMENUs, MENUs, Gumps)''&lt;br /&gt;
* [[Chapter 9]] ''(Events)''&lt;br /&gt;
* [[Chapter 10]] ''(String Handling)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Extra Tutorials'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Common Mistakes|Common Mistakes Explained]] ''(A revision of Maximus's tutorial on the forums, and continuation of Taran's Misconceptions tutorial)''&lt;br /&gt;
* [[Internet and Sphere]] ''(And how to make the right use of them)''&lt;br /&gt;
* [[Languages Tutorial]] ''(How to script your own language system)''&lt;br /&gt;
* [[Making your own Skills]] ''(How to make and customize your skill)''&lt;br /&gt;
* [[Mul Patching Tutorial|Nazghul's Mul Patching Tutorial]] [http://sorea.profitux.cz/patching/ external link] ''(A document about mul patching and customizing your server)''&lt;br /&gt;
* [[Overriding Hardcoded Commands]] ''(How to override hardcoded commands and functions)''&lt;br /&gt;
* [[Scheduled Reboot]] ''(How to schedule system reboots)''&lt;br /&gt;
* [[Using MySQL]] ''(How to use MySQL)''&lt;br /&gt;
* [[Bitwise Operations]] ''(How to work with FLAGS/ATTR)''&lt;br /&gt;
* [[Script Debugging]] ''(How to fix your scripts)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''IMPORTANT LINKS'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [https://github.com/Sphereserver SphereServer Official Github]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Download Nightly Builds] ''(Plus! Extra downloads, like tools and scripts!)''&lt;br /&gt;
* [https://github.com/Sphereserver/Source-X/blob/master/Changelog.txt SphereX Changelog] | [https://github.com/Sphereserver/Source/blob/master/changelog.txt 56d Changelog] | [https://github.com/Sphereserver/Source-X/tree/master/docst Older Changelog]&lt;br /&gt;
* [https://discord.gg/BZj2fEA Join us at Discord] ''(We will solve most of your doubts over there)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Reference Compendium'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Definitions|'''Definitions''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[CHARDEF|Characters]]&lt;br /&gt;
* [[DIALOG|Dialogs]]&lt;br /&gt;
* [[EVENTS|Events]]&lt;br /&gt;
* [[ITEMDEF|Itemdef]] | [[ITEMS|Items]]&lt;br /&gt;
* [[MENU|Menus]]&lt;br /&gt;
* [[REGIONRESOURCE|Region Resources]]&lt;br /&gt;
* [[REGIONTYPE|Region Types]]&lt;br /&gt;
* [[AREADEF|Regions]]&lt;br /&gt;
* [[ROOMDEF|Rooms]]&lt;br /&gt;
* [[SKILLCLASS|Skill Classes]]&lt;br /&gt;
* [[SKILLMENU|Skill Menus]]&lt;br /&gt;
* [[SKILL|Skills]]&lt;br /&gt;
* [[SPAWN|Spawn Groups]]&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
* [[TYPEDEF|Types]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Objects|'''Objects''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Accounts]]&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
* [[Database]]&lt;br /&gt;
* [[Files]]&lt;br /&gt;
* [[GM Pages]]&lt;br /&gt;
* [[Items]]&lt;br /&gt;
** ''[[Special Items]]''&lt;br /&gt;
* [[Map Points]]&lt;br /&gt;
* [[Parties]]&lt;br /&gt;
* [[Regions]]&lt;br /&gt;
* [[Rooms]]&lt;br /&gt;
* [[Sectors]]&lt;br /&gt;
* [[Server]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Scripts|'''Scripts''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[:Category:Functions|Functions and Triggers]]&lt;br /&gt;
* [[:Category:Variables|General Functions, Properties and References]]&lt;br /&gt;
* [[Intrinsic Functions]]&lt;br /&gt;
* [[:Category:Statements|Statements]]&lt;br /&gt;
* [[:Category:Triggers|Triggers]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
==Useful Links==&lt;br /&gt;
* Modern SphereServer Nightly Downloads (Server) https://forum.spherecommunity.net/sshare.php?srt=4&lt;br /&gt;
* Older/Classic SphereServer downloads (Server) https://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=7&lt;br /&gt;
* Sphere-X Script Pack (Scripts) https://github.com/Sphereserver/Scripts-X&lt;br /&gt;
* Julians Script Vault (Scripts) https://github.com/JulianUO/SphereX-ScriptsVault&lt;br /&gt;
* List of UO Packets (Info) https://docs.polserver.com/packets/index.php&lt;br /&gt;
* Scripts https://mirror.ashkantra.de/scripts/Sphere/&lt;br /&gt;
* GM Commands (Commands) https://wiki.spherecommunity.net/index.php?title=GM_Commands&lt;br /&gt;
* Axis 2 Downloads (GM Tool) https://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=1 &lt;br /&gt;
* Leviathan (GM tool) https://github.com/cbnolok/Leviathan/releases&lt;br /&gt;
* Ultima Online Downloads (Clients) https://mega.nz/folder/6uYxnIpY#tahGzzz_yOkLgNM1c_DxdQ&lt;br /&gt;
* Client 7.0.20 https://mirror.ashkantra.de/fullclients/&lt;br /&gt;
* ClassicUO (Third Party Client) https://www.classicuo.eu/&lt;br /&gt;
* OrionUO (Third Party Client) http://orionuo.online/&lt;br /&gt;
* CentrED (Worldbuilding)  https://uo.wzk.cz/centred/&lt;br /&gt;
* UO-Pixel (Graphics) http://www.uo-pixel.de/&lt;br /&gt;
* UO Fiddler ( MUL Viewer) http://uofiddler.polserver.com/&lt;br /&gt;
* UO Grafiken by Nyray (Graphics) https://nyray.wordpress.com/&lt;br /&gt;
* Vestimisu (Graphics) http://vestimisu.blogspot.com/&lt;br /&gt;
* Ultima Online Graphics By Rubra (Graphcs) http://uographicsrubra.blogspot.com/&lt;br /&gt;
* Isis‘ UO Grafiken (Graphics) https://isispixel.wordpress.com/&lt;br /&gt;
* ServUO (Graphics) https://www.servuo.com/archive/categories/assets.13/&lt;br /&gt;
* UOGateway (Shard Listing) https://uogateway.com/ &lt;br /&gt;
&lt;br /&gt;
==Sphere 3rd Party Tools==&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;uid=603 Axis II] - GM Tool for Sphere that will allow you to place objects in-game, spawns, traveling and many other useful functions for shard admins and GMs.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=3 vSCP] - vSCP is the most complete and up-to-date syntax editor for sphere scripting. It does contain syntax highlighting, autocomplete, folding markers to specify blocks of code that can expand or collapse, bookmarks, autoindent, find/replace/gotoline, help guide for all the sphere elements added to your code, and more! &lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=2 vServerLauncher] - Install and run the latest build of sphereserver in a few clicks with vServerLauncher. It's pretty quick and simple!&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=5 SphereService] - Relaunch SphereSvr.exe everytime it closes/crashes. Automatically runs at windows startup and works in a silent mode minimized to Tray.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=4 vCrypter] - Type the client version and the tool will calculate the correct UO login keys for classic or enhanced clients.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Articles==&lt;br /&gt;
&lt;br /&gt;
* [[Armor Calculation]]&lt;br /&gt;
* [[Client Changes]]&lt;br /&gt;
* [[Common Scripting Misconceptions]]&lt;br /&gt;
* [[Custom Object Properties]]&lt;br /&gt;
* [[Error Codes]]&lt;br /&gt;
* [[Experience System]]&lt;br /&gt;
* [[How Combat Works]]&lt;br /&gt;
* [[Occam's Razor]]&lt;br /&gt;
* [[Optimization|Optimization Theory]]&lt;br /&gt;
* [[Override TAGs]]&lt;br /&gt;
* [[Revisions Changelog]]&lt;br /&gt;
* [[Sendpacket]]&lt;br /&gt;
* [[Skill Gain Theory]]&lt;br /&gt;
* [[The Process of Scripting]]&lt;br /&gt;
* [[Building Component Reference]]&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to:'''&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|XuN, Nolok, Ben, and Drk]], for their hard work on the X branch taking Sphere into the next decade.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Cloud_Br, Ellessar, Jdog, Lord Zerofiz, Mordaunt, Nazghul-ll, RanXerox, Rattlehead, Sandman, Sharlenwar, ShiryuX, thelegbra, Maximus, WarAngel and Valios]], for helping to add content.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Daleth]], for writing the Sphere Reference Project, and [[WhoIsWho|Mordaunt]] for converting it to .chm format.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Tracker]], for writing the Sphere 56 Tracking Changes in Sphereserver.net&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Taran]], for writing the original and now famous Sphere Scripting for Dummies tutorials, and [[WhoIsWho|MrSugarCube]] for bringing it up-to-date directly from source.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Khaos, Ranxerox, Shiryux, Furio, Radiant, Vjaka, Nazghul-ll, Ellessar, Torfo, Shadow Dragon, MrSugarCube and coruja747]] for continuing to develop Sphere into a powerful and very customizable Ultima Online emulator.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Crius]], for providing hosting for the original SphereWiki, and [[WhoIsWho|Torfo]] for providing the current hosting.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
* [[Useful Links]] ''(An ongoing list of useful links for community members)''&lt;br /&gt;
* [http://www.spherecommunity.net/ Official SphereServer Website]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Nightly builds]&lt;br /&gt;
* [http://nightly.prerelease.sphere.torfo.org/ Nightly builds - OUTDATED, use the link above]&lt;br /&gt;
* [http://spherepack.codeplex.com/ Sphere Community Pack 2.0]&lt;br /&gt;
* [http://uo.torfo.org/packetguide/ Jerrith's UO Packet Guide]&lt;br /&gt;
* [http://uo.torfo.org/packetguideKR/ Wyatt&amp;amp;Kons's UOKR Packet Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Navigation]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Eat&amp;diff=8104</id>
		<title>@Eat</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Eat&amp;diff=8104"/>
				<updated>2024-01-14T02:52:13Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add ACT information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when someone is eating something.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || The [[Items|item]] being clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] / [[SRC]] || The [[Characters|character]] doing the clicking.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| Argn1 || I/O || Set to 1 to let it pass your MaxStats, ie: MaxHits=100 and local.hits + hits = 150, having it to 1 will set hits to 150 and setting it to 0 will raise hits up to MaxHits only.&lt;br /&gt;
|-&lt;br /&gt;
| local.hits || I/O || Amount of HitPoints to regenerate.&lt;br /&gt;
|-&lt;br /&gt;
| local.mana || I/O || Amount of Mana to regenerate.&lt;br /&gt;
|-&lt;br /&gt;
| local.stam || I/O || Amount of Stamina to regenerate.&lt;br /&gt;
|-&lt;br /&gt;
| local.food || I/O || Amount of Food to regenerate.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the gain of stats but not the eating.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=TARGETF&amp;diff=8103</id>
		<title>TARGETF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=TARGETF&amp;diff=8103"/>
				<updated>2024-01-02T21:18:06Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add TargP&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Targetf is a command you can use to directly target a character or item and using a function on it without manually creating an memory item or such. Using the targetf itself works like calling an ordinary function and you can put arguments after the function normally. &lt;br /&gt;
&lt;br /&gt;
ex. targetf f_hello or targetf f_hello 1,2 &lt;br /&gt;
&lt;br /&gt;
In targetf: &lt;br /&gt;
&lt;br /&gt;
SRC= player using the function &lt;br /&gt;
&lt;br /&gt;
ARGO= target's UID&lt;br /&gt;
&lt;br /&gt;
TARGP= ID of the tiles when target is a static tile&lt;br /&gt;
&lt;br /&gt;
local.id stores the ID of the targeted object&lt;br /&gt;
[[Category:Reference Compendium]]&lt;br /&gt;
[[Category: Properties and Functions]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8102</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=8102"/>
				<updated>2023-12-02T22:37:36Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Visual change&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Items}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Generally speaking, there are two types of &amp;quot;things&amp;quot; in the game; characters and items. Compared to characters, items are very complex. Items have a number of different uses, for example a sword is an item that players can see and equip to increase the damage they can do in combat. Some items in the game can not be seen by the players, but they have as much impact on the player as their sword, for example, a memory item is equipped every time a player is under the effects of a spell. Some [[Special Items|special types of item]] also have additional properties that can be accessed via scripts. The following tables detail the various properties of items in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[CONT]] || RW || Gets or sets the [[Characters|character]] or [[Special Items#Containers|container item]] that the object is inside.  When an item's CONT is changed, it bypasses the typical behavior (for example, you can force an item to be &amp;quot;in&amp;quot; a container and bypass @dropon triggers, or force an item to be equipped to a player and bypass @equiptest and @equip triggers -- but be careful, because in this second scenario it may end up in an invalid layer.)&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the item is linked to.  Note, you can make circular LINK's, but a single item cannot be linked to more than one other item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the object is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF (Reference)|TYPEDEF]] || R || Gets the [[ITEMDEF]] that defines the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&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;
| [[ADDCIRCLE]] ''spell_circle'' || W || Adds all of the spells in the given Magery circle to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSPELL]] ''spell_id'' || RW || Gets whether or not a spell exists in the spellbook, or adds a spell to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDHIT]] || RW || Overrides the hit sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDMISS]] || RW || Overrides the miss sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMOUNT]] || RW || Gets the amount of items this icon represents (e.g. a pile of gold or any stacked item).&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTR]] || RW || Gets or sets the item's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] || W || Moves the item to SRC's backpack (triggering the ''you put the item in your pack'' message.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW ||  Gets or Sets the can_flags (Setting can be only done in the Itemdef itself). Only readable in X branch.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMASK]] || RW ||  Stores the CAN flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] ''point_or_uid'' || R || Returns 1 if SRC has line of sight to the item or character (uid) or point (location).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags,point_or_uid'' || R || Returns 1 if SRC has line of sight to the item.  The ''flags'' are defined in the los_flags section of the sphere_defs.scp file and can be used to modify what tests take place.  The ''point_or_uid'' is an object or position that can be used to test line of sight to something other than SRC.  Note, the delimiter for FLAG values is ;&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the item that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the object's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''amount'' || W || Deducts an amount from the item, deleting it at 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTCONSUME]] ''resource_list'' || W || Deletes items from inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTGRID]] || RW || If in a container, gets or sets the grid number that the item occupies (in KR's grid view)&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTP]] || RW || Gets or sets the position of the item within its container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''chance, type, source'' || W || If ''chance'' is greater than (Rand(maxhits*16)), inflicts  damage of ''type'' (the damage type flags are defined in the sphere_defs.scp file) upon the item.  You can optionally specify the ''source'' of the damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the item, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECAY]] ''time'' || W || Sets the decay timer (in tenths of a second) for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID that the item will appear as to players.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || RW || Same as [[DISPID]], except it returns the ID as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and SRC.  If ''point_or_uid'' is used, SRC can be replaced with a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGCOLD]] || RW || Gets or sets the amount of cold damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGENERGY]] || RW || Gets or sets the amount of energy damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGFIRE]] || RW || Gets or sets the amount of fire damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGPOISON]] || RW || Gets or sets the amount of poison damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] || W || Drops the item to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Clones the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] || W || Equips the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the item or character's Z level to ground level (if items are on the ground, the top item's ''Z+HEIGHT'' is used).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the item clockwise.&lt;br /&gt;
|-&lt;br /&gt;
| [[FRUIT]] || RW || Gets or sets the fruit that will be produced by the crops.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITPOINTS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its ITEMDEF.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item occupies when equipped (possible layers are defined in the sphere_defs.scp file).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the maximum number of hitpoints the item can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the item's armour rating if it is clothing, armor, or a shield. This gets or sets a modifier for the item's damage if it is a weapon type.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1]] || RW || Gets or sets the MORE1 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]] || RW || Gets or sets the upper 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1L]] || RW || Gets or sets the lower 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2]] || RW || Gets or sets the MORE2 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]] || RW || Gets or sets the upper 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2L]] || RW || Gets or sets the lower 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREM]] || RW || Gets or sets the MOREM value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREX]] || RW || Gets or sets the MOREX value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREY]] || RW || Gets or sets the MOREY value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREZ]] || RW || Gets or sets the MOREZ value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREP]] || RW || Gets or sets the MOREP value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.  Possible ''direction'' values are N,S,W, or E.  Note, you can combine directions (like:  MOVE SW 1) but nonsensical directions (like: MOVE WE 2) have the nonsense removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the object to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the object to a specific location (note, the AREADEF or ROOMDEF must have a P defined).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the object's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] || W || Deletes the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] || W || Forces Sphere to update the tooltips for nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the object speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the object speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || Makes the object speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the item's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this object.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the item to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC. ''F'' makes the ''function'' available, and when added, the function name must be the 1st argument.  ''M'' allows you to place a ''multi'' item, in which case the multi number must be passed as an argument.  ''G'' forces the target to only be the ground.  ''W'' checks the criminal status of the player before (or after?) the target selection is made.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Schedules a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the item. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trigger_argtype, argument1, argument2, ...'' || R || Fires a custom trigger (trig_name), allowing you to define the behavior of the arguments (the types are defined under trigger_argtype in the sphere_defs.scp file).  The result of the trigger's RETURN value is returned.  For example:&lt;br /&gt;
 LOCAL.result=&amp;lt;TRIGGER @CustomTrigger,&amp;lt;DEF.tat_as_argn&amp;gt;,1,2,3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item type.  You can use built-in or custom [[TYPEDEF]]s as a value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] || W || Unequips the item and places it in SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the item to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the item to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESCUR]] || W || X branch only. Gets or sets the current uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USESMAX]] || W || X branch only. Gets or sets the maximum uses of an item. Only partially supported.&lt;br /&gt;
|-&lt;br /&gt;
| [[USE]] ''check_los'' || W || Uses the item, as if SRC had double clicked it.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the item, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all item triggers. Click on the trigger name for more detailed information such as arguments and examples.&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''' || '''Description''' || '''Sphere X Only?'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Buy]] || Fires when the item is being bought from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
|[[@Carve]] || Fires when a corpse item is being carved. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Damage]] || Fires when the item receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Char]] || Fires when the item has been dropped on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Ground]] || Fires when the item has been dropped on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Item]] || Fires when the item is dropped on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Self]] || Fires when an item has been dropped on to this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Trade]] || Fires when an item is being dropped on a Trade Window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when an item is having its colored changed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Equip]] || Fires when the item has been equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EquipTest]] || Fires when the item is about to be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignBegin]] || A trigger for t_multi_custom, called when the player enters on design mode. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommitItem]] || Fires for each commited item in house design system. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Ground]] || Fires when the item ihas been picked up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Pack]] || Fires when the item is picked up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Self]] || Fires when an item has been picked up from inside the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Stack]] || Fires when the item is picked up from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Redeed]] || Fires when multi item is about to redeed (t_multi, t_ship, t_multi_custom, t_addon).&lt;br /&gt;
|-&lt;br /&gt;
| [[@Sell]] || Fires when the item is sold to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Smelt]] || Fires when the item is being smelt. || X&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the object is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires when a character steps on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Cancel]] || Fires when a target is cancelled from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Char]] || Fires when a character is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Ground]] || Fires when the ground is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Item]] || Fires when an item is targeted from this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Timer]] || Fires when the item's timer expires.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when old-style tooltips are requested for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UnEquip]] || Fires when the item is unequipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=CANMASK&amp;diff=8101</id>
		<title>CANMASK</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=CANMASK&amp;diff=8101"/>
				<updated>2023-12-02T20:44:54Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&lt;br /&gt;
X branch only.&lt;br /&gt;
&lt;br /&gt;
This property is a bitmask, like the CAN property, and stores the [[CAN]] flags to be dynamically switched on or off from the base CAN property.&lt;br /&gt;
&lt;br /&gt;
When retrieving the CAN property, now it is first XORed with CANMASK (the return value will be CAN ^ CANMASK), so in other words:&lt;br /&gt;
&lt;br /&gt;
If a flag set in the CANMASK is also set in CAN, the flag is ignored;&lt;br /&gt;
If a flag set in the CANMASK isn't set in CAN, the flag is considered as set.&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=CAN&amp;diff=8100</id>
		<title>CAN</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=CAN&amp;diff=8100"/>
				<updated>2023-12-02T20:43:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&lt;br /&gt;
CAN is a Flag like variable, predefined values must be added with special characters and not with sums or sustractions ( + or - ).&lt;br /&gt;
&lt;br /&gt;
These values adds some behaviour modification for items, like make sphere they are water (can_i_water), a tile where Gargoyles can hover over (can_i_hover) and much more.&lt;br /&gt;
&lt;br /&gt;
On X version: CAN flags are read only. You can't edit them after the item/char creation. I you want modify the can Flags you should use [[CANMASK]]&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
[itemdef i_test]&lt;br /&gt;
id=i_pickaxe&lt;br /&gt;
name=Pickaxe&lt;br /&gt;
can=can_i_flip|can_i_dye|can_i_repair //This is how values must be added, using the | means they are being sum.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ON=@DClick&lt;br /&gt;
src.say &amp;lt;name&amp;gt;'s current can_flags are: &amp;lt;can&amp;gt;&lt;br /&gt;
//To check any specific flag this is how its done:&lt;br /&gt;
&lt;br /&gt;
if (&amp;lt;can&amp;gt;&amp;amp;can_i_dye)&lt;br /&gt;
 src.say and can be dyeable.&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
CANMASK EXAMPLE ON X VERSION&lt;br /&gt;
&lt;br /&gt;
IF &amp;lt;CANMASK&amp;gt;&amp;amp;mt_nonmover //  is on, turn it off&lt;br /&gt;
	CANMASK &amp;amp;=~mt_nonmover&lt;br /&gt;
	SYSMESSAGE @,,1 Can move&lt;br /&gt;
else//  is off, turn it on &lt;br /&gt;
	CANMASK |= mt_nonmover &lt;br /&gt;
	SYSMESSAGE @,,1 Can't move&lt;br /&gt;
ENDIF&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Actual Flags=&lt;br /&gt;
CAN_I_DOOR             000001   // Is a door UFLAG4_DOOR&lt;br /&gt;
&lt;br /&gt;
CAN_I_WATER            000002   // Need to swim in it. UFLAG1_WATER&lt;br /&gt;
&lt;br /&gt;
CAN_I_PLATFORM         000004   // we can walk on top of it. (even tho the item itself might block) UFLAG2_PLATFORM&lt;br /&gt;
&lt;br /&gt;
CAN_I_BLOCK            000008   // need to walk thru walls or fly over. UFLAG1_BLOCK&lt;br /&gt;
&lt;br /&gt;
CAN_I_CLIMB            000010   // step up on it, UFLAG2_CLIMBABLE&lt;br /&gt;
&lt;br /&gt;
CAN_I_FIRE             000020   // Is a fire. Ussually blocks as well. UFLAG1_DAMAGE&lt;br /&gt;
&lt;br /&gt;
CAN_I_ROOF             000040   // We are under a roof. can't rain on us. UFLAG4_ROOF&lt;br /&gt;
&lt;br /&gt;
CAN_I_HOVER            000080   // We are hovering. UFLAG4_HOVEROVER&lt;br /&gt;
&lt;br /&gt;
CAN_I_PILE             000100   // Can item be piled UFLAG2_STACKABLE (*.mul)&lt;br /&gt;
&lt;br /&gt;
CAN_I_DYE              000200   // Can item be dyed UFLAG3_CLOTH? (sort of)&lt;br /&gt;
&lt;br /&gt;
CAN_I_FLIP             000400   // will flip by default.&lt;br /&gt;
&lt;br /&gt;
CAN_I_LIGHT            000800   // UFLAG3_LIGHT&lt;br /&gt;
&lt;br /&gt;
CAN_I_REPAIR           001000   // Is it repairable (difficulty based on value)&lt;br /&gt;
&lt;br /&gt;
CAN_I_REPLICATE        002000   // Things like arrows are pretty much all the same.&lt;br /&gt;
&lt;br /&gt;
CAN_I_DCIGNORELOS      004000   // when dclicked, ignore LOS checks&lt;br /&gt;
&lt;br /&gt;
CAN_I_DCIGNOREDIST     008000   // when dclicked, ignore distance checks&lt;br /&gt;
&lt;br /&gt;
CAN_I_BLOCKLOS         010000   // blocks LOS, but not walking thru&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=CAN&amp;diff=8099</id>
		<title>CAN</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=CAN&amp;diff=8099"/>
				<updated>2023-12-02T20:40:14Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add canmask info&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Description=&lt;br /&gt;
&lt;br /&gt;
CAN is a Flag like variable, predefined values must be added with special characters and not with sums or sustractions ( + or - ).&lt;br /&gt;
&lt;br /&gt;
These values adds some behaviour modification for items, like make sphere they are water (can_i_water), a tile where Gargoyles can hover over (can_i_hover) and much more.&lt;br /&gt;
&lt;br /&gt;
CAN flags are read only. You can't edit them after the item/char creation. I you want modify the can Flags you should use canmask&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
[itemdef i_test]&lt;br /&gt;
id=i_pickaxe&lt;br /&gt;
name=Pickaxe&lt;br /&gt;
can=can_i_flip|can_i_dye|can_i_repair //This is how values must be added, using the | means they are being sum.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ON=@DClick&lt;br /&gt;
src.say &amp;lt;name&amp;gt;'s current can_flags are: &amp;lt;can&amp;gt;&lt;br /&gt;
//To check any specific flag this is how its done:&lt;br /&gt;
&lt;br /&gt;
if (&amp;lt;can&amp;gt;&amp;amp;can_i_dye)&lt;br /&gt;
 src.say and can be dyeable.&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
IF &amp;lt;CANMASK&amp;gt;&amp;amp;mt_nonmover //  is on, turn it off&lt;br /&gt;
	CANMASK &amp;amp;=~mt_nonmover&lt;br /&gt;
	SYSMESSAGE @,,1 Can move&lt;br /&gt;
else//  is off, turn it on &lt;br /&gt;
	CANMASK |= mt_nonmover &lt;br /&gt;
	SYSMESSAGE @,,1 Can't move&lt;br /&gt;
ENDIF&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Actual Flags=&lt;br /&gt;
CAN_I_DOOR             000001   // Is a door UFLAG4_DOOR&lt;br /&gt;
&lt;br /&gt;
CAN_I_WATER            000002   // Need to swim in it. UFLAG1_WATER&lt;br /&gt;
&lt;br /&gt;
CAN_I_PLATFORM         000004   // we can walk on top of it. (even tho the item itself might block) UFLAG2_PLATFORM&lt;br /&gt;
&lt;br /&gt;
CAN_I_BLOCK            000008   // need to walk thru walls or fly over. UFLAG1_BLOCK&lt;br /&gt;
&lt;br /&gt;
CAN_I_CLIMB            000010   // step up on it, UFLAG2_CLIMBABLE&lt;br /&gt;
&lt;br /&gt;
CAN_I_FIRE             000020   // Is a fire. Ussually blocks as well. UFLAG1_DAMAGE&lt;br /&gt;
&lt;br /&gt;
CAN_I_ROOF             000040   // We are under a roof. can't rain on us. UFLAG4_ROOF&lt;br /&gt;
&lt;br /&gt;
CAN_I_HOVER            000080   // We are hovering. UFLAG4_HOVEROVER&lt;br /&gt;
&lt;br /&gt;
CAN_I_PILE             000100   // Can item be piled UFLAG2_STACKABLE (*.mul)&lt;br /&gt;
&lt;br /&gt;
CAN_I_DYE              000200   // Can item be dyed UFLAG3_CLOTH? (sort of)&lt;br /&gt;
&lt;br /&gt;
CAN_I_FLIP             000400   // will flip by default.&lt;br /&gt;
&lt;br /&gt;
CAN_I_LIGHT            000800   // UFLAG3_LIGHT&lt;br /&gt;
&lt;br /&gt;
CAN_I_REPAIR           001000   // Is it repairable (difficulty based on value)&lt;br /&gt;
&lt;br /&gt;
CAN_I_REPLICATE        002000   // Things like arrows are pretty much all the same.&lt;br /&gt;
&lt;br /&gt;
CAN_I_DCIGNORELOS      004000   // when dclicked, ignore LOS checks&lt;br /&gt;
&lt;br /&gt;
CAN_I_DCIGNOREDIST     008000   // when dclicked, ignore distance checks&lt;br /&gt;
&lt;br /&gt;
CAN_I_BLOCKLOS         010000   // blocks LOS, but not walking thru&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@HitTry&amp;diff=8098</id>
		<title>@HitTry</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@HitTry&amp;diff=8098"/>
				<updated>2023-11-29T22:21:13Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add link of page &amp;quot;how combat work&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character is about to swing their weapon or fist using a combat skill.&lt;br /&gt;
&lt;br /&gt;
More info on [[How_Combat_Works]]&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|weapon]] being used (can be nothing, if fists are used).&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] doing the hitting.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] being hit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The time, in tenths of a second, until the swing will complete.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the combat swing.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Mount&amp;diff=8097</id>
		<title>@Mount</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Mount&amp;diff=8097"/>
				<updated>2023-11-17T19:04:24Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add ARGN1 argument and note&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character attempts to mount a rideable creature.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Characters|creature]] being mounted.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] attempting to mount the creature.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] attempting to mount the creature.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The itemID of the item containing the animation use when moounting.(Anim # is in tiledata of this item) [Sphere X]&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
    NOTE: When mounting a pet you'll read a non sense random value in ARGN1 but you can replace it by an ITEMID to force anim&lt;br /&gt;
    EX: 03ea6 for Llama anim or 03e9f for gray horse anim. Yes 03ea6 is a ship part but in tiledata it link to anim 828&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the character from mounting the creature.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8092</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8092"/>
				<updated>2023-06-12T22:16:50Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: add old changelog link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Starting with SphereServer'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Setup of Sphere'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Where to get Sphere]]&lt;br /&gt;
* [[Installing Sphere]]&lt;br /&gt;
* [[Configuring Sphere.ini]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Sphere 101'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Chapter 1]] ''(Numbers, DEFNAME, ITEMDEF, CHARDEF)''&lt;br /&gt;
* [[Chapter 2]] ''(Sphere files explained)''&lt;br /&gt;
* [[Chapter 3]] ''(Scripting NPC's and items, Cool commands)''&lt;br /&gt;
* [[Chapter 4]] ''(Objects, operators, speech)''&lt;br /&gt;
* [[Chapter 5]] ''(Tags, Vars, Locals, Functions)''&lt;br /&gt;
* [[Chapter 6]] ''(LINKs, TIMERs, TARGETs)''&lt;br /&gt;
* [[Chapter 7]] ''(Loops and powerful functions)''&lt;br /&gt;
* [[Chapter 8]] ''(SKILLMENUs, MENUs, Gumps)''&lt;br /&gt;
* [[Chapter 9]] ''(Events)''&lt;br /&gt;
* [[Chapter 10]] ''(String Handling)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Extra Tutorials'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Common Mistakes|Common Mistakes Explained]] ''(A revision of Maximus's tutorial on the forums, and continuation of Taran's Misconceptions tutorial)''&lt;br /&gt;
* [[Internet and Sphere]] ''(And how to make the right use of them)''&lt;br /&gt;
* [[Languages Tutorial]] ''(How to script your own language system)''&lt;br /&gt;
* [[Making your own Skills]] ''(How to make and customize your skill)''&lt;br /&gt;
* [[Mul Patching Tutorial|Nazghul's Mul Patching Tutorial]] [http://sorea.profitux.cz/patching/ external link] ''(A document about mul patching and customizing your server)''&lt;br /&gt;
* [[Overriding Hardcoded Commands]] ''(How to override hardcoded commands and functions)''&lt;br /&gt;
* [[Scheduled Reboot]] ''(How to schedule system reboots)''&lt;br /&gt;
* [[Using MySQL]] ''(How to use MySQL)''&lt;br /&gt;
* [[Bitwise Operations]] ''(How to work with FLAGS/ATTR)''&lt;br /&gt;
* [[Script Debugging]] ''(How to fix your scripts)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''IMPORTANT LINKS'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [https://github.com/Sphereserver SphereServer Official Github]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Download Nightly Builds] ''(Plus! Extra downloads, like tools and scripts!)''&lt;br /&gt;
* [https://github.com/Sphereserver/Source-X/blob/master/Changelog.txt SphereX Changelog] | [https://github.com/Sphereserver/Source/blob/master/changelog.txt 56d Changelog] | [https://github.com/Sphereserver/Source-X/tree/master/docst Older Changelog]&lt;br /&gt;
* [https://discord.gg/BZj2fEA Join us at Discord] ''(We will solve most of your doubts over there)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Reference Compendium'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Definitions|'''Definitions''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[CHARDEF|Characters]]&lt;br /&gt;
* [[DIALOG|Dialogs]]&lt;br /&gt;
* [[EVENTS|Events]]&lt;br /&gt;
* [[ITEMDEF|Items]]&lt;br /&gt;
* [[MENU|Menus]]&lt;br /&gt;
* [[REGIONRESOURCE|Region Resources]]&lt;br /&gt;
* [[REGIONTYPE|Region Types]]&lt;br /&gt;
* [[AREADEF|Regions]]&lt;br /&gt;
* [[ROOMDEF|Rooms]]&lt;br /&gt;
* [[SKILLCLASS|Skill Classes]]&lt;br /&gt;
* [[SKILLMENU|Skill Menus]]&lt;br /&gt;
* [[SKILL|Skills]]&lt;br /&gt;
* [[SPAWN|Spawn Groups]]&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
* [[TYPEDEF|Types]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Objects|'''Objects''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Accounts]]&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
* [[Database]]&lt;br /&gt;
* [[Files]]&lt;br /&gt;
* [[GM Pages]]&lt;br /&gt;
* [[Items]]&lt;br /&gt;
** ''[[Special Items]]''&lt;br /&gt;
* [[Map Points]]&lt;br /&gt;
* [[Parties]]&lt;br /&gt;
* [[Regions]]&lt;br /&gt;
* [[Rooms]]&lt;br /&gt;
* [[Sectors]]&lt;br /&gt;
* [[Server]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Scripts|'''Scripts''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[:Category:Functions|Functions and Triggers]]&lt;br /&gt;
* [[:Category:Variables|General Functions, Properties and References]]&lt;br /&gt;
* [[Intrinsic Functions]]&lt;br /&gt;
* [[:Category:Statements|Statements]]&lt;br /&gt;
* [[:Category:Triggers|Triggers]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
==Sphere 3rd Party Tools==&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;uid=603 Axis II] - GM Tool for Sphere that will allow you to place objects in-game, spawns, traveling and many other useful functions for shard admins and GMs.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=3 vSCP] - vSCP is the most complete and up-to-date syntax editor for sphere scripting. It does contain syntax highlighting, autocomplete, folding markers to specify blocks of code that can expand or collapse, bookmarks, autoindent, find/replace/gotoline, help guide for all the sphere elements added to your code, and more! &lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=2 vServerLauncher] - Install and run the latest build of sphereserver in a few clicks with vServerLauncher. It's pretty quick and simple!&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=5 SphereService] - Relaunch SphereSvr.exe everytime it closes/crashes. Automatically runs at windows startup and works in a silent mode minimized to Tray.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=4 vCrypter] - Type the client version and the tool will calculate the correct UO login keys for classic or enhanced clients.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Articles==&lt;br /&gt;
&lt;br /&gt;
* [[Armor Calculation]]&lt;br /&gt;
* [[Client Changes]]&lt;br /&gt;
* [[Common Scripting Misconceptions]]&lt;br /&gt;
* [[Custom Object Properties]]&lt;br /&gt;
* [[Error Codes]]&lt;br /&gt;
* [[Experience System]]&lt;br /&gt;
* [[How Combat Works]]&lt;br /&gt;
* [[Occam's Razor]]&lt;br /&gt;
* [[Optimization|Optimization Theory]]&lt;br /&gt;
* [[Override TAGs]]&lt;br /&gt;
* [[Revisions Changelog]]&lt;br /&gt;
* [[Sendpacket]]&lt;br /&gt;
* [[Skill Gain Theory]]&lt;br /&gt;
* [[The Process of Scripting]]&lt;br /&gt;
* [[Building Component Reference]]&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to:'''&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|XuN, Nolok, Ben, and Drk]], for their hard work on the X branch taking Sphere into the next decade.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Cloud_Br, Ellessar, Jdog, Lord Zerofiz, Mordaunt, Nazghul-ll, RanXerox, Rattlehead, Sandman, Sharlenwar, ShiryuX, thelegbra, Maximus, WarAngel and Valios]], for helping to add content.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Daleth]], for writing the Sphere Reference Project, and [[WhoIsWho|Mordaunt]] for converting it to .chm format.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Tracker]], for writing the Sphere 56 Tracking Changes in Sphereserver.net&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Taran]], for writing the original and now famous Sphere Scripting for Dummies tutorials, and [[WhoIsWho|MrSugarCube]] for bringing it up-to-date directly from source.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Khaos, Ranxerox, Shiryux, Furio, Radiant, Vjaka, Nazghul-ll, Ellessar, Torfo, Shadow Dragon, MrSugarCube and coruja747]] for continuing to develop Sphere into a powerful and very customizable Ultima Online emulator.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Crius]], for providing hosting for the original SphereWiki, and [[WhoIsWho|Torfo]] for providing the current hosting.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
* [[Useful Links]] ''(An ongoing list of useful links for community members)''&lt;br /&gt;
* [http://www.spherecommunity.net/ Official SphereServer Website]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Nightly builds]&lt;br /&gt;
* [http://nightly.prerelease.sphere.torfo.org/ Nightly builds - OUTDATED, use the link above]&lt;br /&gt;
* [http://spherepack.codeplex.com/ Sphere Community Pack 2.0]&lt;br /&gt;
* [http://uo.torfo.org/packetguide/ Jerrith's UO Packet Guide]&lt;br /&gt;
* [http://uo.torfo.org/packetguideKR/ Wyatt&amp;amp;Kons's UOKR Packet Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Navigation]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Serv.rtime.format&amp;diff=8091</id>
		<title>Serv.rtime.format</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Serv.rtime.format&amp;diff=8091"/>
				<updated>2023-06-12T22:13:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Change %J value 0-366 to 1-366 Ref: https://web.archive.org/web/20080226060323/http://www.scit.wlv.ac.uk/cgi-bin/mansec?3C+strftime#&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SERV.RTIME.FORMAT &amp;lt;args&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SERV.RTIME.FORMAT accepts arguments as a string, e.g. SERV.RTIME.FORMAT %d returns the number of the day.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Acceptable variables are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
%a= day name 3 letter&lt;br /&gt;
&lt;br /&gt;
%A= day name full&lt;br /&gt;
&lt;br /&gt;
%b= month name 3 letter&lt;br /&gt;
&lt;br /&gt;
%B= month name full&lt;br /&gt;
&lt;br /&gt;
%c= date &amp;amp; time numeric&lt;br /&gt;
&lt;br /&gt;
%d= day of month&lt;br /&gt;
&lt;br /&gt;
%H= hour 24hr clock&lt;br /&gt;
&lt;br /&gt;
%I= hour 12hr clock&lt;br /&gt;
&lt;br /&gt;
%j= day of year 1-366&lt;br /&gt;
&lt;br /&gt;
%m= month number&lt;br /&gt;
&lt;br /&gt;
%M= minutes&lt;br /&gt;
&lt;br /&gt;
%p= AM/PM&lt;br /&gt;
&lt;br /&gt;
%S= seconds&lt;br /&gt;
&lt;br /&gt;
%U= week number 0-52 with Sunday as the first day of week 1&lt;br /&gt;
&lt;br /&gt;
%w= week day numerical Sunday = 0&lt;br /&gt;
&lt;br /&gt;
%W= week number in year 0-52 with Monday as the first day of week 1&lt;br /&gt;
&lt;br /&gt;
%x= date numeric&lt;br /&gt;
&lt;br /&gt;
%X= time numeric&lt;br /&gt;
&lt;br /&gt;
%y= year 2 digit&lt;br /&gt;
&lt;br /&gt;
%Y= year 4 digit&lt;br /&gt;
&lt;br /&gt;
%z= Time zone&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Chapter_7&amp;diff=8090</id>
		<title>Chapter 7</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Chapter_7&amp;diff=8090"/>
				<updated>2023-03-13T03:12:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Specify forchar include only online players&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Chapter_7}}&lt;br /&gt;
&lt;br /&gt;
==Recursive Functions==&lt;br /&gt;
I discovered this very seldom explored extension of SPHERE scripting while reading messages on the boards. Someone was trying to create a function that counted the number of items in a container using this sort of thing, and it worked for the most part. I was very amazed, because before that, no one had even thought of using functions that looped back upon themselves.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Which is what a recursive function is. I'll say it one more time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A recursive function is one that calls itself, or recurs. Surprise!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So how do we do this? It's as simple as calling a function:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION recursive_test]&lt;br /&gt;
recursive_test&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This very small piece of code in fact IS a recursive function. As you can see, the function will call itself and start over from the beginning, which will proceed to call the function again, and again, and again, and on and on. In this case, we don't have any way to stop it. This is called an infinite loop, one that will continue forever without stopping. Your server will die a flaming death.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
'''Lesson 1: How to NOT create an infinite loop'''&lt;br /&gt;
&lt;br /&gt;
Let me tell you right now. You will write a script that implements an infinite loop. You will test it. Your server will die. It's guaranteed. No programmer can say that they have never accidentally written an infinite loop. (RANDOM NOTE: All windows programs are in fact infinite loops. Your SPHERE server is an infinite loop.) In a SPHERE script, however, here's what happens:&lt;br /&gt;
&lt;br /&gt;
# The function is called.&lt;br /&gt;
# Some stuff takes place&lt;br /&gt;
# The function is called from within itself. Being a good scripting language, it records where it left off so it can go back later. This is called the stack.&lt;br /&gt;
# Go back to number 1.&lt;br /&gt;
&lt;br /&gt;
This &amp;quot;stack&amp;quot; builds up very very quickly, and soon the server cannot allocate any more memory for it, and will crash when it tries. Fun stuff, I tell you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Anyways, here is one way to avoid creating an infinite loop. Let's say we want to make a function that executes SRC.SYSMESSAGE Hello World 35 times. Here would be an example of how one could do this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION recurse_hello]&lt;br /&gt;
IF (&amp;lt;ARGN1&amp;gt; &amp;lt; 1)&lt;br /&gt;
	RETURN 1&lt;br /&gt;
ENDIF&lt;br /&gt;
SYSMESSAGE Hello World&lt;br /&gt;
RECURSE_HELLO &amp;lt;EVAL &amp;lt;ARGN1&amp;gt; - 1&amp;gt;&lt;br /&gt;
RETURN 1&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, in another script, we would execute this command: &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;SRC.RECURSE_HELLO 35&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Remember what ARGN is from the previous chapter? It's the argument to the function stored as a number. Initially, as you can see, it's 25 because we made it be that way. However, every time the function calls itself, or &amp;quot;recurses&amp;quot;, it sets ARGN1 to be one less than itself. Here's the step-by-step analysis of this:&lt;br /&gt;
&lt;br /&gt;
# The function is called. ARGN1 is 35 because we said so.&lt;br /&gt;
# It checks to see if ARGN1 is less than one. If it is, we immediately RETURN 1 and set off the chain reaction that stops the recursive function.&lt;br /&gt;
# The next part should be fairly obvious. We're sending a SYSMESSAGE to the default object. Because we used SRC when we initially called the function, the default object is SRC.&lt;br /&gt;
# This is where the recursion takes place. The function calls itself with an argument ONE LESS than the current one. This starts the whole thing over at step 1. This is a NEW FUNCTION CALL, remember. The original function call STILL EXISTS and the program will &amp;quot;rewind&amp;quot; back down the stack to that location later. That is why I have a RETURN 1 after the function call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's your example of a recursive function. It isn't very practical. Let's look at a more practical example. See if you can figure it out for yourself. This is courtesy of Belgar, for the most part:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION pack_to_bank]&lt;br /&gt;
IF (&amp;lt;FINDLAYER.21.FINDCONT.0.UID&amp;gt; == 0)&lt;br /&gt;
	RETURN 1&lt;br /&gt;
ENDIF&lt;br /&gt;
FINDLAYER.21.FINDCONT.0.CONT = &amp;lt;FINDLAYER.layer_bankbox.UID&amp;gt;&lt;br /&gt;
PACK_TO_BANK&lt;br /&gt;
RETURN 1&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(As you can see, we don't always need an ARGS to make a function loop. In this case, we use a backpack with an unknown number of items inside and only stop when the pack no longer contains items.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Recursive functions are very useful. Be sure you don't overuse them, though! Remember, while a script is running, YOUR SERVER IS FROZEN. If a recursive function takes too long to complete, your server will lag. A good method is to make sure that no function should be looping more than about 500 times. (Actually other server emulators such as POL have a mechanism to catch &amp;quot;runaway scripts&amp;quot; like this and halt them in their tracks.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FOR==&lt;br /&gt;
&lt;br /&gt;
===FOR===&lt;br /&gt;
FOR is a powerful way to create a recursive function, and it allows a simpler level of control over your recursions. &lt;br /&gt;
&lt;br /&gt;
Usage:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION for_display]&lt;br /&gt;
FOR X 1 20&lt;br /&gt;
	SYSMESSAGE &amp;lt;LOCAL.X&amp;gt; //Will sysmessage the current for count.&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The loop will loop through 20 times, starting at 1 and ending at 20. X is the variable containing the current FOR count. If no variable is declared, the count can be accessed using &amp;lt;LOCAL._FOR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Changing LOCAL._FOR or whatever you declared as count, will not change the loop's behaviour. But be aware that if you &amp;quot;stack&amp;quot; FOR loops without giving them different loop variables, the innermost loop will overwrite the loop variables of its successors, usually leading towards a completely messup of the whole loop stuff.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCHARLAYER===&lt;br /&gt;
FORCHARLAYER is another type of FOR loop. Basically it allows you to loop through each item that is stored on the specified layer of a character. This can be useful for when you want to manipulate all of the spell runes or memory items on a character as an alternative to using FINDLAYER.x in a loop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Something to be aware of here is that whilst inside the loop, the default object will be temporarily changed to the item in the loop. As you can see in the following example, we must store a reference to the original default object (the character) so that we can still reference it from within the loop:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION get_mitems_names]&lt;br /&gt;
REF1 = &amp;lt;UID&amp;gt; // store the default object in REF1&lt;br /&gt;
FORCHARLAYER 30&lt;br /&gt;
	REF1.SYSMESSAGE &amp;lt;NAME&amp;gt; is a memory item in layer &amp;lt;LAYER&amp;gt;&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCHARMEMORYTYPE===&lt;br /&gt;
FORCHARMEMORYTYPE is a very useful type of FOR loop. You may want to use it for experience systems, and some player and NPC killing systems. It loops through every memory item on a character that has a specified flag.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example, a character has 4 memory items with the following names and flags:&lt;br /&gt;
{|&lt;br /&gt;
| Ellessar || 02000&lt;br /&gt;
|-&lt;br /&gt;
| Sorea || 022bc&lt;br /&gt;
|-&lt;br /&gt;
| Introvert || 0740d&lt;br /&gt;
|-&lt;br /&gt;
| Enrath || 0c40d&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Script:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION get_harmedby_mems]&lt;br /&gt;
REF1 = &amp;lt;UID&amp;gt; // As with FORCHARLAYER, the default object changes within the loop&lt;br /&gt;
FORCHARMEMORYTYPE memory_harmedby // Loop through memory items with flag 00010=memory_harmedby&lt;br /&gt;
	REF1.SYSMESSAGE There is a memory item with name &amp;lt;NAME&amp;gt;, uid &amp;lt;UID&amp;gt;, flags &amp;lt;COLOR&amp;gt; and one of its flag is also 00010.&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Result:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
On your screen you would see:&lt;br /&gt;
&lt;br /&gt;
''There is a memory item with name Ellessar, uid 04f000001, flags 02000 and one of its flag is also 02000.''&amp;lt;br /&amp;gt;&lt;br /&gt;
''There is a memory item with name Sorea, uid 04f000002, flags 022bc and one of its flag is also 02000.''&amp;lt;br /&amp;gt;&lt;br /&gt;
''There is a memory item with name Introvert, uid 04f000003, flags 0740d and one of its flag is also 02000.''&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note that there are only three messages, because the memory item &amp;quot;Enrath&amp;quot; does not have the flag 02000.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCHARS===&lt;br /&gt;
FORCHARS is a FOR loop that you can use to check all mobiles (online player and NPC) within a set radius of an object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The correct syntax being ''FORCHARS x'' where ''x'' is the radius in tiles the loop will cover.&lt;br /&gt;
&lt;br /&gt;
* '''FORCHARS 2''' would check any mobile within a 2 tile radius&lt;br /&gt;
* '''FORCHARS 18''' would check the area inside your screen&lt;br /&gt;
* '''FORCHARS 6144''' would check the entire world map&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One example of a function using FORCHARS&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION kill_vendors]&lt;br /&gt;
FORCHARS 6144 // checks entire map&lt;br /&gt;
	IF (&amp;lt;BRAIN&amp;gt; == brain_vendor) //argument for what will be acted upon within this function&lt;br /&gt;
		KILL // action&lt;br /&gt;
	ENDIF &lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As with all FOR loops you have to stipulate inside the loop what it is to act upon, if you are restricting it to certian players/npcs (or in the case of FORITEMS, items) otherwise it will perform the action upon all online players/npcs within the radius of the loop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case the loop checks for any Vendor npc's and kills them.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCLIENTS, FORPLAYERS===&lt;br /&gt;
FORCLIENTS and FORPLAYERS are FOR loops, both are used to affect a clients/players in certain radius. If you do not set the radius, radius 18 is used as default. While FORCLIENTS only acts on player characters who are logged in, FORPLAYERS acts on each and every player character, even if logged off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Usage:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION radius_players]&lt;br /&gt;
FORCLIENTS 25&lt;br /&gt;
	IF (&amp;lt;ACCOUNT.PLEVEL&amp;gt; &amp;lt;= 1) // Affects only logged in players, not staff&lt;br /&gt;
		SAY I am here!&lt;br /&gt;
	ENDIF&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCONT===&lt;br /&gt;
FORCONT is a type of FOR loop. It loops through every item in a container. The default object inside the loop will be the item currently being looped over.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Usage:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION rem_spellbooks]&lt;br /&gt;
FORCONT &amp;lt;FINDLAYER.21.UID&amp;gt; 10 // &amp;lt;FINDLAYER.21.UID&amp;gt; - UID of a container, 10 - how many subcontainers the function goes through, if set 0, it affects only items in container with UID&lt;br /&gt;
	IF (&amp;lt;BASEID&amp;gt; == i_spellbook)&lt;br /&gt;
		REMOVE&lt;br /&gt;
	ENDIF&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCONTID===&lt;br /&gt;
FORCONTID is a FOR loop that works in a similar way to FORCONT, except that it will only cycle through items that have a specific BASEID. You can set the amount of subcontainers to loop through, like the FORCONT example.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Usage:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION rem_spellbooks2]&lt;br /&gt;
FORCONTID i_spellbook 10&lt;br /&gt;
	REMOVE&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORCONTTYPE===&lt;br /&gt;
This is another FOR loop that is almost identical to FORCONTYPE. The only difference is that instead of looping through items with a specific BASEID, it will loop through items with a specific TYPE. Following the spellbooks remover example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Usage:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION rem_spellbook3]&lt;br /&gt;
FORCONTTYPE t_spellbook&lt;br /&gt;
	REMOVE&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORINSTANCES===&lt;br /&gt;
You may have seen scripts that do something like the following:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION removespawns]&lt;br /&gt;
FORITEMS 9999&lt;br /&gt;
	IF (&amp;lt;BASEID&amp;gt; == i_worldgem_bit)&lt;br /&gt;
		REMOVE&lt;br /&gt;
	ENDIF&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At a glance this script looks like a fairly useful script that can be used to remove all of your i_worldgem_bit (spawn) items from the server. If you attempt to run it you will most certainly notice that your server pauses for a signicantly long time (on a well-populated server you may even end up waiting a whole minute for the script to run), even if you only have several instances of the item on the server! The reason that this happens is because ''FORITEMS 9999'' will loop through ''every'' item within the 9999 tile radius, so the code will be looping hundreds or thousands of times when you only wanted to affect a handful of items!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To resolve this issue we have FORINSTANCES. This is a special loop which will loop through all instances of a given character or item BASEID that exist on the server. This offers the following advantages over using ''FORITEMS/FORCHARS 9999'':&lt;br /&gt;
* Sphere will only run your script for objects with the BASEID you are interested in.&lt;br /&gt;
* Sphere knows how many instances of the object exist, so can abort the loop at an appropriate time.&lt;br /&gt;
* Items inside containers (e.g. character backpacks or player banks) will not be missed out.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So with this in mind, the above script can be rewritten to the following:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION removespawns]&lt;br /&gt;
FORINSTANCES i_worldgem_bit&lt;br /&gt;
	REMOVe&lt;br /&gt;
ENDFOR&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now when you run this script you should notice a significant drop in the execution time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Since Sphere still has to internally search for references to the objects you're after you may find that on well-populate servers there is still a noticable pause. If you need to use this kind of loop then you should do so sparingly, and if you need to regularly use this then you may wish to consider finding a more optimal way of implementing your script(s).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FORITEMS===&lt;br /&gt;
FORITEMS works in much the same way that FORCHARS does, except it checks for ITEMS within the set radius as opposed to characters. Default obejct is set to the item which can be affected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A basic example of a function using FORITEMS:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION Spawn_remover]&lt;br /&gt;
FORITEMS 6144 //once again it checks the entire map&lt;br /&gt;
	IF (&amp;lt;TYPE&amp;gt; == t_spawn_char) //if this arguement is met&lt;br /&gt;
		REMOVE //remove it&lt;br /&gt;
	ENDIF //end the IF arguement&lt;br /&gt;
ENDFOR //end the FOR loop &amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===FOROBJS===&lt;br /&gt;
FOROBJS works in the same way that FORITEMS and FORCHARS does with the exception that this loop will find both characters '''AND''' items within the specified radius.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==WHILE==&lt;br /&gt;
WHILE is a ''conditional loop'', a block of code that will repeat itself whilst a given condition is true. Basically you can think of this as being an IF..ENDIF block that will run indefinately until the IF statement returns false.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ALWAYS AND ALWAYS:'''&lt;br /&gt;
# End WHILE blocks with ENDWHILE.&lt;br /&gt;
# Perform some action within the WHILE block that will change the outcome of the conditional statement.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION remove_all_mems]&lt;br /&gt;
WHILE (&amp;lt;FINDID.i_memory.UID&amp;gt;)   // continue to loop whilst an i_memory item is found inside the object&lt;br /&gt;
	FINDID.i_memory.REMOVE  // remove a memory item&lt;br /&gt;
ENDWHILE&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Whilst inside the loop, LOCAL._WHILE can be used to access the number of times that the script has looped so far. In some situations you may want to use this to impose a 'limit' on how many times your WHILE block can loop before it is forced to exit. An example of this could be:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION random_health]&lt;br /&gt;
WHILE (&amp;lt;HITS&amp;gt; &amp;gt; 10) &amp;amp;&amp;amp; (&amp;lt;LOCAL._WHILE&amp;gt; &amp;lt; 20)  // loop whilst the character has more than 10 health, but no more than 20 times&lt;br /&gt;
	HITS = &amp;lt;R1,100&amp;gt;    // set the character's health to a random value between 1 and 100&lt;br /&gt;
ENDWHILE&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since random numbers are.. random.. it is in theory possible that the health will never be set to a value less than or equal to 10. By checking LOCAL._WHILE inside the WHILE condition we add protection against the script looping indefinately and freezing the server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==TRY==&lt;br /&gt;
&lt;br /&gt;
===TRY===&lt;br /&gt;
TRY can be used to execute a line of script where the left hand side (i.e. a property being set or a function being called) is based on the value of an expression.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example, we may have the following script:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;LOCAL.TEST = 05&lt;br /&gt;
SRC.TAG0.MYTAG_&amp;lt;LOCAL.SOME&amp;gt; = 1234&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sphere will add a TAG named &amp;quot;MYTAG_&amp;lt;LOCAL.SOME&amp;gt;&amp;quot; with a value of &amp;quot;1234&amp;quot;, when really we were hoping for &amp;quot;MYTAG_05&amp;quot;. We can use TRY to accomplish this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;LOCAL.TEST = 05&lt;br /&gt;
TRY SRC.TAG0.MYTAG_&amp;lt;LOCAL.SOME&amp;gt; = 1234&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This causes Sphere to evaluate the entire line first, as &amp;quot;&amp;lt;tt&amp;gt;SRC.TAG0.MYTAG_05 = 1234&amp;lt;/tt&amp;gt;&amp;quot; and then run it, giving us the &amp;quot;MYTAG_05&amp;quot; TAG as we were after.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' Since 27-11-2006 the TRY function has become obsolete. Sphere will now always evaluate the entire line before executing it.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===TRYP===&lt;br /&gt;
This is the same as the TRY function, except that a PLEVEL parameter is also supplied. If SRC's PLEVEL is less than this value then the line will not be executed, for example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;TRYP 4 UID.&amp;lt;TAG.CHARUID&amp;gt;.NAME Yerk&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above line will not be executed if SRC's PLEVEL is less than 4, so it will not run for players but it will to GM and above. This is almost the same as writing:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;IF (&amp;lt;SRC.ACCOUNT.PLEVEL&amp;gt; &amp;gt;= 4)&lt;br /&gt;
	UID.&amp;lt;TAG.CHARUID&amp;gt;.NAME Yerk&lt;br /&gt;
ENDIF&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
However, with TRYP the line will also run if there is no SRC (in an @Timer trigger, for example). So a more accurate scripted equivalent would be:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;IF !(&amp;lt;SRC&amp;gt;)&lt;br /&gt;
	TRY UID.&amp;lt;TAG.CHARUID&amp;gt;.NAME Yerk&lt;br /&gt;
ELSEIF (&amp;lt;SRC.ACCOUNT.PLEVEL&amp;gt; &amp;gt;= 4)&lt;br /&gt;
	TRY UID.&amp;lt;TAG.CHARUID&amp;gt;.NAME Yerk&lt;br /&gt;
ENDIF&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===TRYSRC===&lt;br /&gt;
As already mentioned in a previous chapter, the TRYSRC function can be used to override the SRC object for a given line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The syntax for this function is &amp;lt;tt&amp;gt;TRYSRC uid command&amp;lt;/tt&amp;gt;, where &amp;lt;tt&amp;gt;uid&amp;lt;/tt&amp;gt; is the UID of the character who you want to become SRC, and &amp;lt;tt&amp;gt;command&amp;lt;/tt&amp;gt; is the command you want to execute.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;ON=@Timer&lt;br /&gt;
	// place 5000 gold coins in LINK's backpack&lt;br /&gt;
	SERV.NEWITEM i_gold&lt;br /&gt;
	NEW.AMOUNT = 5000&lt;br /&gt;
	TRYSRC &amp;lt;LINK.UID&amp;gt; NEW.BOUNCE // the BOUNCE function places an item into SRC's backpack&lt;br /&gt;
	RETURN 1&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===TRYSRV===&lt;br /&gt;
TRYSRV is similar to the TRYSRC command except that rather than running a command with a specific character as SRC, the command is instead executed with SRC set to the SERV object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This can be desirable in the following situations:&lt;br /&gt;
* Certain properties of accounts, such as passwords, are protected against being accessed unless SRC has a PLEVEL of 7 (owner). It would be incredibly dangerous and unwise to set a player's PLEVEL to 7, even temporarily, but the SERV object is always considered to have a PLEVEL of 7.&lt;br /&gt;
* Certain functions/commands behave differently with a character as SRC, for example:&lt;br /&gt;
** SERV.NEWNPC will automatically set the new NPC's position to beside the SRC character. By using &amp;lt;tt&amp;gt;TRYSRV SERV.NEWNPC&amp;lt;/tt&amp;gt; you can avoid players seeing an NPC 'flicker' on and off their screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==SERV==&lt;br /&gt;
&lt;br /&gt;
===CHARDEF===&lt;br /&gt;
Let's say you wanted to retrieve the DAM property from, say, a Liche. Because DAM isn't a character property, we can only get the property from the CHARDEF. (Technically, there is a DAM property for characters, but it is not what we're looking for.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION f_return_char_prop]&lt;br /&gt;
LOCAL.DAM = &amp;lt;SERV.CHARDEF.&amp;lt;ARGS&amp;gt;.DAM&amp;gt;&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the above example, Sphere will take the argument passed (ARGS), then try to store the DAM property from the corresponding CHARDEF into LOCAL.DAM.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Pretty simple, right? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===ITEMDEF===&lt;br /&gt;
This works similar to SERV.CHARDEF, only it works on ITEMDEFs. Let's say you wanted to get the SKILL property from a character's equipped weapon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here's an example: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION f_return_wep_skill]&lt;br /&gt;
LOCAL.WEP_SKILL = &amp;lt;SERV.ITEMDEF.&amp;lt;ARGS&amp;gt;.SKILL&amp;gt;&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That would store the SKILL property of whatever ITEMDEF passed (ARGS) into LOCAL.WEP_SKILL. And this can get much more complex. As an example, I recently wrote a script that does the following:&lt;br /&gt;
* Use QVAL to find the equipped weapon. &lt;br /&gt;
* Store the weapon found in REF1. &lt;br /&gt;
* Check to see if REF1 returned a weapon UID. &lt;br /&gt;
* Store the DAM property for the weapon in LOCAL.WEP_DAM. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION f_weapon_dam]&lt;br /&gt;
REF1 = &amp;lt;QVAL &amp;lt;FINDLAYER.1.UID&amp;gt; ? &amp;lt;FINDLAYER.1.UID&amp;gt; : &amp;lt;FINDLAYER.2.UID&amp;gt;&amp;gt;&lt;br /&gt;
IF (&amp;lt;REF1&amp;gt;) // REF1 is true; weapon found.&lt;br /&gt;
    LOCAL.WEP_DAM = &amp;lt;SERV.ITEMDEF.&amp;lt;REF1.BASEID&amp;gt;.DAM&amp;gt;&lt;br /&gt;
ENDIF&lt;br /&gt;
RETURN &amp;lt;LOCAL.WEP_DAM&amp;gt;&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That's not too complex, is it? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===LOG===&lt;br /&gt;
This functions is very good if you want to see when a player makes something or say something or when want to know the result of formulas in your scripts. This, is for writing messages onto the console (and logs). It is really simple to use:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;SERV.LOG Hi world&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And when you look at console it shows something like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript color=&amp;quot;darkgreen&amp;quot;&amp;gt;21:56:(YourScript.scp,2)Hi world&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Easy and useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If for some reason you don't want the script name to appear in the log, prefix your log message with the '@' character (prefix the message with two '@' characters (@@) if you actually want to start the message with the @ symbol.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===MAP===&lt;br /&gt;
The SERV.MAP function allows you to read the properties of a specific point on a map. There are two syntaxes that can be used:&lt;br /&gt;
# &amp;lt;tt&amp;gt;&amp;amp;lt;SERV.MAP(x,y,map)&amp;amp;gt;.KEY&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;&amp;amp;lt;SERV.MAP(x,y,z,map)&amp;amp;gt;.KEY&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You may notice a slight 'peculiarity' in these syntaxes and you should be aware of them so that they don't catch you out: When there are 3 parameters given, the third parameter is used as the map number to access. When 4 parameters are given, the third parameter is the height (Z) and the fourth becomes the map number.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The KEY can be a number of things:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
| ISNEARTYPE type distance checkmulti || Returns 1 if an item exists near the point within &amp;amp;lt;distance&amp;amp;gt; tiles. If &amp;amp;lt;checkmulti&amp;amp;gt; is 1 then multi components will also be checked.&lt;br /&gt;
|-&lt;br /&gt;
| REGION || Access the REGION at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| ROOM || Access the ROOM at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| SECTOR || Access the SECTOR at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| STATICS || The number of static items at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| STATICS.n.ID || The ID of the nth static item at the map point (n starts at 0)&lt;br /&gt;
|-&lt;br /&gt;
| STATICS.n.COLOR || The COLOR of the nth static item at the map point (n starts at 0)&lt;br /&gt;
|-&lt;br /&gt;
| STATICS.n.Z || The Z level of the nth static item at the map point (n starts at 0)&lt;br /&gt;
|-&lt;br /&gt;
| STATICS.n.* || If the STATICS.n.KEY does not match any of the above properties, the value will be taken from the static's ITEMDEF in the scripts&lt;br /&gt;
|-&lt;br /&gt;
| TERRAIN || The ID of the terrain at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| TYPE || The type of terrain at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| X, Y, Z, M, MAP || Access the X/Y/Z/MAP values at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| COMPONENTS || The number of components items at the map point.&lt;br /&gt;
|-&lt;br /&gt;
| COMPONENTS.n.ID || The ID of the nth component item at the map point (n starts at 0)&lt;br /&gt;
|-&lt;br /&gt;
| COMPONENTS.n.Z || The Z level of the nth component item at the map point (n starts at 0)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===NEWDUPE===&lt;br /&gt;
When you use the &amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;.DUPE&amp;lt;/font&amp;gt; command you can create a 'clone' of a targeted item. The NEWDUPE function allows this functionality to be reproduced within scripts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The syntax of the function is &amp;lt;tt&amp;gt;NEWDUPE uid&amp;lt;/tt&amp;gt;, where uid is the UID of the object you want to clone. After running this function, the SERV.NEW reference will be set to the newly cloned item. You should know that it creates the 'duped' item exactly on the same spot where the targeted item exists. So you may have to move it anywhere else or it will maybe crush your stack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is an example, the script below will clone the character's weapon and place it in their backpack:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION f_dupeweapon]&lt;br /&gt;
IF (&amp;lt;WEAPON.UID&amp;gt;)&lt;br /&gt;
	SERV.NEWDUPE &amp;lt;WEAPON&amp;gt;&lt;br /&gt;
	BOUNCE &amp;lt;NEW.UID&amp;gt;&lt;br /&gt;
ENDIF&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===NEWITEM===&lt;br /&gt;
This is an easy function, used to create items. Many of you learned in 55i tutorials the format of NEWITEM, well, this changed on 56b and this is mainly to explain that change.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, you can't use this function on some player, you have to create it on SERV. Also, the reference to the new item isn't SRC.ACT anymore. It changed to NEW, so, if i want to create an item with the color 9, it will look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;SERV.NEWITEM i_example&lt;br /&gt;
NEW.COLOR 9&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As you can see, it is really easy to use. There are also additional parameters that can be optionally passed into NEWITEM:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;NEWITEM id, amount, cont, triggerEquip&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So if I want to create 3 i_test in SRC's backpack I should do:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;SERV.NEWITEM i_test, 3, &amp;lt;SRC.FINDLAYER.21.UID&amp;gt;,1&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Easy, uh?&lt;br /&gt;
&lt;br /&gt;
===NEWNPC===&lt;br /&gt;
This function can be used to create NPCs in the world. The syntax is &amp;lt;tt&amp;gt;NEWNPC id&amp;lt;/tt&amp;gt;, where &amp;lt;tt&amp;gt;id&amp;lt;/tt&amp;gt; is the BASEID of the character you wish to create. The newly created character can be accessed via the NEW reference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following function creates a headless and moves it to within 10 tiles of the default object.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;[FUNCTION f_createnpc]&lt;br /&gt;
SERV.NEWNPC c_headless&lt;br /&gt;
NEW.MOVENEAR &amp;lt;UID&amp;gt; 10&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note''' It is also possible to create player characters this way, by setting the ACCOUNT property after creating the new character.&lt;br /&gt;
&lt;br /&gt;
===NEWSUMMON===&lt;br /&gt;
This function similar to NEWNPC but is specific to summons. This will allow you to create a new summoned creature for a specific time. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
[FUNCTION f_createsummon]&lt;br /&gt;
SERV.NEWSUMMON=c_ogre,15&lt;br /&gt;
NEW.P=&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example will summon and Ogre for 15 seconds at your current location.&lt;br /&gt;
&lt;br /&gt;
===SKILL===&lt;br /&gt;
Well, this is an easy function, like the others. This one refers to the SKILL section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can see the skill properties in sphere_skills.scp. I'll explain how it works:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;spherescript&amp;gt;LOCAL.SKILL = &amp;lt;SERV.SKILL.&amp;lt;ACTION&amp;gt;.KEY&amp;gt;&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With that line you get the Skill Key (Alchemy, ex.).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are 3 ways to use SERV.SKILL: Key, Defname, Number.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Any of them are accepted, and if you see, in most of the cases people use Action to get the Key and get the player skill amount.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can find many uses for it, all you need is some imagination.&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8077</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8077"/>
				<updated>2023-01-16T13:56:48Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &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;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&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;
| [[BONUSSTR]] | [[BONUSDEX]] | [[BONUSINT]] | [[BONUSHITS]] | [[BONUSSTAM]] | [[BONUSMANA]] | [[BONUSSKILLx]] | [[BONUSSKILLxAMT]] (X branch only) || RW || Increases (or decreases) the applicable Stat. Positive or negative integer.&lt;br /&gt;
For BonusSkill, x is a sequential number(1-4) and must assign a skill. Ex:bonusskill1=bowcraft and BonusSkillxAMT is the amount&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;
| [[RESDISPDNID]] || 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;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction 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]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) 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 by using [[Override_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>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8076</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8076"/>
				<updated>2023-01-16T13:53:13Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &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;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&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;
| [[BONUSSTR]] | [[BONUSDEX]] | [[BONUSINT]] | [[BONUSHITS]] | [[BONUSSTAM]] | [[BONUSMANA]] | [[BONUSSKILLx]] | [[BONUSSKILLxAMT]] (X branch only) || RW || Increases (or decreases) the applicable Stat. Positive or negative integer.&lt;br /&gt;
For BonusSkill, x is a sequential number(1-4) and must assign a skill. Ex:bonusskill1=bowcraft and BonusSkillxAMT is the amount&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;
| [[RESDISPDNID]] || 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;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction 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]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) 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>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8075</id>
		<title>ITEMDEF</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=ITEMDEF&amp;diff=8075"/>
				<updated>2023-01-16T13:52:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &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;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&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;
| [[BONUSSTR]] | [[BONUSDEX]] | [[BONUSINT]] | [[BONUSHITS]] | [[BONUSSTAM]] | [[BONUSMANA]] | [[BONUSSKILLx]] | [[BONUSSKILLxAMT]] (X branch only) || RW || Increases (or decreases) the applicable Stat. Positive or negative integer.&lt;br /&gt;
For BonusSkill, x is a sequential numbert(1-4) and assignt a skill. Ex:bonusskill1=bowcraft and BonusSkillxAMT is the amount&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;
| [[RESDISPDNID]] || 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;
| [[WEIGHTREDUCTION]] || RW || Gets or sets the percent of weight reduction 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]] ''period,tiles'' || RW || ?? || Gets or sets the speed (tenths) and tiles that a ship will move at. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.TILES]] || RW || Y || Gets or sets the tiles that a ship will move at each movement. (t_ship only)&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED.PERIOD]] || RW || Y || Gets or sets the speed (tenths per each movement) 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>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8071</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=8071"/>
				<updated>2023-01-15T19:04:22Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: CHange changelog link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Starting with SphereServer'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Setup of Sphere'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Where to get Sphere]]&lt;br /&gt;
* [[Installing Sphere]]&lt;br /&gt;
* [[Configuring Sphere.ini]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Sphere 101'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Chapter 1]] ''(Numbers, DEFNAME, ITEMDEF, CHARDEF)''&lt;br /&gt;
* [[Chapter 2]] ''(Sphere files explained)''&lt;br /&gt;
* [[Chapter 3]] ''(Scripting NPC's and items, Cool commands)''&lt;br /&gt;
* [[Chapter 4]] ''(Objects, operators, speech)''&lt;br /&gt;
* [[Chapter 5]] ''(Tags, Vars, Locals, Functions)''&lt;br /&gt;
* [[Chapter 6]] ''(LINKs, TIMERs, TARGETs)''&lt;br /&gt;
* [[Chapter 7]] ''(Loops and powerful functions)''&lt;br /&gt;
* [[Chapter 8]] ''(SKILLMENUs, MENUs, Gumps)''&lt;br /&gt;
* [[Chapter 9]] ''(Events)''&lt;br /&gt;
* [[Chapter 10]] ''(String Handling)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''Extra Tutorials'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Common Mistakes|Common Mistakes Explained]] ''(A revision of Maximus's tutorial on the forums, and continuation of Taran's Misconceptions tutorial)''&lt;br /&gt;
* [[Internet and Sphere]] ''(And how to make the right use of them)''&lt;br /&gt;
* [[Languages Tutorial]] ''(How to script your own language system)''&lt;br /&gt;
* [[Making your own Skills]] ''(How to make and customize your skill)''&lt;br /&gt;
* [[Mul Patching Tutorial|Nazghul's Mul Patching Tutorial]] [http://sorea.profitux.cz/patching/ external link] ''(A document about mul patching and customizing your server)''&lt;br /&gt;
* [[Overriding Hardcoded Commands]] ''(How to override hardcoded commands and functions)''&lt;br /&gt;
* [[Scheduled Reboot]] ''(How to schedule system reboots)''&lt;br /&gt;
* [[Using MySQL]] ''(How to use MySQL)''&lt;br /&gt;
* [[Bitwise Operations]] ''(How to work with FLAGS/ATTR)''&lt;br /&gt;
* [[Script Debugging]] ''(How to fix your scripts)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
			'''IMPORTANT LINKS'''&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [https://github.com/Sphereserver SphereServer Official Github]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Download Nightly Builds] ''(Plus! Extra downloads, like tools and scripts!)''&lt;br /&gt;
* [https://github.com/Sphereserver/Source-X/blob/master/Changelog.txt SphereX Changelog] | [https://github.com/Sphereserver/Source/blob/master/changelog.txt 56d Changelog]&lt;br /&gt;
* [https://discord.gg/BZj2fEA Join us at Discord] ''(We will solve most of your doubts over there)''&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:#a7bcdc; color:#000; min-width:650px; padding:1px; text-align:center; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
'''Reference Compendium'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;min-width:650px; width:100%;&amp;quot;&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-right:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:33%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Definitions|'''Definitions''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;		&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[CHARDEF|Characters]]&lt;br /&gt;
* [[DIALOG|Dialogs]]&lt;br /&gt;
* [[EVENTS|Events]]&lt;br /&gt;
* [[ITEMDEF|Items]]&lt;br /&gt;
* [[MENU|Menus]]&lt;br /&gt;
* [[REGIONRESOURCE|Region Resources]]&lt;br /&gt;
* [[REGIONTYPE|Region Types]]&lt;br /&gt;
* [[AREADEF|Regions]]&lt;br /&gt;
* [[ROOMDEF|Rooms]]&lt;br /&gt;
* [[SKILLCLASS|Skill Classes]]&lt;br /&gt;
* [[SKILLMENU|Skill Menus]]&lt;br /&gt;
* [[SKILL|Skills]]&lt;br /&gt;
* [[SPAWN|Spawn Groups]]&lt;br /&gt;
* [[SPELL|Spells]]&lt;br /&gt;
* [[TYPEDEF|Types]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;/div&amp;gt;&lt;br /&gt;
	&amp;lt;div style=&amp;quot;border-left:1px solid #a7bcdc; float:left; height:100%; margin-right:-1px; width:67%;&amp;quot;&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Objects|'''Objects''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[Accounts]]&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
* [[Database]]&lt;br /&gt;
* [[Files]]&lt;br /&gt;
* [[GM Pages]]&lt;br /&gt;
* [[Items]]&lt;br /&gt;
** ''[[Special Items]]''&lt;br /&gt;
* [[Map Points]]&lt;br /&gt;
* [[Parties]]&lt;br /&gt;
* [[Regions]]&lt;br /&gt;
* [[Rooms]]&lt;br /&gt;
* [[Sectors]]&lt;br /&gt;
* [[Server]]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;border-bottom:1px solid #a7bcdc; color:#a7bcdc; font-size:18px; padding-left:10px;&amp;quot;&amp;gt;&lt;br /&gt;
[[:Category:Scripts|'''Scripts''']]&lt;br /&gt;
		&amp;lt;/div&amp;gt;&lt;br /&gt;
		&amp;lt;div style=&amp;quot;padding:0px 0px 5px 10px;&amp;quot;&amp;gt;&lt;br /&gt;
* [[:Category:Functions|Functions and Triggers]]&lt;br /&gt;
* [[:Category:Variables|General Functions, Properties and References]]&lt;br /&gt;
* [[Intrinsic Functions]]&lt;br /&gt;
* [[:Category:Statements|Statements]]&lt;br /&gt;
* [[:Category:Triggers|Triggers]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
.&lt;br /&gt;
==Sphere 3rd Party Tools==&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;uid=603 Axis II] - GM Tool for Sphere that will allow you to place objects in-game, spawns, traveling and many other useful functions for shard admins and GMs.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=3 vSCP] - vSCP is the most complete and up-to-date syntax editor for sphere scripting. It does contain syntax highlighting, autocomplete, folding markers to specify blocks of code that can expand or collapse, bookmarks, autoindent, find/replace/gotoline, help guide for all the sphere elements added to your code, and more! &lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=2 vServerLauncher] - Install and run the latest build of sphereserver in a few clicks with vServerLauncher. It's pretty quick and simple!&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=5 SphereService] - Relaunch SphereSvr.exe everytime it closes/crashes. Automatically runs at windows startup and works in a silent mode minimized to Tray.&lt;br /&gt;
* [http://forum.spherecommunity.net/sshare.php?srt=4&amp;amp;prj=4 vCrypter] - Type the client version and the tool will calculate the correct UO login keys for classic or enhanced clients.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Articles==&lt;br /&gt;
&lt;br /&gt;
* [[Armor Calculation]]&lt;br /&gt;
* [[Client Changes]]&lt;br /&gt;
* [[Common Scripting Misconceptions]]&lt;br /&gt;
* [[Custom Object Properties]]&lt;br /&gt;
* [[Error Codes]]&lt;br /&gt;
* [[Experience System]]&lt;br /&gt;
* [[How Combat Works]]&lt;br /&gt;
* [[Occam's Razor]]&lt;br /&gt;
* [[Optimization|Optimization Theory]]&lt;br /&gt;
* [[Override TAGs]]&lt;br /&gt;
* [[Revisions Changelog]]&lt;br /&gt;
* [[Sendpacket]]&lt;br /&gt;
* [[Skill Gain Theory]]&lt;br /&gt;
* [[The Process of Scripting]]&lt;br /&gt;
* [[Building Component Reference]]&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to:'''&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|XuN, Nolok, Ben, and Drk]], for their hard work on the X branch taking Sphere into the next decade.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Cloud_Br, Ellessar, Jdog, Lord Zerofiz, Mordaunt, Nazghul-ll, RanXerox, Rattlehead, Sandman, Sharlenwar, ShiryuX, thelegbra, Maximus, WarAngel and Valios]], for helping to add content.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Daleth]], for writing the Sphere Reference Project, and [[WhoIsWho|Mordaunt]] for converting it to .chm format.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Tracker]], for writing the Sphere 56 Tracking Changes in Sphereserver.net&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Taran]], for writing the original and now famous Sphere Scripting for Dummies tutorials, and [[WhoIsWho|MrSugarCube]] for bringing it up-to-date directly from source.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Khaos, Ranxerox, Shiryux, Furio, Radiant, Vjaka, Nazghul-ll, Ellessar, Torfo, Shadow Dragon, MrSugarCube and coruja747]] for continuing to develop Sphere into a powerful and very customizable Ultima Online emulator.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Crius]], for providing hosting for the original SphereWiki, and [[WhoIsWho|Torfo]] for providing the current hosting.&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
* [[Useful Links]] ''(An ongoing list of useful links for community members)''&lt;br /&gt;
* [http://www.spherecommunity.net/ Official SphereServer Website]&lt;br /&gt;
* [https://forum.spherecommunity.net/sshare.php?srt=4 Nightly builds]&lt;br /&gt;
* [http://nightly.prerelease.sphere.torfo.org/ Nightly builds - OUTDATED, use the link above]&lt;br /&gt;
* [http://spherepack.codeplex.com/ Sphere Community Pack 2.0]&lt;br /&gt;
* [http://uo.torfo.org/packetguide/ Jerrith's UO Packet Guide]&lt;br /&gt;
* [http://uo.torfo.org/packetguideKR/ Wyatt&amp;amp;Kons's UOKR Packet Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Navigation]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Script_Pack&amp;diff=8032</id>
		<title>Script Pack</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Script_Pack&amp;diff=8032"/>
				<updated>2022-11-03T00:25:52Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Script pack for Sphere X version (recommended) [https://github.com/Sphereserver/Scripts-X Github] [https://github.com/Sphereserver/Scripts-X/archive/refs/heads/main.zip File]&lt;br /&gt;
&lt;br /&gt;
Script pack for Sphere 56d version [https://github.com/Sphereserver/Scripts Github] [https://github.com/Sphereserver/Scripts/archive/refs/heads/master.zip File]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Script_Pack&amp;diff=8031</id>
		<title>Script Pack</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Script_Pack&amp;diff=8031"/>
				<updated>2022-11-03T00:24:40Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Script pack for Sphere X version [https://github.com/Sphereserver/Scripts-X Github] [https://github.com/Sphereserver/Scripts-X/archive/refs/heads/main.zip File]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Special_Items&amp;diff=7939</id>
		<title>Special Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special_Items&amp;diff=7939"/>
				<updated>2022-05-07T23:07:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Special_Items}}&lt;br /&gt;
&lt;br /&gt;
Certain types of items have extended functionality, and therefore have additional properties, functions or references to the ones already listed on the [[Items]] page. The following sections describe what these are.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Multis==&lt;br /&gt;
Multis have a TYPE t_multi, t_multi_custom or t_ship. These are multi-piece items that are usually stored in the client's multi.mul file, but are only considered to be one item to both the server and client (so when you approach a castle, there is a significant reduction in lag since the server doesn't have to tell the client to display thousands of wall pieces).&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all multi properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[COMP]] || R || Gets the number of components defined in the [[ITEMDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[COMP]]''.n.key''' || R || Gets the KEY (ID,DX,DY,DZ,D) of the nth component defined in the [[ITEMDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTICREATE]] ''owner_uid'' || W || When a multi is created via SERV.[[NEWITEM]], this function must be used to initialise the multi-region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Customizable Multis==&lt;br /&gt;
Customizable multis are represented by the TYPE of t_multi_custom. These are designed to be used with the AOS House Designer tool that is present since the 4.0.0 series of UO clients.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[DESIGNER]] || R || Gets the [[Characters|character]] currently modifying the house design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all custom multi properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ADDITEM]] ''item_id, dx, dy, dz'' || W || Adds an item to the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDMULTI]] ''multi_id, dx, dy, dz'' || W || Adds a multi to the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEAR]] || W || Removes all items from the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMMIT]] || W || Commits all changes that have been made to the house design, updating the state of the building.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]] || R || Gets the number of components in the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[CUSTOMIZE]] ''character_uid'' || W || Enters the building into edit mode for the specified character (or SRC).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESIGN]]''.n.KEY'' || R || Gets a property (ID,DX,DY,DZ,D,FIXTURE) from the nth component in the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDITAREA]] || R || Gets the designable area rectangle of the multi (left,top,right,bottom)&lt;br /&gt;
|-&lt;br /&gt;
| [[ENDCUSTOMIZE]] || W || Exits the current designer from edit mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXTURES]] || R || Gets the number of fixtures in the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEITEM]] ''item_id, dx, dy, dz'' || W || Removes an item from the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESET]] || W || Resets the house design back to the house foundation.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESYNC]] ''character_uid'' || W || Resends the current building state to the specified character (or SRC).&lt;br /&gt;
|-&lt;br /&gt;
| [[REVERT]] || W || Undoes all of the changes made to the house design since the last commit.&lt;br /&gt;
|-&lt;br /&gt;
| [[REVISION]] || R || Gets the revision number of the house design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Ships==&lt;br /&gt;
Ships have the TYPE t_ship, and are another extended version of multis that are designed to be used to sail around the world.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[HATCH]] || R || Gets the ship's [[Items|hatch]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TILLER]] || R || Gets the ship's [[Items|tiller]].&lt;br /&gt;
|-&lt;br /&gt;
| [[PLANK]]''.n'' || R || Gets the nth ship [[Items|plank]]. (zero-based)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all ship properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[PLANKS]] || R || Gets the number of planks on the ship.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPANCHORDROP]] || W || Drops the ship's anchor, preventing it from moving.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPANCHORRAISE]] || W || Raises the ship's anchor, allowing it to move.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPBACK]] || W || Begins moving the ship backwards.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPBACKLEFT]] || W || Begins moving the ship backwards and to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPBACKRIGHT]] || W || Begins moving the ship backwards and to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPDOWN]] || W || Begins moving the ship downards, if ATTR_MAGIC is set.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPDRIFTLEFT]] || W || Begins moving the ship to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPDRIFTRIGHT]] || W || Begins moving the ship to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFACE]] ''direction'' || W || Sets the direction of the ship.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFORE]] || W || Begins moving the ship forwards.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFORELEFT]] || W || Begins moving the ship forwards and to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFORERIGHT]] || W || Begins moving the ship forwards and to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPGATE]] ''location'' || W || Moves the entire ship and its contents to a specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPLAND]] || W || Moves the ship to ground level, if ATTR_MAGIC is set.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPMOVE]] ''direction'' || W || Begins moving the ship in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]].TILES || R || Gets the number of tiles that ths ship moves in one step.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]].PERIOD || R || Gets the length of time between each step, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSTOP]] || W || Stops the ship.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPTURN]] || W || Turns the ship to face the opposite direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPTURNLEFT]] || W || Rotates the ship to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPTURNRIGHT]] || W || Rotates the ship to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPUP]] || W || Begins moving the ship upwards, if ATTR_MAGIC is set.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Maps==&lt;br /&gt;
The TYPEs t_map and t_map_blank are used to represent maps. These display a map to the player when used, that can be marked with a series of pins (markers) to plot a route.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all map properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[PIN]]''.n'' &amp;lt;br /&amp;gt; [[PIN]] ''x, y'' || RW || Gets the position of the ''nth'' pin (zero-based), or adds a pin to the map at the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]],[[MORE1L]] || RW || Gets the top left coordinates (x,y) of the area displayed on t_map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]],[[MORE2L]] || RW || Gets the bottom right coordinates (x,y) of the area displayed on t_map.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Messages / Books==&lt;br /&gt;
Messages (t_message) and books (t_book) possess a range of properties and functions that are used to store their title, author and body text.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all message properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[AUTHOR]] || RW || Gets or sets the author of the message.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]]''.n'' || RW || Gets the nth line of text from the message, or appends a new line of text to the message.&lt;br /&gt;
|-&lt;br /&gt;
| [[ERASE]] ''page_num'' || W || Removes all lines of text from the message, or if a page number (one-based) if supplied erases just a single line.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]]''.n'' || W || Sets the text of the nth single line of the message. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGES]] || R || Gets the number of lines of text in the message.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the title of message.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Communication Crystals==&lt;br /&gt;
Communication crystals have the TYPE of t_comm_crystal.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all communication crystal properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[SPEECH]] ''-/+speech_defname'' || RW || Gets a list of attached SPEECH blocks, or adds to or removes from the attached speech..&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guild/Town Stones==&lt;br /&gt;
Guild and Town stones are defined by the types t_stone_guild and t_stone_town. Whilst a lot of functionality has been moved into the script pack, there are still some special properties, functions and references that can be used.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GUILD]]''.n || R || Gets the nth linked [[#Guild.2FTown_Members|guild or town]]. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDFROMUID]]''stone_uid || R || Gets the linked [[#Guild.2FTown_Members|guild or town]] with a specified UID.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMBER]]''.n || R || Gets the nth member of the [[#Guild.2FTown_Members|guild or town]]. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMBERFROMUID]].''character_uid || R || Gets the [[#Guild.2FTown_Members|member]] of the guild with a specified UID.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all guild/town stone properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ABBREV]]  || RW || Gets or sets the guild/town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[ABBREVIATIONTOGGLE]] || R || Returns one of the ''STONECONFIG_VARIOUSNAME_*'' defnames depending on whether SRC has their abbreviation showing or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALIGN]] || RW || Gets or sets the alignment of the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALIGNTYPE]] || R || Returns the name of the guild or town's alignment.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLGUILDS]] ''flags, command'' || W || Performs the given comamnd on all linked guilds or towns based on flags. (0 = All, 1 = War Declared by 'Us' only, 2 = War Declared by 'Them' only, 3 = War Declayed by both)&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMEMBERS]] ''priv, command'' || W || Performs the given command on all guild or town members with the specified privelege level. (-1 = All)&lt;br /&gt;
|-&lt;br /&gt;
| [[APPLYTOJOIN]] ''character_uid'' || W || Adds a character as a candidate to the guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHANGEALIGN]] ''alignment'' || W || Changes the guild or town alignment.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECLAREPEACE]] ''stone_uid'' || W || Declares peace towards another guild or town.&lt;br /&gt;
|- &lt;br /&gt;
| [[DECLAREWAR]] ''stone_uid'' || W || Declares war towards another guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[ELECTMASTER]] || W || Selects a new guild or town master based on which member has the most votes.&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]].COUNT || R || Gets the number linked guilds or towns.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVITEWAR]] ''stone_uid, who_declared'' || W || Invites another guild or town to go to war (''who_declared'', 0 = They declared, 1 = We declared)&lt;br /&gt;
|-&lt;br /&gt;
| [[JOINASMEMBER]] ''character_uid'' || W || Adds a character as a full member of the guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOYALTO]] || R || Returns the name of the guild or town member that SRC has declared fealty to.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTER]] || R || Returns the name of the guild or town master.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTERGENDERTITLE]] || R || Returns the gender of the guild or town mastser.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTERTITLE]] || R || Returns the title of the guild or town master.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTERUID]] || RW || Gets the UID of the guild/town master, or sets it to the UID of a new master.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMBER]].COUNT ''priv'' || R || Gets the number of members in the guild/town with at least the given privileges (or all if not supplied).&lt;br /&gt;
|-&lt;br /&gt;
| [[RESIGN]] ''character_uid'' || W || Removes a character from the guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOGGLEABBREVIATION]] ''character_uid'' || W || Toggles the display of guild/town abbreviation for a member or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBPAGE]] || RW || Gets or sets the guild or town's webpage.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARTER]]''.n'' || EW || Gets or sets the nth line of the guild/town charter. (zero-based)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guild/Town Members==&lt;br /&gt;
When accessing a member of a guild or town via the [[MEMBER]].x,r [[MEMBERFROMUID]].uid, [[GUILD]].x, or [[GUILDFROMUID]].uid references, you access a special &amp;quot;Guild/Town Member&amp;quot; object which has specific properties, references and functions available. If you attempt to access something that doesn't exist in any of the following tables then the command is 'redirected' to the actual character or item the member object is linked to (so something like ''&amp;amp;lt;MEMBER.x.STR&amp;amp;gt;'' would work because the STR property exists on the [[Characters|character]]).&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all guild/town member properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
====Character Members====&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;
| [[ACCOUNTGOLD]]  || RW || Gets or sets the amount of gold the member has in their guild/town account.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCANDIDATE]] || R || Returns 1 if the member is a candidate of the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMASTER]] || R || Returns 1 if the member is a guild/town master.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOYALTO]] || RW || Gets or sets the UID of who the member has declared fealty towards.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIV]] || RW || Gets or sets the member's privilege level within the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVNAME]] || R || Returns the name of the member's privilege level within the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the member's title within the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWABBREV]] || RW || Gets or sets whether or not the member's abbreviation is shown.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Item Members====&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;
| [[ISENEMY]] || R || Returns 1 if the other guild/town is considered an enemy.&lt;br /&gt;
|-&lt;br /&gt;
| [[THEYALLIANCE]]  || RW || Gets or sets whether or not the other guild/town has declared an alliance with the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[THEYWAR]]  || RW || Gets or sets whether or not the other guild/town has declared war.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEALLIANCE]]  || RW || Gets or sets whether or not the guild/town has declared an alliance with the other guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEWAR]]  || RW || Gets or sets whether or not the guild/town has declared war with the other guild/town.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Containers==&lt;br /&gt;
Container items (backpacks, bankboxes, bags, etc) can be used to hold other items. These items have the [[TYPE]] of t_container.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] from inside the container. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found inside the container with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found inside the container with the matching [[TYPE]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all custom multi properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[COUNT]] || R || Returns the number of items inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DELETE]] ''nth'' || W || Deletes the nth item from inside the container. (1-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[EMPTY]] || W || Deletes all items inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items inside the container, including subcontainers.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the total weight of the container and its contained items.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPEN]] || W || Opens the container, for SRC to view its contents.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside the container, including subcontainers.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found inside the container, including subcontainers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Vendable Items==&lt;br /&gt;
When an item has value, either explicitly in the ITEMDEF's [[VALUE]] property or implicity in the ITEMDEF's [[RESOURCES]] property, it is considered a &amp;quot;Vendable Item&amp;quot; that can be sold on vendors.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all vendable item properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[PRICE]] || RW || Gets or sets the price of the item. (affect only the sell/buy price on player vendor. NPC use the value)&lt;br /&gt;
|-&lt;br /&gt;
| [[QUALITY]] || RW || Gets or sets the quality of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Special_Items&amp;diff=7938</id>
		<title>Special Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special_Items&amp;diff=7938"/>
				<updated>2022-05-07T23:06:47Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Special_Items}}&lt;br /&gt;
&lt;br /&gt;
Certain types of items have extended functionality, and therefore have additional properties, functions or references to the ones already listed on the [[Items]] page. The following sections describe what these are.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Multis==&lt;br /&gt;
Multis have a TYPE t_multi, t_multi_custom or t_ship. These are multi-piece items that are usually stored in the client's multi.mul file, but are only considered to be one item to both the server and client (so when you approach a castle, there is a significant reduction in lag since the server doesn't have to tell the client to display thousands of wall pieces).&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all multi properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[COMP]] || R || Gets the number of components defined in the [[ITEMDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[COMP]]''.n.key''' || R || Gets the KEY (ID,DX,DY,DZ,D) of the nth component defined in the [[ITEMDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MULTICREATE]] ''owner_uid'' || W || When a multi is created via SERV.[[NEWITEM]], this function must be used to initialise the multi-region.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Customizable Multis==&lt;br /&gt;
Customizable multis are represented by the TYPE of t_multi_custom. These are designed to be used with the AOS House Designer tool that is present since the 4.0.0 series of UO clients.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[DESIGNER]] || R || Gets the [[Characters|character]] currently modifying the house design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all custom multi properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ADDITEM]] ''item_id, dx, dy, dz'' || W || Adds an item to the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDMULTI]] ''multi_id, dx, dy, dz'' || W || Adds a multi to the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEAR]] || W || Removes all items from the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMMIT]] || W || Commits all changes that have been made to the house design, updating the state of the building.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPONENTS]] || R || Gets the number of components in the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[CUSTOMIZE]] ''character_uid'' || W || Enters the building into edit mode for the specified character (or SRC).&lt;br /&gt;
|-&lt;br /&gt;
| [[DESIGN]]''.n.KEY'' || R || Gets a property (ID,DX,DY,DZ,D,FIXTURE) from the nth component in the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDITAREA]] || R || Gets the designable area rectangle of the multi (left,top,right,bottom)&lt;br /&gt;
|-&lt;br /&gt;
| [[ENDCUSTOMIZE]] || W || Exits the current designer from edit mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXTURES]] || R || Gets the number of fixtures in the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEITEM]] ''item_id, dx, dy, dz'' || W || Removes an item from the house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESET]] || W || Resets the house design back to the house foundation.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESYNC]] ''character_uid'' || W || Resends the current building state to the specified character (or SRC).&lt;br /&gt;
|-&lt;br /&gt;
| [[REVERT]] || W || Undoes all of the changes made to the house design since the last commit.&lt;br /&gt;
|-&lt;br /&gt;
| [[REVISION]] || R || Gets the revision number of the house design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Ships==&lt;br /&gt;
Ships have the TYPE t_ship, and are another extended version of multis that are designed to be used to sail around the world.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[HATCH]] || R || Gets the ship's [[Items|hatch]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TILLER]] || R || Gets the ship's [[Items|tiller]].&lt;br /&gt;
|-&lt;br /&gt;
| [[PLANK]]''.n'' || R || Gets the nth ship [[Items|plank]]. (zero-based)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all ship properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[PLANKS]] || R || Gets the number of planks on the ship.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPANCHORDROP]] || W || Drops the ship's anchor, preventing it from moving.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPANCHORRAISE]] || W || Raises the ship's anchor, allowing it to move.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPBACK]] || W || Begins moving the ship backwards.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPBACKLEFT]] || W || Begins moving the ship backwards and to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPBACKRIGHT]] || W || Begins moving the ship backwards and to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPDOWN]] || W || Begins moving the ship downards, if ATTR_MAGIC is set.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPDRIFTLEFT]] || W || Begins moving the ship to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPDRIFTRIGHT]] || W || Begins moving the ship to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFACE]] ''direction'' || W || Sets the direction of the ship.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFORE]] || W || Begins moving the ship forwards.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFORELEFT]] || W || Begins moving the ship forwards and to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPFORERIGHT]] || W || Begins moving the ship forwards and to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPGATE]] ''location'' || W || Moves the entire ship and its contents to a specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPLAND]] || W || Moves the ship to ground level, if ATTR_MAGIC is set.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPMOVE]] ''direction'' || W || Begins moving the ship in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]].TILES || R || Gets the number of tiles that ths ship moves in one step.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSPEED]].PERIOD || R || Gets the length of time between each step, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPSTOP]] || W || Stops the ship.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPTURN]] || W || Turns the ship to face the opposite direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPTURNLEFT]] || W || Rotates the ship to its left.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPTURNRIGHT]] || W || Rotates the ship to its right.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHIPUP]] || W || Begins moving the ship upwards, if ATTR_MAGIC is set.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Maps==&lt;br /&gt;
The TYPEs t_map and t_map_blank are used to represent maps. These display a map to the player when used, that can be marked with a series of pins (markers) to plot a route.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all map properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[PIN]]''.n'' &amp;lt;br /&amp;gt; [[PIN]] ''x, y'' || RW || Gets the position of the ''nth'' pin (zero-based), or adds a pin to the map at the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]],[[MORE1L]] || RW || Gets the top left coordinates (x,y) of the area displayed on t_map.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]],[[MORE2L]] || RW || Gets the bottom right coordinates (x,y) of the area displayed on t_map.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Messages / Books==&lt;br /&gt;
Messages (t_message) and books (t_book) possess a range of properties and functions that are used to store their title, author and body text.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all message properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[AUTHOR]] || RW || Gets or sets the author of the message.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]]''.n'' || RW || Gets the nth line of text from the message, or appends a new line of text to the message.&lt;br /&gt;
|-&lt;br /&gt;
| [[ERASE]] ''page_num'' || W || Removes all lines of text from the message, or if a page number (one-based) if supplied erases just a single line.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]]''.n'' || W || Sets the text of the nth single line of the message. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGES]] || R || Gets the number of lines of text in the message.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the title of message.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Communication Crystals==&lt;br /&gt;
Communication crystals have the TYPE of t_comm_crystal.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all communication crystal properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[SPEECH]] ''-/+speech_defname'' || RW || Gets a list of attached SPEECH blocks, or adds to or removes from the attached speech..&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guild/Town Stones==&lt;br /&gt;
Guild and Town stones are defined by the types t_stone_guild and t_stone_town. Whilst a lot of functionality has been moved into the script pack, there are still some special properties, functions and references that can be used.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GUILD]]''.n || R || Gets the nth linked [[#Guild.2FTown_Members|guild or town]]. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDFROMUID]]''stone_uid || R || Gets the linked [[#Guild.2FTown_Members|guild or town]] with a specified UID.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMBER]]''.n || R || Gets the nth member of the [[#Guild.2FTown_Members|guild or town]]. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMBERFROMUID]].''character_uid || R || Gets the [[#Guild.2FTown_Members|member]] of the guild with a specified UID.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all guild/town stone properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ABBREV]]  || RW || Gets or sets the guild/town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[ABBREVIATIONTOGGLE]] || R || Returns one of the ''STONECONFIG_VARIOUSNAME_*'' defnames depending on whether SRC has their abbreviation showing or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALIGN]] || RW || Gets or sets the alignment of the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALIGNTYPE]] || R || Returns the name of the guild or town's alignment.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLGUILDS]] ''flags, command'' || W || Performs the given comamnd on all linked guilds or towns based on flags. (0 = All, 1 = War Declared by 'Us' only, 2 = War Declared by 'Them' only, 3 = War Declayed by both)&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMEMBERS]] ''priv, command'' || W || Performs the given command on all guild or town members with the specified privelege level. (-1 = All)&lt;br /&gt;
|-&lt;br /&gt;
| [[APPLYTOJOIN]] ''character_uid'' || W || Adds a character as a candidate to the guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHANGEALIGN]] ''alignment'' || W || Changes the guild or town alignment.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECLAREPEACE]] ''stone_uid'' || W || Declares peace towards another guild or town.&lt;br /&gt;
|- &lt;br /&gt;
| [[DECLAREWAR]] ''stone_uid'' || W || Declares war towards another guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[ELECTMASTER]] || W || Selects a new guild or town master based on which member has the most votes.&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILD]].COUNT || R || Gets the number linked guilds or towns.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVITEWAR]] ''stone_uid, who_declared'' || W || Invites another guild or town to go to war (''who_declared'', 0 = They declared, 1 = We declared)&lt;br /&gt;
|-&lt;br /&gt;
| [[JOINASMEMBER]] ''character_uid'' || W || Adds a character as a full member of the guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOYALTO]] || R || Returns the name of the guild or town member that SRC has declared fealty to.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTER]] || R || Returns the name of the guild or town master.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTERGENDERTITLE]] || R || Returns the gender of the guild or town mastser.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTERTITLE]] || R || Returns the title of the guild or town master.&lt;br /&gt;
|-&lt;br /&gt;
| [[MASTERUID]] || RW || Gets the UID of the guild/town master, or sets it to the UID of a new master.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMBER]].COUNT ''priv'' || R || Gets the number of members in the guild/town with at least the given privileges (or all if not supplied).&lt;br /&gt;
|-&lt;br /&gt;
| [[RESIGN]] ''character_uid'' || W || Removes a character from the guild or town.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOGGLEABBREVIATION]] ''character_uid'' || W || Toggles the display of guild/town abbreviation for a member or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBPAGE]] || RW || Gets or sets the guild or town's webpage.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARTER]]''.n'' || EW || Gets or sets the nth line of the guild/town charter. (zero-based)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Guild/Town Members==&lt;br /&gt;
When accessing a member of a guild or town via the [[MEMBER]].x,r [[MEMBERFROMUID]].uid, [[GUILD]].x, or [[GUILDFROMUID]].uid references, you access a special &amp;quot;Guild/Town Member&amp;quot; object which has specific properties, references and functions available. If you attempt to access something that doesn't exist in any of the following tables then the command is 'redirected' to the actual character or item the member object is linked to (so something like ''&amp;amp;lt;MEMBER.x.STR&amp;amp;gt;'' would work because the STR property exists on the [[Characters|character]]).&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all guild/town member properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&lt;br /&gt;
&lt;br /&gt;
====Character Members====&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;
| [[ACCOUNTGOLD]]  || RW || Gets or sets the amount of gold the member has in their guild/town account.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCANDIDATE]] || R || Returns 1 if the member is a candidate of the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMASTER]] || R || Returns 1 if the member is a guild/town master.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOYALTO]] || RW || Gets or sets the UID of who the member has declared fealty towards.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIV]] || RW || Gets or sets the member's privilege level within the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVNAME]] || R || Returns the name of the member's privilege level within the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the member's title within the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWABBREV]] || RW || Gets or sets whether or not the member's abbreviation is shown.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Item Members====&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;
| [[ISENEMY]] || R || Returns 1 if the other guild/town is considered an enemy.&lt;br /&gt;
|-&lt;br /&gt;
| [[THEYALLIANCE]]  || RW || Gets or sets whether or not the other guild/town has declared an alliance with the guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[THEYWAR]]  || RW || Gets or sets whether or not the other guild/town has declared war.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEALLIANCE]]  || RW || Gets or sets whether or not the guild/town has declared an alliance with the other guild/town.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEWAR]]  || RW || Gets or sets whether or not the guild/town has declared war with the other guild/town.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Containers==&lt;br /&gt;
Container items (backpacks, bankboxes, bags, etc) can be used to hold other items. These items have the [[TYPE]] of t_container.&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] from inside the container. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found inside the container with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found inside the container with the matching [[TYPE]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all custom multi properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[COUNT]] || R || Returns the number of items inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DELETE]] ''nth'' || W || Deletes the nth item from inside the container. (1-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[EMPTY]] || W || Deletes all items inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items inside the container, including subcontainers.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the total weight of the container and its contained items.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPEN]] || W || Opens the container, for SRC to view its contents.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item inside the container, including subcontainers.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found inside the container, including subcontainers.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Vendable Items==&lt;br /&gt;
When an item has value, either explicitly in the ITEMDEF's [[VALUE]] property or implicity in the ITEMDEF's [[RESOURCES]] property, it is considered a &amp;quot;Vendable Item&amp;quot; that can be sold on vendors.&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all vendable item properties and functions. If a function is marked as readable then it can return a value when used as &amp;amp;lt;KEY&amp;amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[PRICE]] || RW || Gets or sets the price of the item. (affect only the sell/buy price on player vendor)&lt;br /&gt;
|-&lt;br /&gt;
| [[QUALITY]] || RW || Gets or sets the quality of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=7909</id>
		<title>@GetHit</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@GetHit&amp;diff=7909"/>
				<updated>2021-10-07T12:17:26Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|@GetHit}}&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This trigger fires when a character receives damage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] being damaged.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] responsible for the damage.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || IO || The amount of damage being applied. (Before Slayer calulation if applicable)&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The type of damage being applied.&lt;br /&gt;
|-&lt;br /&gt;
| ARGN3 || IO || Hits will be fixed to this amount after the hit if the value is greater than it, default = maxhits.&lt;br /&gt;
|-&lt;br /&gt;
| LOCAL.ITEMDAMAGECHANCE || IO || Sets the chance for the hitted part of the body (Armor or shield, if any) to be damaged (Default: 40).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents damage from being applied.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@ItemDropOn_Self&amp;diff=7908</id>
		<title>@ItemDropOn Self</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@ItemDropOn_Self&amp;diff=7908"/>
				<updated>2021-10-05T22:44:00Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character drops an item inside another item (e.g. a backpack).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || The [[Items|item]] that is being dropped on to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|item]] being dropped on to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] dropping the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''No arguments are set for this trigger.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the item from being dropped on to the item. If no CONT is set, item will drop on ground.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@DropOn_Self&amp;diff=7907</id>
		<title>@DropOn Self</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@DropOn_Self&amp;diff=7907"/>
				<updated>2021-10-05T22:42:18Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when an item has an item dropped on to it. For example, when an item is placed inside a backpack this trigger will fire on the backpack.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Items]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|item]] being dropped on to the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Items|item]] that is being dropped on to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] dropping the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
''No arguments are set for this trigger.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the item from being dropped on to the item. If no CONT is set, item will drop on ground&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Attack&amp;diff=7906</id>
		<title>@Attack</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Attack&amp;diff=7906"/>
				<updated>2021-10-05T21:37:32Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when one character initiates an attack on another.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] initiating the attack.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] being attacked.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGN1]] || Threat being assigned to the target after starting the fight (Only for NPCs).&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGN2]] ||replace Ignore status. 1-&amp;gt;Force to ignore attacker 0-&amp;gt;Force to unignore attacker (X-ONLY) &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the character from attacking.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@Attack&amp;diff=7905</id>
		<title>@Attack</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@Attack&amp;diff=7905"/>
				<updated>2021-10-05T21:36:58Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when one character initiates an attack on another.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] initiating the attack.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] being attacked.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGN1]] || Threat being assigned to the target after starting the fight (Only for NPCs).&lt;br /&gt;
| [[ARGN2]] || (X-ONLY) replace Ignore status. 1-&amp;gt;Force to ignore attacker 0-&amp;gt;Force to unignore attacker&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents the character from attacking.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;br /&gt;
[[Category: Characters]]&lt;br /&gt;
[[Category: Combat]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Sectors&amp;diff=7904</id>
		<title>Sectors</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Sectors&amp;diff=7904"/>
				<updated>2021-09-16T01:07:39Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
The world is split into fixed-size sectors (by default, 64x64 tiles). Environmental settings (light, weather, etc) are stored on a per-sector basis. Accessing sectors in scripts can be accomplished using the SECTOR reference from a [[Characters|character]], [[Items|item]] or [[Map Points|map point]] object. The following table details the various properties of the sector object in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all sector properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ALLCHARS]] ''command'' || R || Executes ''command'' on all characters inside the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLCHARSIDLE]] ''command'' || R || Executes ''command'' on all disconnected characters inside the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLCLIENTS]] ''command'' || R || Executes ''command'' on all clients inside the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLITEMS]] ''command'' || R || Executes ''command'' on all items inside the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSLEEP]] || R || Returns 1 if the sector have all condition to sleep. (X ONLY)&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTS]] || R || Gets the number of clients in the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLDCHANCE]] || RW || Gets or sets the chance of snow for the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPLEXITY]] || R || Gets the number of characters in the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPLEXITY]].HIGH || R || Returns 1 if the sector has a high complexity. (less than 5 characters)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPLEXITY]].MEDIUM || R || Returns 1 if the sector has a medium complexity. (less than 10 characters)&lt;br /&gt;
|-&lt;br /&gt;
| [[COMPLEXITY]].LOW || R || Returns 1 if the sector has a low complexity. (10+ characters)&lt;br /&gt;
|-&lt;br /&gt;
| [[DRY]] || W || Sets the weather to dry.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDARK]] || R || Returns 1 if the light level in the sector is considered to be dark.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNIGHTTIME]] || R || Returns 1 if the local time of day is between 9pm and 7am.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSLEEPING]] || R || Returns 1 if the sector is sleeping. (X ONLY)&lt;br /&gt;
|-&lt;br /&gt;
| [[ITEMCOUNT]] || R || Returns the number of items in the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the light level for the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOCALTIME]] || R || Gets the local time of day, as a descriptive string.&lt;br /&gt;
|-&lt;br /&gt;
| [[LOCALTOD]] || R || Gets the local time of day, in minutes.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUMBER]] || R || Gets the index number of the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[RAIN]] || W || Sets the weather to raining.&lt;br /&gt;
|-&lt;br /&gt;
| [[RAINCHANCE]] || RW || Gets or sets the chance of rain for the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPAWN]] ''ALL'' || W || Resurrects dead NPC characters (not corpses). If ''ALL'' is provided then all sectors will be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''ALL'' || W || Restocks all NPCs in the sector. If ''ALL'' is provided then all sectors will be affected.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEASON]] || RW || Gets or sets the current season in the sector.&lt;br /&gt;
|-&lt;br /&gt;
| [[SNOW]] || W || Sets the weather to snowing.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEATHER]] || RW || Gets or sets the current weather in the sector.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Where_to_get_Sphere&amp;diff=7903</id>
		<title>Where to get Sphere</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Where_to_get_Sphere&amp;diff=7903"/>
				<updated>2021-08-20T01:45:01Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Where_to_get_Sphere}}&lt;br /&gt;
&lt;br /&gt;
There are two different sources for downloading Sphere: Pre-Releases and Automated Builds. Below is a summary of what each is to help you choose between them.&lt;br /&gt;
&lt;br /&gt;
==Prerelease Builds==&lt;br /&gt;
Prerelease builds are periodically released when the Sphere developers feel that enough progress has been made and are relatively happy with the stability of the build (i.e. the build actually runs!). Since there is not yet a &amp;quot;final&amp;quot; build of Sphere, the prereleases are the closest &amp;quot;Stable&amp;quot; thing that you can get.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Visit the [https://forum.spherecommunity.net/sshare.php?srt=4 Pre-releases] website to find the latest prerelease download for Sphere. There different Version but Sphere X is the more recent, more performant and the one where there some active dev.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This build is more than likely the one you want to download. ''If you are unsure, then review the [[#Which Do I Want?|Which Do I Want?]] section for more information.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Automated Builds==&lt;br /&gt;
on every modification an automated process will compile a new Sphere executable directly from the latest development code. If you want the latest cutting edge features that aren't available in the latest prerelease then you may want to consider using an automated build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Visit the [https://ci.appveyor.com/project/cbnolok/sphereserver-x/history SphereServer Nightly Automated Builds] website to download all latest automated build for Sphere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Before you rush over and download an automated build, take care of the following warnings:&lt;br /&gt;
* Since these builds are compiled directly from the latest development source code, it is not recommended that you use these at all on a live server unless you know exactly what you are doing and have performed thorough tests first!&lt;br /&gt;
* The Sphere development team will not provide any support for using these builds. If you encounter a problem then you will be completely on your own.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Which Do I Want?==&lt;br /&gt;
If you're unsure of which to use the best option is to simply use the latest prerelease. Automated builds are only intended to be used by advanced users or testers, who may want to test some of the newer features before they are released.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a brief comparison of the two build types:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''[[#Prerelease Builds|Prerelease Builds]]''' || '''[[#Automated Builds|Automated Builds]]'''&lt;br /&gt;
|-&lt;br /&gt;
| Support available in [https://discord.gg/NufqpAw]Discord or the Forum || No support available at all&lt;br /&gt;
|-&lt;br /&gt;
| Increased chance of stability || Decreased chance of stability&lt;br /&gt;
|-&lt;br /&gt;
| Compiled manually from a more stable code branch || Compiled automatically from the development code branch&lt;br /&gt;
|-&lt;br /&gt;
| Does not contain the very latest features and bugfixes || Contains the very latest features and bugfixes&lt;br /&gt;
|-&lt;br /&gt;
| Released periodically (sometimes months apart) || Released daily&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To summarise, the prerelease builds are supported and specifically released by the Sphere development team at appropriate times when it is felt that enough development work has been made for a new release to be worthwhile. Unless you urgently need an as-of-yet unreleased feature or bugfix there should be no reason for you, as an end-user, to want to download an automated build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''''Note:''''' ''If your only reason for choosing to use an automated Sphere build is that you don't want to wait for an official prerelease containing a new feature or bugfix then you should reconsider this decision. Whilst you may enjoy having the feature or bugfix in question, there is also an increased chance that some of the work has not been completed, or a new bug may have been introduced, which could consequently destabalise your server!''&lt;br /&gt;
&lt;br /&gt;
[[Category: Setting Up Sphere]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Installing_Sphere&amp;diff=7902</id>
		<title>Installing Sphere</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Installing_Sphere&amp;diff=7902"/>
				<updated>2021-08-20T01:36:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Installing_Sphere}}&lt;br /&gt;
==Windows==&lt;br /&gt;
&lt;br /&gt;
Start by downloading Sphere. See the [[Where to get Sphere]] page for download links. You should end up with two different zip files, one containing the Sphere executable and the other containing the [[Script Pack]].&lt;br /&gt;
&lt;br /&gt;
# Extract the SphereServer.zip file to wherever you want to run it from. I would recommend &amp;quot;c:\sphere&amp;quot;&lt;br /&gt;
# Extract Scripts.zip to the directory where you previously extracted the file in the previous step. Now you should have the directory scripts in &amp;quot;c:\sphere&amp;quot;.&lt;br /&gt;
# Create three new folders, one named &amp;quot;accounts&amp;quot;, another called &amp;quot;logs&amp;quot;, and the third one called &amp;quot;save&amp;quot;.&lt;br /&gt;
# Now, go to your &amp;quot;save&amp;quot; folder, recently created. And create an empty text file (I recommend using the Start Menu to access Notepad instead of &amp;quot;Right Click =&amp;gt; New&amp;quot;). Write an empty line and add &amp;quot;[EOF]&amp;quot; in the second one. Save the file as &amp;quot;spheredata.SCP&amp;quot; (not .txt).&lt;br /&gt;
# Copy this file four times an rename them as: spherestatics, spherechars.scp, spheremultis.scp and sphereworld.scp&lt;br /&gt;
# Now, [[Configuring_Sphere.ini|configure your sphere.ini]]. This is a must before running Sphere for the first time!&lt;br /&gt;
# Double Click on SphereSvr.exe to launch the Console. This black window is your server console from which you can enter commands.&lt;br /&gt;
# Create an Account for yourself. In the console, type in &amp;quot;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;account add USERNAME PASSWORD&amp;lt;/font&amp;gt;&amp;quot;. With whatever username and password you want. Then, type in &amp;quot;&amp;lt;font color=&amp;quot;darkred&amp;quot;&amp;gt;account USERNAME plevel 7&amp;lt;/font&amp;gt;&amp;quot; to grant your account Owner privileges.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you can go around your map and explore some parts of it. You can use the navigation bar on the left to read various tutorials to learn how to script and learn something about Sphere. After that, read the other articles and check the [[Main_Page#Reference Compendium|reference compendium]] if you need something special.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
===Preface===&lt;br /&gt;
Installing Sphere on a Linux box is not more difficult as doing this task on a Windows PC. Either way you will have to have basic knowledge about your operation system, and you should not rely on that you simply have to doubleclick like mad to get the beast up and running. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Even more, this tutorial will assume that you are using a shell on the linux box, and that you have root access. You do not trust your skills to type a command without mistakes, or no one will trust your knowledge enough to give you system administrator privileges on his Linux PC? Well, then - your busted. Go home, and play Solitaire on a neat little Windows box, ok? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, this tutorial will NOT cover the ways to get the necessary files onto the Linux server. If you cannot figure this out yourself - read the last sentence of the paragraph before. THIS IS NOT A LESSON &amp;quot;Linux for Dummies&amp;quot;! Do your homework, and learn. There are many books about Linux' basics, even E-Books you can download free of charge. Surfing to [http://www.linux.org http://www.linux.org] will be a good point to start. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One last word about syntax: LINUX commands and filenames are case sensitive! So if later on a file cannot be found it usually is because you typed something like &amp;quot;sphere.INI&amp;quot; instead of &amp;quot;sphere.ini&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And in this document lines in italics are denoting what you have to type into (or read from) the shell. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Preparations===&lt;br /&gt;
On the Linux box you will need a MySQL client installation. You do not need a server if you do not plan to use the database features, but Sphere will not start without the proper MySQL client libraries. Period. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You also need access to a Sphere prerelease FOR LINUX, the default script package for this version, and eventually additional libraries (libboost for recent releases). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Installation Step-By-Step===&lt;br /&gt;
'''1)''' As user root, create a user named 'sphere'. Set or create it's home directory (usually /home/sphere/), give it the correct owner and permissions: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 useradd -d /home/sphere sphere&lt;br /&gt;
 mkdir /home/sphere&lt;br /&gt;
 chown sphere /home/sphere&lt;br /&gt;
 chmod 700 /home/sphere&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''2)''' Copy the files from the Sphere LINUX package and the scriptpack into this newly created directory. Create all missing directories like &amp;quot;save&amp;quot;, &amp;quot;logs&amp;quot;, &amp;quot;accounts&amp;quot; as they are named in your sphere.ini and spheretables.scp. You should end up with a structure like this: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 /home/sphere --- spheresvr&lt;br /&gt;
                | sphere.ini&lt;br /&gt;
                | sphereCrypt.ini&lt;br /&gt;
                |-------------------- accounts/&lt;br /&gt;
                |-------------------- logs/&lt;br /&gt;
                |-------------------- muls/&lt;br /&gt;
                |-------------------- save/&lt;br /&gt;
                |-------------------- scripts/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''3)''' After copying all related files to their respective positions, make sure that they all have the correct permissions and ownerships. Still as root do: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cd ~sphere&lt;br /&gt;
 chown -R sphere *&lt;br /&gt;
 find . -type d | xargs chmod 0700&lt;br /&gt;
 find . -type f | xargs chmod 0600&lt;br /&gt;
 chmod 4700 spheresvr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''4)''' Still as root, print the shared library dependencies:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ldd spheresvr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
the output should be something like this: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 longbow:/home/sphere# ldd spheresvr&lt;br /&gt;
 libpthread.so.0 =&amp;gt; /lib/libpthread.so.0 (0x4001f000)&lt;br /&gt;
 libmysqlclient.so.15 =&amp;gt; /usr/lib/libmysqlclient.so.15 (0x40071000)&lt;br /&gt;
 libboost_regex-gcc-1_33_1.so =&amp;gt; /usr/lib/libboost_regex-gcc-1_33_1.so (0x40243000)&lt;br /&gt;
 libstdc++.so.6 =&amp;gt; /usr/lib/libstdc++.so.6 (0x402ea000)&lt;br /&gt;
 libm.so.6 =&amp;gt; /lib/libm.so.6 (0x403c9000)&lt;br /&gt;
 libgcc_s.so.1 =&amp;gt; /lib/libgcc_s.so.1 (0x403ef000)&lt;br /&gt;
 libc.so.6 =&amp;gt; /lib/libc.so.6 (0x403fa000)&lt;br /&gt;
 /lib/ld-linux.so.2 (0x40000000)&lt;br /&gt;
 libcrypt.so.1 =&amp;gt; /lib/libcrypt.so.1 (0x4051c000)&lt;br /&gt;
 libnsl.so.1 =&amp;gt; /lib/libnsl.so.1 (0x4054a000)&lt;br /&gt;
 libz.so.1 =&amp;gt; /usr/lib/libz.so.1 (0x40561000)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;LOOK FOR MISSING LIBRARIES!&amp;lt;/strong&amp;gt; If something is missing, just install it. You should know how to do. If it's just libboost what is missing, you have got this with the preparations. Copy it into /usr/lib/ and type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ldconfig&lt;br /&gt;
&lt;br /&gt;
===Test the Installation===&lt;br /&gt;
&lt;br /&gt;
It does matter if you start your test as user ''root'' or user ''sphere''... But setting the permissions of the spheresvr executable to 4700 forces it to always be started as it's owner, and if you followed the earlier instuctions, that owner is ''sphere''. So start it like this: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 cd ~sphere&lt;br /&gt;
 ./spheresvr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will get the usual startup yaddayadda, perhaps including some warnings such as: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 longbow:/home/sphere# ./spheresvr&lt;br /&gt;
 WARNING:(sphere.ini,587)'scripts/spherestatusbase.html' not found...&lt;br /&gt;
 ERROR:(sphere.ini,587)Can't open web page input 'spherestatusbase1.htm'&lt;br /&gt;
 Sphere Version 0.56b [Linux] by www.sphereserver.com, compiled at Sep 15 2006 (23:23:07)&lt;br /&gt;
 Signal handlers installed.&lt;br /&gt;
 Expansion maps supported: T2A, LBR, AOS, SE, ML&lt;br /&gt;
 ERROR:(spheretables.scp,59)Unable to open directory scripts/custom/&lt;br /&gt;
 ERROR:(spheretables.scp,59)DirList=-1 for 'scripts/custom/'&lt;br /&gt;
 Allocating map sectors: 0=7168 1=7168 2=900 3=1280 4=32761&lt;br /&gt;
 Indexing 211 scripts...&lt;br /&gt;
 Loading scripts/sphere_defs.scp&lt;br /&gt;
 [...]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally your Sphere will tell you something like: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [...]&lt;br /&gt;
 Loading save/spheredata...&lt;br /&gt;
 Loading save/spherestatics...&lt;br /&gt;
 Loading save/sphereworld...&lt;br /&gt;
 Loading save/spherechars...&lt;br /&gt;
 166 Objects accounted for&lt;br /&gt;
 Option flags: CommandSysmsgs + NoHouseMuteSpeech&lt;br /&gt;
 Experimental flags: DiagonalWalkCheck + ScriptsReturnStrings + NewTriggersEnable + NewPositionChecks + WalkCheck + ScriptProfiler + SizeOptimize&lt;br /&gt;
 Admin=me@my.email.com, URL=www.myshard.com, Lang=English, TZ=0&lt;br /&gt;
 Startup complete. items=0, chars=0&lt;br /&gt;
 Creating thread.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can safely ignore script warnings and errors regarding missing web pages. But if the sphere issues other errors, or terminates, dont just stare at the error number like the rabbit stares at the snake: The text immediately above the error will tell you what's wrong. So fix it.  For example, after starting the server, if you see errors like:&lt;br /&gt;
&lt;br /&gt;
 16:55:FATAL:Segmentation fault 16:55:FATAL:Error Pri=1, Code=11, Desc='Segmentation fault', in CChar::CanMoveWalkTo() #1 &amp;quot;Check Valid Move&amp;quot;&lt;br /&gt;
&lt;br /&gt;
...the filesystem ACLs may be wrong, specifically the ACLs on the UO mul and uop files in the UO client directory.  There are numerous solutions, but one way to fix this is to change the permissions on these files to 644.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But I digress.... Assuming no catestrophic failures, you are now in the sphere console and can issue the common commands (type '?' to get a list). So create an account, activate it, edit the login.cfg (or host details) on your windows box with the client installation to point to the address of the Linux box, and be the first to log in. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To stop the Sphere, type 'S' in the console, then 'x'. Linux will tell you something about deinstalling handlers and shutting down. But often it will just &amp;quot;hang&amp;quot; after this, not really terminating. Clear this situation by typing CTRL-c&lt;br /&gt;
&lt;br /&gt;
===Preparing for production===&lt;br /&gt;
Perhaps you closed your shell during the test. Then you should have noticed that the operating system killed your Sphere at the same moment. That's not a bug but wanted behaviour: Linux is a multi user os, and when a user logs out processes started by him shall not accidentally kept running. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But of course you will not be able to keep open the console all the time, at least if your Linux box can only be reached remotely, perhaps by ssh. If it's the main service running on the box, you should create a startup script what starts spheresvr in an endless loop, thus restarting it in the event it should crash. To do this, first install the 'screen' utility using the packet manager of your distribution. Then use the text editor of your choice and create a script like this: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 cd ~sphere&lt;br /&gt;
 while true; do&lt;br /&gt;
 screen -D -m /home/sphere/spheresvr&lt;br /&gt;
 sleep 30&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This way the server will be run in a virtual window to what you always can attach with 'screen -r'. Read the manpage for screen for more information.&lt;br /&gt;
&lt;br /&gt;
Then take it to the next level!  Perhaps create an /etc/init.d/sphereserver script to start, stop, or restart the server... then softlink that script in the various /etc/rc*.d/ directories so that the sphere server automatically starts when the linux server is rebooted... maybe setup a cron job to automatically rotate and archive the log files that sphere creates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==FreeBSD==&lt;br /&gt;
We currently have no guide for this OS. Anyway, the developers have posted a list of required stuff. Here is the list:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compiled on: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 FreeBSD freebsdvbox.fastwebnet.it 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With:&lt;br /&gt;
&lt;br /&gt;
 Using built-in specs.&lt;br /&gt;
 Target: i386-portbld-freebsd7.0&amp;lt;br /&amp;gt;&lt;br /&gt;
 Configured with: ./..//gcc-4.1-20071105/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=41 --libdir=/usr/local/lib/gcc-4.1.3 --with-gxx-include-dir=/usr/local/lib/gcc-4.1.3/include/c++/ --disable-rpath --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/gcc41 i386-portbld-freebsd7.0&lt;br /&gt;
 Thread model: posix&lt;br /&gt;
 gcc version 4.1.3 20071105 (prerelease)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Linked Against:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 libthr.so.3 =&amp;gt; /lib/libthr.so.3 (0x281f3000)&lt;br /&gt;
 libmysqlclient.so.15 =&amp;gt; /usr/local/lib/mysql/libmysqlclient.so.15 (0x28206000)&lt;br /&gt;
 libstdc++.so.6 =&amp;gt; /usr/lib/libstdc++.so.6 (0x28265000)&lt;br /&gt;
 libm.so.5 =&amp;gt; /lib/libm.so.5 (0x2835a000)&lt;br /&gt;
 libgcc_s.so.1 =&amp;gt; /lib/libgcc_s.so.1 (0x2836f000)&lt;br /&gt;
 libc.so.7 =&amp;gt; /lib/libc.so.7 (0x2837a000)&lt;br /&gt;
 libcrypt.so.4 =&amp;gt; /lib/libcrypt.so.4 (0x28476000)&lt;br /&gt;
 libz.so.4 =&amp;gt; /lib/libz.so.4 (0x2848f000)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you use this release, please check [http://www.sphereserver.net/index.php?showtopic=44153 this topic].&lt;br /&gt;
&lt;br /&gt;
[[Category: Setting Up Sphere]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=@SpellFail&amp;diff=7889</id>
		<title>@SpellFail</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=@SpellFail&amp;diff=7889"/>
				<updated>2021-03-30T14:23:55Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add New sphere X argument to the trigger&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This trigger fires when a character fails to cast a spell.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fires on:&lt;br /&gt;
* [[Characters]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
The following object references are explicitly available for this trigger:&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGO]] || The [[Items|item]] used to cast the spell (e.g. a wand or scroll).&lt;br /&gt;
|-&lt;br /&gt;
| [[I]] || The [[Characters|character]] failing to cast the spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[SRC]] || The [[Characters|character]] failing to cast the spell.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Arguments==&lt;br /&gt;
The following arguments are set for this trigger. If an argument is marked as &amp;quot;In&amp;quot; then a value will be passed in to the trigger, if an argument is marked as &amp;quot;Out&amp;quot; then it can be set to a value to affect Sphere's behaviour:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN1 || I || The spell that was being cast.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following arguments are use only in the X version:&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;
| '''Argument''' || '''In/Out''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ARGN2 || IO || The mana loss if the spell is failed.&lt;br /&gt;
|-&lt;br /&gt;
| local.tithingloss || IO || The tithing points loss if the spell is failed.&lt;br /&gt;
		 While both are writeable, they only works if  ManaLossFail or ReagentLossFail ( also for tithing points) are enabled in the sphere.ini&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Return Values==&lt;br /&gt;
The following return values are explicitly defined for this trigger:&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;
| '''Return Value''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Prevents normal fail behaviours (fail message, fizzle effect, reagent loss).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Triggers]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=7888</id>
		<title>Items</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Items&amp;diff=7888"/>
				<updated>2021-01-27T03:01:19Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add detail about new feature TImerF stop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Items}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
Generally speaking, there are two types of &amp;quot;things&amp;quot; in the game; characters and items. Compared to characters, items are very complex. Items have a number of different uses, for example a sword is an item that players can see and equip to increase the damage they can do in combat. Some items in the game can not be seen by the players, but they have as much impact on the player as their sword, for example, a memory item is equipped every time a player is under the effects of a spell. Some [[Special Items|special types of item]] also have additional properties that can be accessed via scripts. The following tables detail the various properties of items in SphereServer:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[CONT]] || RW || Gets or sets the [[Characters|character]] or [[Special Items#Containers|container item]] that the object is inside.  When an item's CONT is changed, it bypasses the typical behavior (for example, you can force an item to be &amp;quot;in&amp;quot; a container and bypass @dropon triggers, or force an item to be equipped to a player and bypass @equiptest and @equip triggers -- but be careful, because in this second scenario it may end up in an invalid layer.)&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the item is linked to.  Note, you can make circular LINK's, but a single item cannot be linked to more than one other item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[ROOM]] || R || Gets the [[Rooms|room]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the object is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the object is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF (Reference)|TYPEDEF]] || R || Gets the [[ITEMDEF]] that defines the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all item properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the item, the property from the [[ITEMDEF]] will be accessed instead.&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;
| [[ADDCIRCLE]] ''spell_circle'' || W || Adds all of the spells in the given Magery circle to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDSPELL]] ''spell_id'' || RW || Gets whether or not a spell exists in the spellbook, or adds a spell to the spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIM]] || RW || Overrides TDATA4 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMHUE]] || RW || Sets the color of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOANIMRENDER]] || RW || Sets the render mode of the effect when firing bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOCONT]] || RW || Sets the container UID or ID where to search for ammos for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDHIT]] || RW || Overrides the hit sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOSOUNDMISS]] || RW || Overrides the miss sound on weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMMOTYPE]] || RW || Overrides TDATA3 for bow/crossbow type weapons.&lt;br /&gt;
|-&lt;br /&gt;
| [[AMOUNT]] || RW || Gets the amount of items this icon represents (e.g. a pile of gold or any stacked item).&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTR]] || RW || Gets or sets the item's attribute flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] || W || Moves the item to SRC's backpack (triggering the ''you put the item in your pack'' message.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN]] || RW ||  Gets or Sets the can_flags (Setting can be only done in the Itemdef itself).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] ''point_or_uid'' || R || Returns 1 if SRC has line of sight to the item or character (uid) or point (location).&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags,point_or_uid'' || R || Returns 1 if SRC has line of sight to the item.  The ''flags'' are defined in the los_flags section of the sphere_defs.scp file and can be used to modify what tests take place.  The ''point_or_uid'' is an object or position that can be used to test line of sight to something other than SRC.  Note, the delimiter for FLAG values is ;&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARTAGS]] ''prefix'' || W || Removes all TAGs from the item that start with the given prefix.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the object's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''amount'' || W || Deducts an amount from the item, deleting it at 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTCONSUME]] ''resource_list'' || W || Deletes items from inside the container.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTGRID]] || RW || If in a container, gets or sets the grid number that the item occupies (in KR's grid view)&lt;br /&gt;
|-&lt;br /&gt;
| [[CONTP]] || RW || Gets or sets the position of the item within its container.&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''chance, type, source'' || W || If ''chance'' is greater than (Rand(maxhits*16)), inflicts  damage of ''type'' (the damage type flags are defined in the sphere_defs.scp file) upon the item.  You can optionally specify the ''source'' of the damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the item, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DECAY]] ''time'' || W || Sets the decay timer (in tenths of a second) for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPID]] || RW || Gets or sets the ID that the item will appear as to players.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || RW || Same as [[DISPID]], except it returns the ID as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and SRC.  If ''point_or_uid'' is used, SRC can be replaced with a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGCOLD]] || RW || Gets or sets the amount of cold damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGENERGY]] || RW || Gets or sets the amount of energy damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGFIRE]] || RW || Gets or sets the amount of fire damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DMGPOISON]] || RW || Gets or sets the amount of poison damage the weapon will give.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] || W || Drops the item to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Clones the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] || W || Equips the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the item or character's Z level to ground level (if items are on the ground, the top item's ''Z+HEIGHT'' is used).&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the item clockwise.&lt;br /&gt;
|-&lt;br /&gt;
| [[FRUIT]] || RW || Gets or sets the fruit that will be produced by the crops.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the height of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITPOINTS]] || RW || Gets or sets the number of hitpoints the item has.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || RW || Gets or sets the ID of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE and is within ''distance''.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its ITEMDEF.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAYER]] || RW || Gets or sets the layer that the item occupies when equipped (possible layers are defined in the sphere_defs.scp file).&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the maximum number of hitpoints the item can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this item to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the item's armour rating if it is clothing, armor, or a shield. This gets or sets a modifier for the item's damage if it is a weapon type.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1]] || RW || Gets or sets the MORE1 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1H]] || RW || Gets or sets the upper 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE1L]] || RW || Gets or sets the lower 4 bytes of the item's MORE1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2]] || RW || Gets or sets the MORE2 value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2H]] || RW || Gets or sets the upper 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MORE2L]] || RW || Gets or sets the lower 4 bytes of the item's MORE2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREM]] || RW || Gets or sets the MOREM value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREX]] || RW || Gets or sets the MOREX value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREY]] || RW || Gets or sets the MOREY value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREZ]] || RW || Gets or sets the MOREZ value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOREP]] || RW || Gets or sets the MOREP value for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.  Possible ''direction'' values are N,S,W, or E.  Note, you can combine directions (like:  MOVE SW 1) but nonsensical directions (like: MOVE WE 2) have the nonsense removed.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the object to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the object to a specific location (note, the AREADEF or ROOMDEF must have a P defined).&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the object's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the object's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] || W || Deletes the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] || W || Forces Sphere to update the tooltips for nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the object speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the object speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || Makes the object speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the item's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this object.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the item to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC. ''F'' makes the ''function'' available, and when added, the function name must be the 1st argument.  ''M'' allows you to place a ''multi'' item, in which case the multi number must be passed as an argument.  ''G'' forces the target to only be the ground.  ''W'' checks the criminal status of the player before (or after?) the target selection is made.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Schedules a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the item. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trigger_argtype, argument1, argument2, ...'' || R || Fires a custom trigger (trig_name), allowing you to define the behavior of the arguments (the types are defined under trigger_argtype in the sphere_defs.scp file).  The result of the trigger's RETURN value is returned.  For example:&lt;br /&gt;
 LOCAL.result=&amp;lt;TRIGGER @CustomTrigger,&amp;lt;DEF.tat_as_argn&amp;gt;,1,2,3&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPE]] || RW || Gets or sets the item type.  You can use built-in or custom [[TYPEDEF]]s as a value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] || W || Unequips the item and places it in SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the item to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the item to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USE]] ''check_los'' || W || Uses the item, as if SRC had double clicked it.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the item, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the item.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all item triggers. Click on the trigger name for more detailed information such as arguments and examples.&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Buy]] || Fires when the item is being bought from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Damage]] || Fires when the item receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Char]] || Fires when the item has been dropped on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Ground]] || Fires when the item has been dropped on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Item]] || Fires when the item is dropped on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Self]] || Fires when an item has been dropped on to this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DropOn_Trade]] || Fires when an item is being dropped on a Trade Window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when an item is having its colored changed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Equip]] || Fires when the item has been equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EquipTest]] || Fires when the item is about to be equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Ground]] || Fires when the item ihas been picked up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Pack]] || Fires when the item is picked up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Self]] || Fires when an item has been picked up from inside the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PickUp_Stack]] || Fires when the item is picked up from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Sell]] || Fires when the item is sold to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the object is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Step]] || Fires when a character steps on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Cancel]] || Fires when a target is cancelled from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Char]] || Fires when a character is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Ground]] || Fires when the ground is targeted from the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TargOn_Item]] || Fires when an item is targeted from this item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Timer]] || Fires when the item's timer expires.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when old-style tooltips are requested for the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UnEquip]] || Fires when the item is unequipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7887</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7887"/>
				<updated>2021-01-25T12:26:47Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add * char ont function stop&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in Experimental Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&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;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' || W || Turns the character to face a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character. (On X version wild character * is available for defining the function name or the argument)&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Where_to_get_Sphere&amp;diff=7886</id>
		<title>Where to get Sphere</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Where_to_get_Sphere&amp;diff=7886"/>
				<updated>2021-01-22T14:00:46Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Change broken link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Where_to_get_Sphere}}&lt;br /&gt;
&lt;br /&gt;
There are two different sources for downloading Sphere: Pre-Releases and Automated Builds. Below is a summary of what each is to help you choose between them.&lt;br /&gt;
&lt;br /&gt;
==Prerelease Builds==&lt;br /&gt;
Prerelease builds are periodically released when the Sphere developers feel that enough progress has been made and are relatively happy with the stability of the build (i.e. the build actually runs!). Since there is not yet a &amp;quot;final&amp;quot; build of Sphere 56b, the prereleases are the closest thing that you can get.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Visit the [https://forum.spherecommunity.net/sshare.php?srt=4 Pre-releases] website to find the latest prerelease download for Sphere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This build is more than likely the one you want to download. ''If you are unsure, then review the [[#Which Do I Want?|Which Do I Want?]] section for more information.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Automated Builds==&lt;br /&gt;
Every night an automated process will compile a new Sphere 56b executable directly from the latest development code. If you want the latest cutting edge features that aren't available in the latest prerelease then you may want to consider using an automated build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Visit the [https://ci.appveyor.com/project/cbnolok/sphereserver-x/history SphereServer Nightly Automated Builds] website to download all latest automated build for Sphere.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Before you rush over and download an automated build, take care of the following warnings:&lt;br /&gt;
* Since these builds are compiled directly from the latest development source code, it is not recommended that you use these at all on a live server unless you know exactly what you are doing and have performed thorough tests first!&lt;br /&gt;
* The Sphere development team will not provide any support for using these builds. If you encounter a problem then you will be completely on your own.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Which Do I Want?==&lt;br /&gt;
If you're unsure of which to use the best option is to simply use the latest prerelease. Automated builds are only intended to be used by advanced users or testers, who may want to test some of the newer features before they are released.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is a brief comparison of the two build types:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''[[#Prerelease Builds|Prerelease Builds]]''' || '''[[#Automated Builds|Automated Builds]]'''&lt;br /&gt;
|-&lt;br /&gt;
| Support available in the forums || No support available at all&lt;br /&gt;
|-&lt;br /&gt;
| Increased chance of stability || Decreased chance of stability&lt;br /&gt;
|-&lt;br /&gt;
| Compiled manually from a more stable code branch || Compiled automatically from the development code branch&lt;br /&gt;
|-&lt;br /&gt;
| Does not contain the very latest features and bugfixes || Contains the very latest features and bugfixes&lt;br /&gt;
|-&lt;br /&gt;
| Released periodically (sometimes months apart) || Released daily&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To summarise, the prerelease builds are supported and specifically released by the Sphere development team at appropriate times when it is felt that enough development work has been made for a new release to be worthwhile. Unless you urgently need an as-of-yet unreleased feature or bugfix there should be no reason for you, as an end-user, to want to download an automated build.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''''Note:''''' ''If your only reason for choosing to use an automated Sphere build is that you don't want to wait for an official prerelease containing a new feature or bugfix then you should reconsider this decision. Whilst you may enjoy having the feature or bugfix in question, there is also an increased chance that some of the work has not been completed, or a new bug may have been introduced, which could consequently destabalise your server!''&lt;br /&gt;
&lt;br /&gt;
[[Category: Setting Up Sphere]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7885</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7885"/>
				<updated>2021-01-17T02:20:04Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in Experimental Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&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;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW (R only on X)|| Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' || W || Turns the character to face a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7884</id>
		<title>Characters</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Characters&amp;diff=7884"/>
				<updated>2021-01-16T22:05:03Z</updated>
		
		<summary type="html">&lt;p&gt;Jhobean: Add detail of tenth of second on create field fos X&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|Characters}}&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
A character can be either a player or an NPC.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[Accounts|ACCOUNT]] || RW || Gets or sets the [[Accounts|account]] that the character belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACT]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that is related to the action the character is performing.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDCONT]]''.n'' || R || Gets the nth [[Items|item]] equipped to the character. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDID]]''.item_id'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDLAYER]]''.layer'' || R || Gets the [[Items|item]] that the character has equipped in a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FINDTYPE]]''.type'' || R || Gets the first [[Items|item]] found equipped to the character or inside their backpack, with the matching [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFINDTYPE]]''.memory_flags'' || R || Gets a [[Items|memory item]] with the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORYFIND]].''object_uid'' || R || Gets a [[Items|memory item]] that is linked to the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[OWNER]] || R || Gets the character that owns this character. (RW in Experimental Build)&lt;br /&gt;
|-&lt;br /&gt;
| [[SPAWNITEM]] || R || Gets the [[Items|spawn item]] (t_spawn_char) that this character originated from.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEAPON]] || R || Gets the [[Items|weapon]] that the character currently has equipped.&lt;br /&gt;
|-&lt;br /&gt;
| [[P]] || RW || Gets or sets the [[Map Points|position]] that the character is at.&lt;br /&gt;
|-&lt;br /&gt;
| [[Regions|REGION]] || R || Gets the [[Regions|region]] that the character is currently located in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Rooms|ROOM]] || R || Gets the [[Rooms|room]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[Sectors|SECTOR]] || R || Gets the [[Sectors|sector]] that the character is in.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOPOBJ]] || R || Gets the top-most [[Characters|character]] or [[Items|item]] in the world that contains the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TYPEDEF  (Reference)|TYPEDEF]] || R || Gets the [[CHARDEF]] that defines the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Properties and Functions==&lt;br /&gt;
Here is a list of all character properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples. If an attempt is made to access a property that does not exist on the character, the property from the [[CHARDEF]] will be accessed instead.&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;
| [[AC]] || R || Returns the character's total defense.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG1]] || RW || Gets or sets the character's ACTARG1 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG2]] || RW || Gets or sets the character's ACTARG2 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTARG3]] || RW || Gets or sets the character's ACTARG3 value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTDIFF]] || RW || Gets or sets the difficulty of the character's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTION]] || RW || Gets or sets the skill that the character is currently using.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTP]] || RW || Gets or sets the character's ACTP value.&lt;br /&gt;
|-&lt;br /&gt;
| [[ACTPRV]] || RW || Gets or sets the character's ACTPRV value.&lt;br /&gt;
|-&lt;br /&gt;
| [[AFK]] || W || Gets or sets whether or not the character is in AFK mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[AGE]] || R || Returns the age of the character since its creation, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSKILLS]] ''amount'' || W || Sets all of the character's skills to the specified amount.&lt;br /&gt;
|-&lt;br /&gt;
| [[ANIM]] ''anim_id'' || W || Plays the specified animation on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ATTACKER]]''.properties'' || R || Gets the number of opponents who have damaged the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANK]] ''layer'' || W || Opens the character's bank (or the container at the specified layer) for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKBALANCE]] || R || Returns the total amount of gold in the character's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[BARK]] ''sound_id'' || W || Plays the specified sound (or the character's generic sound if not specified) to nearby clients from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[BODY]] || RW || Gets or sets the character's body.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOUNCE]] ''item_uid'' || W || Places a specified item in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[BOW]] || W || Makes the character bow to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAN (Characters)|CAN]] || RW || Gets or Sets the Can flags for this chardef.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANCAST]] ''spell_id, check_antimagic'' || R || Returns 1 if the character can cast a given spell, bypassing anti-magic field tests if ''check_antimagic'' set to 0.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKE]] ''item_id'' || R || Returns 1 if the character has the skills and resources to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMAKESKILL]] ''item_id'' || R || Returns 1 if the character has the skills to craft a certain item.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANMOVE]] ''direction'' || R || Returns 1 if the character can move in the given direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEE]] || R || Returns 1 if SRC can see the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOS]] || R || Returns 1 if SRC has line of sight to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CANSEELOSFLAG]] ''flags'' || R || Returns 1 if SRC has line of sight to the character, with flags to modify what tests take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[COLOR]] || RW || Gets or sets the character's hue.&lt;br /&gt;
|-&lt;br /&gt;
| [[CONSUME]] ''resource_list'' || W || Removes specified resources from SRC's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[COUNT]] || R || Returns the number of items equipped to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[CREATE]] || RW || Gets or sets the character's age since creation, in seconds (Tenth of seconds on X).&lt;br /&gt;
|-&lt;br /&gt;
| [[CRIMINAL]] || W || Sets whether or not the character is a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[CURFOLLOWER]] || RW || Gets or sets the number of current followers the character has,&lt;br /&gt;
|-&lt;br /&gt;
| [[DAMAGE]] ''amount, type, source'' || W || Inflicts damage upon the character.&lt;br /&gt;
&lt;br /&gt;
 When using COMBAT_ELEMENTAL_ENGINE add the following parameters after ''source'': ''physical'',''fire'',''cold'',''poison'',''energy''. All the values are in %.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [[DESTROY]] || W || Deletes the object, not stopped by a return 1 in [[@Destroy]]&lt;br /&gt;
|-&lt;br /&gt;
| [[DEX]] || RW || Gets or sets the character's total dexterity.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOG (Function)|DIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGCLOSE]] ''dialog_id button'' || W || Closes a dialog that SRC has open, simulating a button press.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.COUNT'' || R || Gets the number of number of dialogs currently considered to be visible on SRC's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.ID'' || R || Gets the ID of the nth dialog that SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIALOGLIST]]''.n.COUNT'' || R || Gets the number of instances of nth dialog SRC has open (zero-based).&lt;br /&gt;
|-&lt;br /&gt;
| [[DIR]] || RW || Gets or setes the direction that the character is facing.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISCONNECT]] || W || Disconnects the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISMOUNT]] || W || Dismounts the character from their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISPIDDEC]] || R || Gets the ID of the character as a decimal number.&lt;br /&gt;
|-&lt;br /&gt;
| [[DISTANCE]] ''point_or_uid'' || R || Gets the distance between this object and either SRC, a map location or another object.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] || W || Double clicks the character, with SRC as the source of the event.&lt;br /&gt;
|-&lt;br /&gt;
| [[DCLICK]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[DRAWMAP]] ''radius'' || W || Starts the cartography skill, drawing a map of the local area up to ''radius'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[DROP]] ''item_uid'' || W || Drops a specified item at the character's feet.&lt;br /&gt;
|-&lt;br /&gt;
| [[DUPE]] || W || Creates a clone of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EDIT]] || W || Displays an editing dialog for the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[EFFECT]] ''type, item_id, speed, loop, explode, colour, rendermode'' || W || Displays an effect to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTE]] ''message'' || W || Displays a *You see* message to all nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[EMOTEACT]] || RW || Gets, sets or toggles whether or not the character will emote all of its actions.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIP]] ''item_uid'' || W || Equips an item to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPARMOR]] || W || Equips the character with the best armour in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPHALO]] ''timeout'' || W || Equips a halo light to the character, lasting for ''timeout'' tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[EQUIPWEAPON]] || W || Equips the character with the best weapon in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVENTS (Property)|EVENTS]] ''event_defname'' || RW || Gets a list of events attached to the object, or adds or removes an event to or from the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXP]] || RW || Gets or sets the character's experience points.&lt;br /&gt;
|-&lt;br /&gt;
| [[FACE]] ''object_uid'' || W || Turns the character to face a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]] || RW || Gets or sets the character's fame.&lt;br /&gt;
|-&lt;br /&gt;
| [[FAME]]''.fame_group'' || R || Returns 1 if the character's fame falls within the specified fame group.&lt;br /&gt;
|-&lt;br /&gt;
| [[FCOUNT]] || R || Returns the total number of items equipped to the character, including subitems&lt;br /&gt;
|-&lt;br /&gt;
| [[FLAGS]] || RW || Gets or sets the character's flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIX]] || W || Re-aligns the character's Z level to ground level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FIXWEIGHT]] || W || Recalculates the character's total weight.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLIP]] || W || Rotates the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[FONT]] || RW || Gets or sets the character's speech font.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOOD]] || RW || Gets or sets the character's food level.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORGIVE]] || W || Revokes the character's jailed status.&lt;br /&gt;
|-&lt;br /&gt;
| [[GO]] ''location'' || W || Teleports the character to the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHAR]] ''n'' || W || Teleports the character to the nth character in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCHARID]] ''character_defname'' || W || Teleports the character to the next characer in the world with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[GOCLI]] ''n'' || W || Teleports the character to the nth online player. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GOITEMID]] ''item_defname'' || W || Teleports the character to the next item in the world with the specified [[BASEID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOLD]] || RW || Gets or sets the amount of gold the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[GONAME]] ''name'' || W || Teleports the character to the next character or item in the world with the specified name, accepts wildcards (*).&lt;br /&gt;
|-&lt;br /&gt;
| [[GOSOCK]] ''socket'' || W || Teleports the character to the online player with the specified socket number.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTYPE]] ''item_type'' || W || Teleports the character to the next item in the world with the specified [[TYPE]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GOUID]] ''object_uid'' || W || Teleports the character to the object with the specified [[UID]].&lt;br /&gt;
|-&lt;br /&gt;
| [[GUILDABBREV]] || R || Returns the character's guild abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEAR]] ''text'' || W || For NPCs, acts as if SRC had spoken the specified ''text''. For players, displays ''text'' as a system message.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEIGHT]] || R || Gets the character's height.&lt;br /&gt;
|-&lt;br /&gt;
| [[HITS]] || RW || Gets or sets the character's hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOME]] || RW || Gets or sets the character's home location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HUNGRY]] || W || Displays this character's hunger level to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ID]] || R || Gets the character's ID.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog about the character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[INT]] || RW || Gets or sets the character's total intelligence.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVIS]] || W || Sets whether or not the character is invisible.&lt;br /&gt;
|-&lt;br /&gt;
| [[INVUL]] || W || Sets whether or not the character is invulnerable.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISARMOR]] ''object_uid'' || R || Returns 1 if the object is armour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCHAR]] || R || Returns 1 if the object is a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISCONT]] || R || Returns 1 if the object is a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDIALOGOPEN]] ''dialog_id'' || R || Returns 1 if SRC has the specified dialog visible on their screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to it.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISGM]] || R || Returns 1 if the character is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISINPARTY]] || R || Returns 1 if the player is in a [[party]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISITEM]] || R || Returns 1 if the object is an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISMYPET]] || R || Returns 1 if the character belongs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPE]] ''type, distance, flags'' || R || Returns 1 if a nearby item has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISNEARTYPETOP]] ''type, distance, flags'' || R || Returns a nearby world location of a nearby item which has the given TYPE.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISONLINE]] || R || Returns 1 if the character is considered to be online.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISPLAYER]] || R || Returns 1 if the object is a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISSTUCK]] || R || Returns 1 if the character cannot walk in any direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTEVENT]]''.event_defname'' || R || Returns 1 if the object has an event attached to its [[CHARDEF]].&lt;br /&gt;
|-&lt;br /&gt;
| [[ISTIMERF]]''.function'' || R || Returns the number of seconds left on the specified timerf if it exists.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVENDOR]] || R || Returns 1 if the character is a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISVERTICALSPACE]] ''location'' || R || Returns 1 if the ceiling at the given location is high enough for the character to fit under.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISWEAPON]] ''object_uid'' || R || Returns 1 if the object is a weapon.&lt;br /&gt;
|-&lt;br /&gt;
| [[JAIL]] ''cell'' || W || Sends the character to jail, to a specified jail cell.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]] || RW || Gets or sets the character's karma.&lt;br /&gt;
|-&lt;br /&gt;
| [[KARMA]]''.karma_group'' || R || Returns 1 if the character's karma falls within the specified karma group.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILL]] || W || Kills the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEVEL]] || RW || Gets or sets the character's experience level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LIGHT]] || RW || Gets or sets the character's personal light level.&lt;br /&gt;
|-&lt;br /&gt;
| [[LUCK]] || RW || Gets or sets the luck value for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAKEITEM]] ''item_defname, amount'' ||| W || Begins an attempt to craft the specified quantity of the given item.&lt;br /&gt;
|-&lt;br /&gt;
| [[MANA]] || RW || Gets or sets the character's mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAP]] || RW || Gets or sets the map that this object is located.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXFOLLOWER]] || RW || Gets or sets the maximum number of followers the character can have.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXHITS]] || RW || Gets or sets the character's maximum hitpoints.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXMANA]] || RW || Gets or sets the character's maximum mana.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXSTAM]] || RW || Gets or sets the character's maximum stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[MAXWEIGHT]] || R || Returns the maximum weight that the character can carry.&lt;br /&gt;
|-&lt;br /&gt;
| [[MEMORY]]''.object_uid'' || RW || Gets or sets the memory flags the character has for the given object.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_defname'' || W || Displays a menu to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGE]] ''message'' || W || Displays a message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MESSAGEUA]] ''colour, talkmode, font, lang_id, message'' || W || Displays a UNICODE message above this character to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODAR]] || RW || Gets or sets a modifier for the character's armour rating.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODDEX]] || RW || Gets or sets the character's dexterity modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODINT]] || RW || Gets or sets the character's intelligence modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODMAXWEIGHT]] || RW || Gets or sets the character's maximum weight modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MODSTR]] || RW || Gets or sets the character's strength modifier.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] || R || Gets the UID of the character's mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOUNT]] ''mount_uid'' || W || Attempts to mount the character on to the specified mount.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction'' || R || Returns the movement flags for the tile in the given direction (see can_flags in sphere_defs.scp).&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVE]] ''direction, amount''&amp;lt;br /&amp;gt; [[MOVE]] ''x y'' || W || Moves the object relative to its current position.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVENEAR]] ''object_uid, distance'' || W || Moves the character to a random location near another object within a certain distance.&lt;br /&gt;
|-&lt;br /&gt;
| [[MOVETO]] ''location'' || W || Moves the character to a specific location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NAME]] || RW || Gets or sets the character's name.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWBIESKILL]] ''skill_id'' || W || Distributes items that are associated with the specified skill, to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWGOLD]] ''amount'' || W || Generates ''amount'' gold in the character's backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[NEWLOOT]] ''item_or_template_defname'' || W || Generates the specified item or template into the character's backpack, providing that they are an NPC that hasn't been summoned.&lt;br /&gt;
|-&lt;br /&gt;
| [[NIGHTSIGHT]] || RW || Gets or sets whether or not the character has nightsight enabled.&lt;br /&gt;
|-&lt;br /&gt;
| [[NOTOGETFLAG]] ''viewer_uid, allow_incognito'' || RW || Gets the character's notoriety flags as seen by the specified viewer.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the character's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEDOWN]] ''amount'' || W || Decreases the character's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGEUP]] ''amount'' || W || Increases the characer's Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[OBODY]] || RW || Gets or sets the character's original body.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] || W || Displays the character's paperdoll to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[OPENPAPERDOLL]] ''character_uid'' || W || Displays a specified character's paperdoll to this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[OSKIN]] || RW || Gets or sets the character's original colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[ODEX]] || RW || Gets or sets the character's base dexterity (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OINT]] || RW || Gets or sets the character's base intelligence (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[OSTR]] || RW || Gets or sets the character's base strength (without modifiers).&lt;br /&gt;
|-&lt;br /&gt;
| [[PACK]] || W || Opens the character's backpack for SRC to view.&lt;br /&gt;
|-&lt;br /&gt;
| [[POISON]] ''strength'' || W || Poisons the character, with the specified poison strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[POLY]] ''character_id'' || W || Begins casting the polymorph spell, with ''character_id'' being the character to turn into.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLE]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROMPTCONSOLEU]] ''function, prompt_message'' || W || Displays a prompt message to SRC and passes their response into a specified function, supporting UNICODE response.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSET]] ''plevel'' || W || Sets the PLEVEL of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RANGE]] || R || Gets the combat range of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[RELEASE]] || W || Clears the character's owners.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVE]] ''allow_player_removal'' || W || Deletes the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEFROMVIEW]] || W || Removes the object from nearby clients' screens.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLD]] || RW || Gets or sets the character's resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOLDMAX]] || RW || Gets or sets the character's maximum resistance to cold.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESCOUNT]] ''item_defname'' || R || Returns the total amount of a specific item equipped to the character or inside their baackpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENDTOOLTIP]] ''sendfull'',''usecache'' || W || Forces Sphere to update the tooltips for nearby clients.  If sendfull is 1 the entire tooltip is sent and if 0 then just the header is sent.  If usecache is 1 then the cached version (if found) will be sent and if 0 then the cached version (if found) will be replaced and sent&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGY]] || RW || Gets or sets the character's resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESENERGYMAX]] || RW || Gets or sets the character's maximum resistance to energy.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIRE]] || RW || Gets or sets the character's resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESFIREMAX]] || RW || Gets or sets the character's maximum resistance to fire.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISON]] || RW || Gets or sets the character's resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESPOISONMAX]] || RW || Gets or sets the character's maximum resistance to poison.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTEST]] ''item_list'' || R || Returns 1 if all of the items in the list can be found equipped to the character or inside their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESURRECT]] ''force'' || W || Resurrects the character. If ''force'' is 1 then usual anti-magic checks are bypasses.&lt;br /&gt;
|-&lt;br /&gt;
| [[SALUTE]] ''object_uid'' || W || Makes the character salute a specified object or SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAY]] ''message'' || W || Makes the character speak a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYU]] ''message'' || W || Makes the character speak a UTF-8 message&lt;br /&gt;
|-&lt;br /&gt;
| [[SAYUA]] ''colour, talkmode, font, lang_id, text'' || W || MAkes the character speak a UNICODE message.&lt;br /&gt;
|-&lt;br /&gt;
| [[SDIALOG]] ''dialog_id, page, parameters'' || W || Displays a dialog to SRC, providing that it is not already open.&lt;br /&gt;
|-&lt;br /&gt;
| [[SERIAL]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEX]] ''value_male:value_female'' || R || Returns ''value_male'' or ''value_female'' depending on the character's gender.&lt;br /&gt;
|-&lt;br /&gt;
| [[SEXTANTP]] ''location'' || R || Converts the character's location or a specified location into sextant coordinates.&lt;br /&gt;
|-&lt;br /&gt;
| ''skill_name'' || RW || Gets or sets the character's skill level in ''skill_name''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILL (Function)|SKILL]] || W || Begins using a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCHECK]] ''skill_id, difficulty'' || R || Performs a check for skill success, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLBEST]]''.n'' || R || Returns the ID of the character's nth highest skill (0 = Highest)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLGAIN]] ''skill, difficulty'' || W || Invokes Sphere's skill gain for the specified skill, with the given difficulty (0-100)&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTEST]] ''skill_list'' || R || Returns 1 if the character possess all of the skills in the list.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] || R || Returns the total value of all the character's skills.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''skill_group'' || R || Returns the total value of all the character's skills with the specified group flag(s).&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''-amount'' || R || Returns the total value of all the character's skills that are under ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLTOTAL]] ''+amount'' || R || Returns the total value of all the character's skills that are over ''amount''.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLUSEQUICK]] ''skill_id, difficulty'' || R || Quickly uses a skill, returning 1 if the attempt was successful.&lt;br /&gt;
|-&lt;br /&gt;
| [[SLEEP]] ''fall_forwards'' || W || Makes the character appear to sleep.&lt;br /&gt;
|-&lt;br /&gt;
| [[SOUND]] ''sound_id, repeat'' || W || Plays a sound from this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPELLEFFECT]] ''spell_id, strength, source_character_uid, source_item_uid'' || W || Causes the character to be affected by a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[STAM]] || RW || Gets or sets the character's stamina.&lt;br /&gt;
|-&lt;br /&gt;
| [[STEPSTEALTH]] || RW || Gets or sets the amount of steps a character can do while using the Stealth skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[STONE]] || RW || Gets or sets whether or not the character is trapped in stone.&lt;br /&gt;
|-&lt;br /&gt;
| [[STR]] || RW || Gets or sets the character's total strength.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUICIDE]] || W || Forces the character to commit suicide.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONCAGE]] || W || Teleports the character to SRC's, surrounded by a cage multi.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMONTO]] || W || Teleports the character to SRC's position.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAG]]''.name'' || RW || Gets or sets the value of a TAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index'' || R || Gets a TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.KEY || R || Gets the name of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGAT]]''.index''.VAL || R || Gets the value of the TAG at the given zero-based index.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGCOUNT]] || R || Gets the number of TAGs stored on the item.&lt;br /&gt;
|-&lt;br /&gt;
| [[TAGLIST]] || W || Outputs a list of the object's TAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGET]]''FGMW'' ''function'' || W || Displays a targeting cursor to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMER]] || RW || Gets or sets the length of time before the item's timer expires, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERD]] || RW || Gets or sets the length of time before the item's timer expires, in tenths of a second.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''time, function'' || W || Scheduled a function to be executed on this object in ''time'' seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''CLEAR'' || W || Clears all scheduled functions from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TIMERF]] ''STOP, function'' || W || Stops the specified function from the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITHING]] || RW || Gets or sets the number of tithing points the character has.&lt;br /&gt;
|-&lt;br /&gt;
| [[TITLE]] || RW || Gets or sets the character's title.&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWNABBREV]] || R || Returns the character's town abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
| [[TRIGGER]] ''trig_name, trig_type'' || R || Fires a custom trigger and returns the RETURN value.&lt;br /&gt;
|-&lt;br /&gt;
| [[UID]] || R || Gets the item's unique ID in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNDERWEAR]] || W || Toggles the display of underwear on the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEQUIP]] ''item_uid'' || W || Unequips an item from the character, placing it in their backpack.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATE]] || W || Updates the state of the character to nearby clients.&lt;br /&gt;
|-&lt;br /&gt;
| [[UPDATEX]] || W || Updates the state of the character to nearby clients, removing it from their view first to ensure a full refresh.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] || W || Double clicks the character, with SRC as the source of the event, without checking for line of sight.&lt;br /&gt;
|-&lt;br /&gt;
| [[USEITEM]] ''object_uid'' || W || Double clicks an object, with the character as SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VISUALRANGE]] || RW || Gets or sets the character's sight range.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEIGHT]] || R || Gets the weight of the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHERE]] || W || Describes the character's location to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[Z]] || R || Gets the Z position of the character.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Triggers==&lt;br /&gt;
Here is a list of all character triggers. Click on the trigger name for more detailed information such as arguments and examples.&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''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[@AfterClick]] || Fires when the object has been single-clicked, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Attack]] || Fires when the character begins attacking another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CallGuards]] || Fires when the character calls for guards.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharAttack]] || Fires when the character is attacked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClick]] || Fires when the character is clicked by another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharClientTooltip]] || Fires when the tooltips are about to be sent to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharDClick]] || Fires when the character double clicks another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CharTradeAccepted]] || Fires when another character accepts trade with the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Click]] || Fires when the object has been single-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ClientTooltip]] || Fires when tooltips for this character are about to be sent to a client.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatAdd]] || Fires when someone is being added to my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatDelete]] || Fires when someone is deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatEnd]] || Fires when someone is being deleted from my attacker list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@CombatStart]] || Fires when adding first attacker to my list.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuRequest]] || Fires when a client requests the context menu options for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ContextMenuSelect]] || Fires when a client selects a context menu option for the object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Create]] || Fires when the object is initially created, before it is placed in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Criminal]] || Fires when the character becomes a criminal.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DClick]] || Fires when the object is double-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Death]] || Fires when the character's hitpoints reaches zero.&lt;br /&gt;
|-&lt;br /&gt;
| [[@DeathCorpse]] || Fires when a corpse is created for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Destroy]] || Fires when the object is being deleted.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dismount]] || Fires when the character dismounts their ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Dye]] || Fires when the character is about to change their color or the color of an object.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Eat]] || Fires when the character eats something.&lt;br /&gt;
|-&lt;br /&gt;
| [[@EnvironChange]] || Fires when the environment changes for the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpChange]] || Fires when the character's experience points change.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ExpLevelChange]] || Fires when the character's experience level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@FameChange]] || Fires when the character's fame changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@GetHit]] || Fires when the character receives damage.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hit]] || Fires when the character hits another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitMiss]] || Fires when the character fails to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HitTry]] || Fires when the character tries to hit another in combat.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignCommit]] || Fires when the character commits a new house design.&lt;br /&gt;
|-&lt;br /&gt;
| [[@HouseDesignExit]] || Fires when the character exits house design mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Hunger]] || Fires when the character's food level decreases.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemAfterClick]] || Fires when the character single-clicks an item, just before the overhead name is shown.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemBuy]] || Fires when the character buys an item from a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClick]] || Fires when the character single-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemClientTooltip]] || Fires when the tooltips are about to be sent to the client for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuRequest]] || Fires when the character requests the context menu options for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemContextMenuSelect]] || Fires when the character selects a context menu option for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemCreate]] || Fires when an item is initially created, before it is placed in the world, and the character is in some way responsible for it.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDamage]] || Fires when the character damages an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDClick]] || Fires when the character double-clicks an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Char]] || Fires when the character drops an item on to a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Ground]] || Fires when the character drops an item on to the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Item]] || Fires when the character drops an item on to another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemDropOn_Self]] || Fires when the character drops an item inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquip]] || Fires when the character equips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemEquipTest]] || Fires when the characer is about to equip an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Ground]] || Fires when the character picks an item up from the ground.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Pack]] || Fires when the character picks an item up from inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Self]] || Fires when the character picks an item up from inside another item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemPickUp_Stack]] || Fires when the character picks up an item from a stack.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSell]] || Fires when the character sells an item to a vendor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemSpellEffect]] || Fires when the character hits an item with a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemStep]] || Fires when the character steps on an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Cancel]] || Fires when the character cancels an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Char]] || Fires when the character targets a character with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Ground]] || Fires when the character targets the ground with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemTargOn_Item]] || Fires when the character targets an item with an item's target cursor.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemToolTip]] || Fires when the character requests old-style tooltips for an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ItemUnEquip]] || Fires when the character unequips an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Jailed]] || Fires when the character is sent to jail.&lt;br /&gt;
|-&lt;br /&gt;
| [[@KarmaChange]] || Fires when the character's karma changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Kill]] || Fires when the character kills another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Login]] || Fires when the character logs in.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Logout]] || Fires when the character logs out.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Mount]] || Fires when the character mounts a ride.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderDecay]] || Fires when one of the character's kills is about to decay.&lt;br /&gt;
|-&lt;br /&gt;
| [[@MurderMark]] || Fires when the character is about to gain a kill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NotoSend]] || Fires the status bar/character notoriety color is sent to another players.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAcceptItem]] || Fires when the NPC receives an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFight]] || Fires when the NPC makes a combat decision.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCActFollow]] || Fires when the NPC follows another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCAction]] || Fires when the NPC is about to perform an AI action.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearGreeting]] || Fires when the NPC hears a character for the first time.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCHearUnknown]] || Fires when the NPC hears something they don't understand.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtChar]] || Fires then the NPC looks at a character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLookAtItem]] || Fires when the NPC looks at an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCLostTeleport]] || Fires when the NPC is lost and is about to be teleported back to their [[HOME]].&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRefuseItem]] || Fires when the NPC refuses an item being given to them.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCRestock]] || Fires when the NPC is having their items restocked.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeNewPlayer]] || Fires when the NPC first sees a player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSeeWantItem]] || Fires when the NPC sees an item they want.&lt;br /&gt;
|-&lt;br /&gt;
| [[@NPCSpecialAction]] || Fires when the NPC is about to perform a special action (leaving fire trail, dropping web).&lt;br /&gt;
|-&lt;br /&gt;
| [[@PayGold]] || Fires when the character receives a payment. (Experimental Build Only)&lt;br /&gt;
|-&lt;br /&gt;
| [[@PersonalSpace]] || Fires when the character is stepped on.&lt;br /&gt;
|-&lt;br /&gt;
| [[@PetDesert]] || Fires when the character deserts its owner.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Profile]] || Fires when a player attempts to read the character's profile from the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ReceiveItem]] || Fires when the NPC receives an item from another character, before they decide if they want it or not.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegenStat]] || Fires when a character is going to regenerate any stat point.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionEnter]] || Fires when the character enters a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionLeave]] || Fires when the character leaves a region.&lt;br /&gt;
|-&lt;br /&gt;
| [[@RegionResourceFound]] || Fires after a resource has been selected and the resource bit has been created.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Rename]] || Fires when the character renames another.&lt;br /&gt;
|-&lt;br /&gt;
| [[@Resurrect]] || Fires when the character is being resurrected.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeCrime]] || Fires when the character sees a crime take place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SeeHidden]] || Fires when this character is about to see a hidden character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillAbort]] || Fires when the character aborts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillChange]] || Fires when the character's skill level changes.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillFail]] || Fires when the character fails a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillGain]] || Fires when the character has a chance to gain in a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMakeItem]] || Fires when the character crafts an item.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillMenu]] || Fires when a skill menu is shown to the character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillPreStart]] || Fires when the character starts a skill, before any hardcoded action takes place.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSelect]] || Fires when the character selects a skill on their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillStart]] || Fires when the character starts a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillSuccess]] || Fires when the character succeeds at a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillUseQuick]] || Fires when the character quickly uses a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SkillWait]] || Fires when Sphere wants to check if a character must wait before starting a skill.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellBook]] || Fires when the character opens their spellbook.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellCast]] || Fires when the character casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellEffect]] || Fires when the character is hit by the effects of a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellFail]] || Fires when the character fails to cast a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSelect]] || Fires when the character selects a spell to cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellSuccess]] || Fires when the character successfully casts a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[@SpellTargetCancel]] || Fires when the character cancels target selection for a spell they have just cast.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StatChange]] || Fires when the character's STR, DEX or INT is changed through skill gain.&lt;br /&gt;
|-&lt;br /&gt;
| [[@StepStealth]] || Fires when the character takes a step whilst hidden.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToggleFlying]] || Fires when a Gargoyle Player is going to Fly or to Land.&lt;br /&gt;
|-&lt;br /&gt;
| [[@ToolTip]] || Fires when a player requests old-style tooltips for this character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeAccepted]] || Fires when the character accepts a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeClose]] || Fires when a trade window is closed.&lt;br /&gt;
|-&lt;br /&gt;
| [[@TradeCreate]] || Fires when a player begins a trade with another player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserBugReport]] || Fires when the player submits a bug report.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserChatButton]] || Fires when the player presses the Chat button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExtCmd]] || Fires when the player sends an extended command packet. (used by some macros)&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserExWalkLimit]] || Fires when the player's movement is restricted by the movement speed settings in Sphere.ini&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserGuildButton]] || Fires when the player presses the Guild button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserKRToolbar]] || Fires when the player presses a button on the toolbar.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserMailBag]] || Fires when the player drags the mail bag on to another character.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestArrowClick]] || Fires when the player clicks the quest arrow.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserQuestButton]] || Fires when the player presses the Quest button on the paperdoll.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSkills]] || Fires when the player opens their skill menu, or a skill update is sent to the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserSpecialMove]] || Fires when the player uses a special move.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserStats]] || Fires when the player opens the status window.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserUltimaStoreButton]] || Fires when click on 'Ultima Store' button on new clients 7.0.62+&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtue]] || Fires when the player presses on the Virtue button.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserVirtueInvoke]] || Fires when the player invokes a virtue through macros.&lt;br /&gt;
|-&lt;br /&gt;
| [[@UserWarmode]] || Fires when the player switches between war and peace mode.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Players==&lt;br /&gt;
Characters that are attached to an account become Player Characters. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GUILD]] || R || Gets the [[Special Items#Guild.2FTown_Stones|guild stone]] that the player belongs to.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLCLASS (Reference)|SKILLCLASS]] || RW || Gets or sets the player's [[SKILLCLASS|skillclass]].&lt;br /&gt;
|-&lt;br /&gt;
| [[TOWN]] || R || Gets the [[Special Items#Guild.2FTown_Stones|town stone]] that the player belongs to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all player properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[DEATHS]] || RW || Gets or sets the number of times the player has died.&lt;br /&gt;
|-&lt;br /&gt;
| [[DSPEECH]] ''+/-speech_id'' || RW || Gets a list of attached speech handlers, or adds or removes a speech handler to or from the player.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.DELETE'' || W || Deletes the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.HANDLE'' || W || Sets the player as the handler for the nth GM page. (zero-based)&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]]''.n.key'' || W || Executes the .page command with ''key'' as the arguments.&lt;br /&gt;
|-&lt;br /&gt;
| [[ISDSPEECH]]''.speech_id'' || R || Returns 1 if the player has the given speech handler attached.&lt;br /&gt;
|-&lt;br /&gt;
| [[KICK]] || W || Disconnects and blocks the player's account.&lt;br /&gt;
|-&lt;br /&gt;
| [[KILLS]] || RW || Gets the number of murders the player has committed.&lt;br /&gt;
|-&lt;br /&gt;
| [[KRTOOLBARSTATUS]] || RW || Gets or sets whether or not the KR toolbar is enabled for this player.&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTUSED]] || RW || Gets the length of time since the player was last attached to a client, in seconds.&lt;br /&gt;
|-&lt;br /&gt;
| [[PASSWORD]] || W || Sets or clears the player's password.&lt;br /&gt;
|-&lt;br /&gt;
| [[PFLAG]] || RW || Gets or sets the player's PFLAG value.&lt;br /&gt;
|-&lt;br /&gt;
| [[PROFILE]] || RW || Gets or sets the text to display on the player's profile.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLLOCK]]''.skill_id'' || RW || Gets or sets the lock state of the player's skill. 0 is Up. 1 is Down. 2 is Locked.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEEDMODE]] || RW || Gets or sets the speed that the player moves at. (0=Normal, 1=Double Speed on Foot, 2=Always walk, 3=Always Run on Foot/Always Walk on Mount, 4=Can not Walk or Run)&lt;br /&gt;
|-&lt;br /&gt;
| [[STATLOCK]]''.stat_id || RW || Gets or sets the lock state of the player's STR (0), DEX (2) or INT (1). [0 = up, 1 = down, 2 = locked]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==NPCs==&lt;br /&gt;
Characters that are not attached to an account are NPCs and are controlled by Sphere's AI. In addition to the basic character references, properties and functions they also receive the following:&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all NPC properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ACTPRI]] || RW || Gets or sets the NPC's motivation towards their current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[BUY]] || W || Displays the shop window to SRC, in buy mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[BYE]] || W || Ends the NPC's current action.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLEE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTO]] ''location'' || W || Begins moving the NPC towards the specified location.&lt;br /&gt;
|-&lt;br /&gt;
| [[HIRE]] || W || Begins the hiring process between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[LEAVE]] ''distance'' || W || Begins moving the NPC away from its current location.&lt;br /&gt;
|-&lt;br /&gt;
| [[NPC]] || RW || Gets or sets the NPC's AI type.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOMEDIST]] || RW || Gets or sets the distance that the NPC can wander from its [[HOME]] position.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETRETRIEVE]] || W || Enables SRC to retrieve their stabled pets from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[PETSTABLE]] || W || Enables SRC to stable their pet with the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESTOCK]] ''force'' || W || Clears all of the NPC's stock, repopulating it when it is next accessed (or immediately if ''force''=1)&lt;br /&gt;
|-&lt;br /&gt;
| [[RUN]] ''direction'' || W || Forces the NPC to run one tile in the specified direction.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELL]] || W || Displays the shop window to SRC, in sell mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHRINK]] || W || Shrinks the NPC into a figurine item.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECH]] ''+/-speech_id'' || RW || Gets the list of speech handlers attached to the NPC, or adds or removes a speech handler to or from the NPC.&lt;br /&gt;
|-&lt;br /&gt;
| [[SPEECHCOLOR]] || RW || Gets or sets the colour of the NPC's speech.&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''min,max'' || RW || Gets or sets a range of damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWDAM]] ''dam'' || RW || Gets or sets the constant damage used for thrown objects. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWOBJ]] ''id'' || RW || Gets or sets the ID of an object to be thrown by NPCs. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''min,max'' || RW || Gets or sets the range that an object can be thrown at. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[THROWRANGE]] ''max'' || RW || Gets or sets the range that an object can be thrown at with a default min of 2. (overrides chardef property)&lt;br /&gt;
|-&lt;br /&gt;
| [[TRAIN]] ''skill'' || W || Initiates training between the NPC and SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDCAP]] || RW || Gets or sets the amount of gold a vendor will restock to.&lt;br /&gt;
|-&lt;br /&gt;
| [[VENDGOLD]] || RW || Gets or sets the amount of gold a vendor has.&lt;br /&gt;
|-&lt;br /&gt;
| [[WALK]] ''direction'' || W || Forces the NPC to walk one tile in the specified direction.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Clients==&lt;br /&gt;
When a client is controlling a character, the following references, properties and functions will be available:&lt;br /&gt;
&lt;br /&gt;
===References===&lt;br /&gt;
References return pointers to other objects (e.g. the REGION reference allows you to access the REGION that an object is in). These can either be accessed by using ''&amp;amp;lt;REFNAME&amp;amp;gt;'' to return the [[UID]] (1 for object types that don't have UIDs) of the object or 0 if it doesn't exist, or by using ''&amp;amp;lt;REFNAME.KEY&amp;amp;gt;'' where KEY is a valid property/function/reference for the ''REFNAME'' object. Click on the name for more detailed information such as usage and examples.&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;
| [[GMPAGEP]] || R || Gets the [[GM Pages|GM page]] that the client is currently handling.&lt;br /&gt;
|-&lt;br /&gt;
| [[HOUSEDESIGN]] || R || Gets the [[Special Items#Customizable Multis|building]] that is currently being designed by the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PARTY]] || R || Gets the [[Parties|party]] that the client is a member of.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARG]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGP]] || RW || Gets or sets the [[Map Points|location]] that the client has targeted.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPROP]] || RW || Gets or sets the character whose skills are shown in the client's skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGPRV]] || RW || Gets or sets the [[Characters|character]] or [[Items|item]] that the client previously targeted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Properties and Functions===&lt;br /&gt;
Here is a list of all client properties and functions. If a function is marked as readable then it can return a value when used as &amp;lt;KEY&amp;gt;. Click on the name for more detailed information such as usage and examples.&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;
| [[ADD]] ''item_defname'' || W || Prompts the client to target a location to add the specified item at.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDBUFF]] ''icon, cliloc1, cliloc2, time, arg1, arg2, arg3'' || W || Displays a buff icon in the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCLILOC]] ''cliloc, args'' || W || Adds a cliloc to the tooltip being sent to the client. Only valid in @ClientTooltip triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ADDCONTEXTENTRY]] ''entry_id, cliloc, flags, colour'' || W || Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLMOVE]] || RW || Gets or sets whether or not the client has ALLMOVE privileges.&lt;br /&gt;
|-&lt;br /&gt;
| [[ALLSHOW]] || RW || Gets or sets whether or not the client is able to see disconnected characters.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARROWQUEST]] ''x, y, id'' || W || Displays an arrow on the client's screen that points to the specified world coordinates. If id is supplied multiple arrows can be displayed on the client at once (Newer clients only - 3.x+ clients confirm?).  You can cancel the arrow by passing 0 for x and y and your id.  Using ARROWQUEST without any arguments will cancel arrow with id 0 if present.&lt;br /&gt;
|-&lt;br /&gt;
| [[BADSPAWN]] || W || Teleports the client to the first invalid spawn point in the world.&lt;br /&gt;
|-&lt;br /&gt;
| [[BANKSELF]] || W || Opens up the client's bankbox.&lt;br /&gt;
|-&lt;br /&gt;
| [[CAST]] ''spell_id' || W || Begins casting a spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[CHARLIST]] || W || Displays the client's character list screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLEARCTAGS]] || W || Removes all of the client's CTAGs.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTIS3D]] || R || Returns 1 if the client is using the 3D client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTISKR]] || R || Returns 1 if the client is using the KR client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CLIENTVERSION]] || R || Gets the client version the client is using, based on the encryption keys being used (unencrypted clients return 0).&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAG]] || RW || Gets or sets the value of a CTAG.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGCOUNT]] || R || Gets the number of CTAGs stored on the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] || W || Displays a list of the client's CTAGs to SRC.&lt;br /&gt;
|-&lt;br /&gt;
| [[CTAGLIST]] LOG || W || Displays a list of the client's CTAGs on the server console.&lt;br /&gt;
|-&lt;br /&gt;
| [[DEBUG]] || RW || Gets or sets whether or not the client is in debug mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[DETAIL]] || RW || Gets or sets whether or not the client receives additional detail, such as combat messages.&lt;br /&gt;
|-&lt;br /&gt;
| [[EVERBTARG]] ''command'' || W || Prompts the client to enter a command, or arguments to the command if specified. The complete command with arguments is then executed on TARG.&lt;br /&gt;
|-&lt;br /&gt;
| [[EXTRACT]] ''file, template_id'' || W || Extracts static items from a targeted area on the map and saves them into the specified file.&lt;br /&gt;
|-&lt;br /&gt;
| [[FLUSH]] || W || Forces queued network data to be immediately sent to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[GM]] || RW || Gets or sets whether or not the client is in GM mode.&lt;br /&gt;
|-&lt;br /&gt;
| [[GMPAGE]] ''ADD message'' || W || Sends a GM page from the client with the specified message, or if no arguments provided will prompt the client for a message.&lt;br /&gt;
|-&lt;br /&gt;
| [[GOTARG]] || W || Teleports the client to their targeted item.&lt;br /&gt;
|-&lt;br /&gt;
| [[HEARALL]] || RW || Gets or sets whether or not the client can hear all player speech regardless of location.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFO]] || W || Displays an information dialog to the client for an object they target.&lt;br /&gt;
|-&lt;br /&gt;
| [[INFORMATION]] || W || Displays server information to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LAST]] || W || Forces the client to target the object referenced by [[ACT]].&lt;br /&gt;
|-&lt;br /&gt;
| [[LASTEVENT]] || RW || Returns the time when data was last received from the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[LINK]] || W || Allows the client to target two objects to link them together.&lt;br /&gt;
|-&lt;br /&gt;
| [[MENU (Function)|MENU]] ''menu_id'' || W || Displays a menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[MIDILIST]] ''music1, music2, ...'' || W || Selects a random music id from the given list and tells the client to play it.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUDGE]] ''dx, dy, dz'' || W || Allows the client to nudge an area of items by the given coordinates, relative to the items' position.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKE]] ''command'' || W || Allows the client to execute ''command'' on all items in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[NUKECHAR]] ''command'' || W || Allows the client to execute ''command'' on all NPCs in a targeted area.&lt;br /&gt;
|-&lt;br /&gt;
| [[PAGE]] || W || Displays the GM page menu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[PRIVSHOW]] || W || Gets or sets whether or not the client's privilege level should show in their name.&lt;br /&gt;
|-&lt;br /&gt;
| [[REMOVEBUFF]] ''icon'' || W || Removes a buff icon from the client's buff icon bar.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPAIR]] || W || Prompts the client to target an item for them to repair.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]] || R || Gets the client version the client is using, based on what it has identified itself as to the server.&lt;br /&gt;
|-&lt;br /&gt;
| [[REPORTEDCLIVER]].FULL || R || Gets the client version the client is using, based on what it has identified itself as to the server, including the 4th digit.&lt;br /&gt;
|-&lt;br /&gt;
| [[RESEND]] || W || Forces a full refresh of the client's screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[SAVE]] ''immediate'' || W || Begins a world save. If background saving is enabled then ''[[SAVE]] 1'' will force a foreground save.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]] || R || Gets the client's screen size. (width,height)&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].X || R || Gets the width of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCREENSIZE]].Y || R || Gets the height of the client's screen size.&lt;br /&gt;
|-&lt;br /&gt;
| [[SCROLL]] ''scroll_id'' || W || Displays a message scroll to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SELF]] || W || Forces the client to target itself.&lt;br /&gt;
|-&lt;br /&gt;
| [[SENDPACKET]] ''data'' || W || Sends a raw data packet to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SET]] ''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|-&lt;br /&gt;
| [[SHOWSKILLS]] || W || Refreshes the client's skills for the skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLMENU (Function)|SKILLMENU]] ''skillmenu_id'' || W || Displays a skillmenu to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SKILLSELECT]] ''skill_id'' || W || Simulates the client selecting a skill from their skill menu.&lt;br /&gt;
|-&lt;br /&gt;
| [[SUMMON]] ''character_id'' || W || Casts the summon spell, with ''character_id'; being the character to summon.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGE]] ''text'' || W || Displays a system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOC]] ''hue, cliloc, args'' || W || Displays a localized system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGELOCEX]] ''hue, cliloc, flags, affix, args'' || W || Displays a localized system message to the client with affixed text.&lt;br /&gt;
|-&lt;br /&gt;
| [[SYSMESSAGEUA]] ''hue, font, mode, language, text'' || W || Displays a UNICODE system message to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[TARGETTEXT]] || RW || Gets or sets the client's target text.&lt;br /&gt;
|-&lt;br /&gt;
| [[TELE]] || W || Casts the teleport spell.&lt;br /&gt;
|-&lt;br /&gt;
| [[TILE]] ''z, item1, item2, ...'' || W || Tiles the ground within a targeted area with the listed items, at the given Z level.&lt;br /&gt;
|-&lt;br /&gt;
| [[UNEXTRACT]] ''file'' || W || Unextracts previously extracted statics, as dynamic items at a targeted location.&lt;br /&gt;
|-&lt;br /&gt;
| [[VERSION]] || W || Displays the server description to the client.&lt;br /&gt;
|-&lt;br /&gt;
| [[WEBLINK]] ''url'' || W || Opens the client's web browser to send them to the specified url.&lt;br /&gt;
|-&lt;br /&gt;
| [[X]]''command'' || W || Prompts the client to target an object to execute ''command'' on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Objects]]&lt;/div&gt;</summary>
		<author><name>Jhobean</name></author>	</entry>

	</feed>