Difference between revisions of "ContType"

From Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{header|container|ro|The #contType system variable determines the object type of the currently selected container/gump.}}
== #contType ==
+
 
'''Container System Variables'''
+
 
=== Description ===
+
{{contNote}}
{{ro}}
+
 
  
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
 
+
....
 +
if #contType <> %trashbarreltype
 +
      gosub opentrash
 +
....
  
 
</pre>
 
</pre>
==== See Also ====
+
=See Also=
{|
+
{{Container}}
| Width=200px |
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Container|Container System Variables]]
+
|}
+

Latest revision as of 09:08, 7 September 2007

The #contType system variable determines the object type of the currently selected container/gump.


Note: EasyUO currently only holds information in the #cont* on the "top most" gump. This means that the last gump that was opened or moved in any way is what EUO is reporting.


Example

....
if #contType <> %trashbarreltype
       gosub opentrash
....

See Also

Container

  • Container system variables represent information available about the top most (or most reacent) gump that was opened, moved, or clicked in the Ultima Online Client.
#nextCPosX Returns the x-coordinate of where the next container/gump will open
#nextCPosY Returns the y-coordinate of where the next container/gump will open
#contSize Returns the size of the currently selected container/gump
#contPosX Returns the x-coordinate of the currently selected container/gump
#contPosY Returns the y-coordinate of the currently selected container/gump
#contKind Returns the kind of the currently selected container/gump
#contID Returns the id of the currently selected container/gump
#contType Returns the object type of the currently selected container/gump
#contName Returns the name of currently selected container/gump