useSelf item: Difference between revisions

From OpenKore Wiki
Jump to navigation Jump to search
(Created page with '; useSelf_item [<item names>] : Automatically use items when certain conditions are met. This option specifies a comma-separated list of items that will…')
 
mNo edit summary
Line 1: Line 1:
; useSelf_item [<[[References#Item Names|item names]]>]
Automatically use items when certain conditions are met.
: Automatically use items when certain conditions are met. This option specifies a comma-separated list of items that will automatically be used on self.
 
:'''''Note:'''''
:* Only one of the listed items will be used, so if the listed items are Orange Potion, Red Potion, White Potion and the conditions are met and we have Orange Potion, it will be used.


''' Syntax: '''
== Syntax: ==
  useSelf_item [<item names>] {
  useSelf_item [<item names>] {
  dcOnEmpty [<boolean flag>]
  dcOnEmpty [<boolean flag>]
Line 13: Line 9:




''' Attribute definitions: '''
=== Attribute definitions ===
----
 
 
; useSelf_item [<[[References#Item Names|item names]]>]
: This option specifies a comma-separated list of items that will automatically be used on self.
 
:'''''Note:'''''
:* Only one of the listed items will be used, so if the listed items are Orange Potion, Red Potion, White Potion and the conditions are met and we have Orange Potion, it will be used.
 


:; dcOnEmpty [<boolean flag>]
; dcOnEmpty [<boolean flag>]
:: If this option is set, disconnect if there are no more items in inventory to use.
: If this option is set, disconnect if there are no more items in inventory to use.




''' Example '''
== Example ==


* Use Concentration Potion when Concentration Potion status is off and Kore is not sitting and it's in lockMap.
* Use Concentration Potion when Concentration Potion status is off and Kore is not sitting and it's in lockMap.
Line 27: Line 32:
  notWhileSitting 1
  notWhileSitting 1
  }
  }


[[Category:config.txt]]
[[Category:config.txt]]
[[Category:Items]]
[[Category:Items]]

Revision as of 00:59, 13 December 2009

Automatically use items when certain conditions are met.

Syntax:

useSelf_item [<item names>] {
	dcOnEmpty [<boolean flag>]

	# Self Conditions
}


Attribute definitions



useSelf_item [<item names>]
This option specifies a comma-separated list of items that will automatically be used on self.
Note:
  • Only one of the listed items will be used, so if the listed items are Orange Potion, Red Potion, White Potion and the conditions are met and we have Orange Potion, it will be used.


dcOnEmpty [<boolean flag>]
If this option is set, disconnect if there are no more items in inventory to use.


Example

  • Use Concentration Potion when Concentration Potion status is off and Kore is not sitting and it's in lockMap.
useSelf_item Concentration Potion {
	whenStatusInactive Concentration Potion
	inLockOnly 1
	notWhileSitting 1
}