Item: Difference between revisions
imported>Aventuristo m Displayed page title in lowercase |
imported>Aventuristo m Changed a subheader |
||
Line 112: | Line 112: | ||
{{Flink|stat|weapon_type|item}} | {{Flink|stat|weapon_type|item}} | ||
==Proxy Record Fields | ==Proxy Record Fields== | ||
Here are the proxy record fields for items. Proxy records are discussed in more detail [[Proxy Records|here]]. | Here are the proxy record fields for items. Proxy records are discussed in more detail [[Proxy Records|here]]. |
Revision as of 04:08, 29 September 2017
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 )
boolean boolean_modifier( item, string )
boolean buy( [coinmaster], int, item )
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 )
boolean craft( string, int, item, item )
string craft_type( item )
int creatable_turns( [item], [int], [boolean] )
boolean create( int, item )
item daily_special()
boolean drink( int, item )
boolean eat( int, item )
boolean eatsilent( int, item )
effect effect_modifier( item, string )
boolean equip( [slot], item )
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 [item] get_related( item, string )
int [item] get_shop()
boolean have_equipped( item )
boolean hermit( int, item )
float historical_age( 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 )
float item_drop_modifier()
int [item] item_drops( [monster] )
record [int] item_drops_array( [monster] )
string item_type( item )
string last_item_message()
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 )
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( int )
string to_plural( item )
slot to_slot( item )
boolean use( int, 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 |