item

From Kolmafia
Revision as of 04:08, 29 September 2017 by imported>Aventuristo (Changed a subheader)
Jump to navigation Jump to search


This datatype represents any item in all of KoL. Note that unlike most special datatypes, item references can make use of the item ID number.

For example, you could assign the item plexiglass pants as follows:

item it = $item[ 1234 ];

The full range, besides $item[ none ], is too much to list and keep up with here. Please see the Wiki Items page for more item information.

Related Functions

void add_item_condition( int, item )

boolean autosell( int, item )

int autosell_price( item )

int available_amount( item )

boolean boolean_modifier( item, string )

boolean buy( [coinmaster], int, item )

int buy( int, item, int )

int buy_price( coinmaster, item )

boolean buy_using_storage( int, item )

int buy_using_storage( int, item, int )

boolean buys_item( coinmaster, item )

boolean can_equip( item )

boolean chew( int, item )

class class_modifier( item, string )

int closet_amount( item )

boolean craft( string, int, item, item )

string craft_type( item )

int creatable_amount( item )

int creatable_turns( [item], [int], [boolean] )

boolean create( int, item )

item daily_special()

int display_amount( item )

boolean drink( int, item )

boolean eat( int, item )

boolean eatsilent( int, item )

effect effect_modifier( item, string )

boolean equip( [slot], item )

int equipped_amount( item )

item equipped_item( slot )

int [item] extract_items( string )

item familiar_equipment( familiar )

item familiar_equipped_equipment( familiar )

int [item] get_campground()

int [item] get_chateau()

int [item] get_clan_lounge()

item get_dwelling()

int [item] get_ingredients( item )

int [item] get_inventory()

int get_power( item )

int [item] get_related( item, string )

int [item] get_shop()

boolean have_equipped( item )

boolean hermit( int, item )

float historical_age( item )

int historical_price( item )

boolean is_coinmaster_item( item )

boolean is_discardable( item )

boolean is_displayable( item )

boolean is_giftable( item )

boolean is_goal( item )

boolean is_npc_item( item )

boolean is_tradeable( item )

boolean is_trendy( item/familiar/skill/string )

boolean is_unrestricted( item/familiar/skill/string )

int item_amount( item )

float item_drop_modifier()

int [item] item_drops( [monster] )

record [int] item_drops_array( [monster] )

string item_type( item )

string last_item_message()

int mall_price( item )

item minstrel_instrument()

int npc_price( item )

float numeric_modifier( item, string )

float numeric_modifier( familiar, string, int, item )

item [int] outfit_pieces( string )

boolean overdrink( int, item )

boolean put_closet( int, [item] )

boolean put_display( int, item )

boolean put_shop( int, int, [int], item )

boolean put_stash( int, item )

void remove_item_condition( int, item )

boolean retrieve_item( int, item )

boolean sell( coinmaster, int, item )

int sell_price( coinmaster, item )

boolean sells_item( coinmaster, item )

int shop_amount( item )

int shop_price( item )

int stash_amount( item )

int storage_amount( item )

boolean take_closet( int, [item] )

boolean take_display( int, item )

boolean take_shop( [int], item )

boolean take_stash( int, item )

boolean take_storage( int, item )

buffer throw_item( item )

buffer throw_items( item, item )

item to_item( strict_string )

item to_item( int )

item to_item( string, int )

string to_plural( item )

slot to_slot( item )

boolean use( int, item )

int weapon_hands( item )

stat weapon_type( item )


Proxy Record Fields

Here are the proxy record fields for items. Proxy records are discussed in more detail here.

Field Data type Default value ASH Accessor Function / Notes
plural string ""
descid string ""
image string ""
smallimage string ""
levelreq int 0
quality string ""
adventures string ""
muscle string ""
mysticality string ""
moxie string ""
fullness int 0
inebriety int 0
spleen int 0
minhp int 0
maxhp int 0
minmp int 0
maxmp int 0
dailyusesleft int 0
notes string ""
quest boolean false
gift boolean false
tradeable boolean false
discardable boolean false
combat boolean false
combat_reusable boolean false
usable boolean false
reusable boolean false
multi boolean false
fancy boolean false
candy boolean false
seller coinmaster none
buyer coinmaster none
name_length int 0