User Tools

Site Tools


item_func

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
item_func [2022/03/22 21:39] – external edit 127.0.0.1item_func [2022/09/22 01:15] (current) – external edit 127.0.0.1
Line 53: Line 53:
 |} |}
  
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Find all items by ItemID**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | Items.FindAllByID(int, int, int [, int=0])
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" |Find item serial by specific item ID, color and Container (optional container depth). Can use -1 on color for no chose color, can use -1 on container for search in all item in memory. The depth defaults to only the top but can search for # of sub containers.
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|python list of Items
 +|-
 +|**In Object:**
 +|Items
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +|Int itemid, int color, int serialcontainer
 +|-
 +|**Exception:**
 +|If item not found function return empty list
 +
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Find all items by ItemID**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | Items.FindAllByID(list of int, int, int [, int=0])
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" |Find items that are any of the item ID specified in the list, color and Container (optional container depth). Can use -1 on color for no chose color, can use -1 on container for search in all item in memory. The depth defaults to only the top but can search for # of sub containers.
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|python list of Items
 +|-
 +|**In Object:**
 +|Items
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +|Int itemid, int color, int serialcontainer
 +|-
 +|**Exception:**
 +|If item not found function return empty list
 +
 +|}
 ===== Move ===== ===== Move =====
  
Line 265: Line 312:
 |colspan="2" |**Description:** |colspan="2" |**Description:**
 |- |-
-|colspan="2" |Returns: Int+|colspan="2"Looks up the property by name on left side of ':' parses the numeric value on the right side of the : into a float number and returns the number
 |- style="background-color:#f0f0f0;" |- style="background-color:#f0f0f0;"
 |**Returns** |**Returns**
-|String+|float
 |- |-
 |**In Object:** |**In Object:**
Line 275: Line 322:
 |**Parameters:** |**Parameters:**
 |Int serialtoinspect or Item itemtoinspect, Int PropIndex |Int serialtoinspect or Item itemtoinspect, Int PropIndex
 +
 +|}
 +
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Get Item Proprerties**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | Items.GetPropValueString(int serial, string propname)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Looks up the property with the name provided on the left side of a : and returns the string on the right side or the :. Note: partial property name matchs work e.g. "loc" will match to "location", but "ocation" will not match "location"
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|string
 +|-
 +|**In Object:**
 +|Items
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +|Int serialtoinspect or Item itemtoinspect, string PropName
  
 |} |}
item_func.1647985159.txt.gz · Last modified: 2022/09/03 22:41 (external edit)