In-game Functions: Difference between revisions

→‎Add Item to Bank: Added console command to search for item IDs
(Adding dungeon completions)
(→‎Add Item to Bank: Added console command to search for item IDs)
Line 20: Line 20:
! Attribute !! Type !! Optional? !! Default Value !! Description
! Attribute !! Type !! Optional? !! Default Value !! Description
|-
|-
| itemID || string || No || || The ID of the item.<br />For a complete list of items and their IDs, see: [[Table of Items]]
| itemID || string || No || || The ID of the item.
 
For a complete list of items, see: [[Table of Items]]. Item IDs are on their respective wiki page.
 
Item IDs can also be searched through the console with the following command: <code>console.log(game.items.filter(x => x.name.toLowerCase().includes('SEARCHTERM'.toLowerCase())).map((a) => a.id + ' - ' + a.name).join('\n'))</code>. Replace <code>SEARCHTERM</code> with any part of the item's name.
|-
|-
| quantity || int || No || || Quantity of item to add.
| quantity || int || No || || Quantity of item to add.