inInventory: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 7: Line 7:
== Examples ==
== Examples ==
It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting:
It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting:
  [[useSelf_skill]] [[skill name|AL_HOLYWATER]] {
  [[useSelf_skill]] [[References#Skill_Names|AL_HOLYWATER]] {
  [[notWhileSitting]] 1
  [[notWhileSitting]] 1
  '''inInventory''' Empty Bottle > 0
  '''inInventory''' Empty Bottle > 0

Revision as of 15:48, 9 February 2013

inInventory <item name> <range>
If this option is set, the block will only be used if the amount of each of the specified list of items in inventory are within the corresponding specified ranges. The value could be a comma-separated list of (<item name> <range>) pairs:
Syntax:
<item> <range>[, <item1> <range1>[, ...]]

Examples

It will use Aqua Benedicta if there are any Empty Bottle in your inventory and you are not sitting:

useSelf_skill AL_HOLYWATER {
	notWhileSitting 1
	inInventory Empty Bottle > 0
}

Notes

It will not recognize items that are equipped.