Retrieve item: Difference between revisions
Jump to navigation
Jump to search
imported>MapleMario New page: '''boolean retrieve_item( int quantity, item it )''' <br />uses KoLmafia internal logic to gather the items in the least destructive manner. ''See the “acquire” documentation in the CL... |
imported>Bumcheekcity mNo edit summary |
||
Line 1: | Line 1: | ||
{{function| | |||
name=retrieve_item| | |||
returns=boolean| | |||
description=uses KoLmafia internal logic to gather the items in the least destructive manner. ''See the “acquire” documentation in the CLI manual for more details.''| | |||
p1=quantity| | |||
p1t=int| | |||
p1d=The quantity of the item you wish to retrieve| | |||
p2=itemname| | |||
p2t=item| | |||
p2d=The name of the item.| | |||
examplecode=# function to get your class-specific Epic Weapon hermit item | |||
boolean get_epic_item() | boolean get_epic_item() | ||
{ | { | ||
Line 16: | Line 23: | ||
return retrieve_item(1, epic_items[my_class()]); | return retrieve_item(1, epic_items[my_class()]); | ||
} | }| | ||
}} |
Revision as of 20:58, 22 February 2010
[[Data Types#{{{return_type}}}|{{{return_type}}}]] retrieve_item()