inCart

From OpenKore Wiki
Revision as of 01:41, 27 April 2021 by 4epT (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Self Condition from config.txt:

inCart <item name> <range>
If this option is set, the block will be used if the amount of each of the specified list of items in cart 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 Cart Termination on Porings if there are 80 Emperiums inside the cart:

attackSkillSlot Cart Termination {
	inCart Emperium 80
	monsters Poring
}

State Conditions of the automacro eventMacros:

InCart
  • Description: Checks if the player has a certain quantity of an item in the cart, uses item name.
  • Does not support percentages.
Syntax:
InCart "<item name>" <Math condition operators>
Note the quotation marks.
Example:
InCart "Blue Potion" > 100
Set variables:
$.InCartLast => Saves the name of the last item that made InCart become true
$.InCartLastAmount => Saves the amount in cart of the last item that made InCart become true