Difference between revisions of "Retrieve item"

From Kolmafia
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
m
Line 1: Line 1:
'''boolean retrieve_item( int quantity, item it )'''
+
{{function|
<br />uses KoLmafia internal logic to gather the items in the least destructive manner. ''See the “acquire” documentation in the CLI manual for more details.''
+
name=retrieve_item|
 
+
returns=boolean|
<p><pre># function to get your class-specific Epic Weapon hermit item
+
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()]);
  
}</pre></p>
+
}|
 +
}}

Revision as of 20:58, 22 February 2010

[[Data Types#{{{return_type}}}|{{{return_type}}}]] retrieve_item()