HasAnyJunk

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "This function returns true if the specified bag contains any items that have been marked as junk, or false otherwise. == Arguments == ;bagId : A number representi...")
(excludeStolenItems argument (did this get added in a patch?))
 
Line 4: Line 4:
;bagId
;bagId
: A number representing the bag to check; it must be one of the built-in [[Globals#Bag|Bag]] values.
: A number representing the bag to check; it must be one of the built-in [[Globals#Bag|Bag]] values.
 +
;excludeStolenItems
 +
: A boolean value indicating whether to ignore stolen junk.
== Syntax ==
== Syntax ==

Latest revision as of 14:42, 4 November 2019

This function returns true if the specified bag contains any items that have been marked as junk, or false otherwise.

Arguments

bagId
A number representing the bag to check; it must be one of the built-in Bag values.
excludeStolenItems
A boolean value indicating whether to ignore stolen junk.

Syntax

if HasAnyJunk(BAG_BACKPACK) then
   --
   -- The player is carrying some junk.
   --
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox