https://github.com/jaliborc/unfit-1.0
Determines which items are usable or not for the player's class
https://github.com/jaliborc/unfit-1.0
items library lua world-of-warcraft
Last synced: 8 months ago
JSON representation
Determines which items are usable or not for the player's class
- Host: GitHub
- URL: https://github.com/jaliborc/unfit-1.0
- Owner: Jaliborc
- Created: 2011-04-25T14:55:03.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2024-01-06T14:51:50.000Z (about 2 years ago)
- Last Synced: 2024-01-06T15:51:37.113Z (about 2 years ago)
- Topics: items, library, lua, world-of-warcraft
- Language: Lua
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Unfit-1.0 :no_entry_sign:
[](https://www.patreon.com/jaliborc)
[](https://www.paypal.me/jaliborc)
[](https://bit.ly/discord-jaliborc)
World of Warcraft library to determine which items are usable or not given the player's class.
### API
Function | Input | Return
-------- | ----- | ------
.IsItemUnusable(item) | The item name, [ID](http://wowprogramming.com/docs/api_types#itemID), [hyperlink](http://wowprogramming.com/docs/api_types#hyperlink) or [string](http://wowprogramming.com/docs/api_types#itemString) | boolean
.IsClassUnusable(class, subclass, [slot]) | A class, subclass and inventory type as returned by [GetItemInfo](http://wowprogramming.com/docs/api/GetItemInfo) | boolean
.Embed(object) | A table you want to embed the rest of the API into. | nil
### Usage
To access Unfit functions, simply retrieve it from LibStub:
-- Load the library
local Unfit = LibStub("Unfit-1.0")
-- Call the functions
Unfit:IsItemUnusable(131683)
### :warning: Reminder!
If you use this library, please list it as one of your dependencies in the CurseForge admin system. It's a big help! :+1: