PyItem
Class Description
Section titled “Class Description”Represents a Python-accessible item in the game world.
Inherits entity and positional data from
Properties
Section titled “Properties”Amount
Section titled “Amount”Type: int
Opened
Section titled “Opened”Type: bool
Container
Section titled “Container”Type: uint
RootContainer
Section titled “RootContainer”Type: uint
RootEntity
Section titled “RootEntity”Type: PyEntity
__class__
Section titled “__class__”Type: string
The Python-visible class name of this object.
Accessible in Python as
IsCorpse
Section titled “IsCorpse”Type: bool
IsContainer
Section titled “IsContainer”Type: bool
Check if this item is a container(Bag, chest, etc)
MatchingHighlightName
Section titled “MatchingHighlightName”Type: string
If this item matches a grid highlight rule, this is the rule name it matched against
MatchesHighlight
Section titled “MatchesHighlight”Type: bool
True/False if this matches a grid highlight config
No enums found.
Methods
Section titled “Methods”GetContainerGump
Section titled “GetContainerGump”If this item is a container ( item.IsContainer ) and is open, this will return the grid container or container gump for it.
Return Type: PyBaseControl
NameAndProps
Section titled “NameAndProps”(wait, timeout)
Gets the item name and properties (tooltip text).
This returns the name and properties in a single string. You can split it by newline if you want to separate them.
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
wait | bool | ✅ Yes | True or false to wait for name and props |
timeout | int | ✅ Yes | Timeout in seconds |
Return Type: string