Module br.player.has

These functions help in retrieving information if you have an item or not.

Has functions are stored in br.player.has and can be utilized by `local has = br.player.has` in your profile. For item has, `item` in the function represent the name in the items list defined in System/List/Items.lua

Functions

has.item () Checks if item is in your bags or not.
has.item (itemID) Checks if the specified `itemID` is in your bags or not.
has.stats.dps (The, A) Checks if an inventory item has any of chosen DPS stats.


Functions

has.item ()
Checks if item is in your bags or not. Note: `item` here refers to the name in the item list defined in System/List/Items.lua

Returns:

    boolean
has.item (itemID)
Checks if the specified `itemID` is in your bags or not. Note: `item` here is literally item, you pass the itemID to specify the item

Parameters:

  • itemID number The ID of the item to check for.

Returns:

    boolean
has.stats.dps (The, A)
Checks if an inventory item has any of chosen DPS stats.

Parameters:

  • The itemSlot slot number in the player's inventory where the item is located.
  • A desiredStat string representing the desired stat to check. It can be one of: 'agility', 'strength', 'intellect', 'crit', 'haste', 'mastery', 'versatility', or 'anyDps'. 'anyDps' checks for any DPS-related stat. If `desiredStat` is not recognized, it defaults to 'anyDps'.

Returns:

    bool True if the item has the chosen DPS stat, False otherwise.
generated by LDoc 1.5.0 Last updated 2024-11-26 17:42:33