Provides info about spell teaching items. Covers all recipes, mounts, mini-pets and class books.
To see LibTextbook in action check Auctionator_RecipeList
API
type,itemName,teachesSpell,reqSkill,reqSkillLevel,reqSpell,
binding,quality,reqLevel,reqClasses,reqRaces,
reqFaction,reqReputation,unique,note
= LibTextbookInfo(itemID,resolveText)
arguments
- itemID
- resolveText - if not false nor nil some values will be returned as text (see bellow)
returns
type
5 posible values:
- "MOUNT"
- "CRITTER"
- "RECIPE"
- "BOOK"
- "OTHER"
itemName
The name of the item. English and Russian only for now... sry.
teachesSpell
The ID of the spell that the item teaches. If resolveText than "spellName (spellRank)" will be returned instead.
reqSkill
The ID of the skill required to use the item. If resolveText than skill name will be returned instead.
reqSkillLevel
The level of the reqSkill required to use the item.
reqSpell
The ID of the passive spell required to use the item. If resolveText than spell name will be returned instead. E.g.: Mooncloth Tailoring, Artisian Riding,...
binding
The binding type of the item. If resolveText than the text value will be returned.
- "Binds when picked up",
- "Binds when equipped",
- "Binds when used",
- "Quest Item",
- "Binds to account",
quality
The quality of the item. If resolveText than the text value will be returned.
- 0 "Poor"
- 1 "Common"
- 2 "Uncommon"
- 3 "Rare"
- 4 "Epic"
- 5 "Legendary"
- 6 "Artifact"
- 7 "Heirloom"
reqLevel
The character level required to use the item.
reqClasses
Classes the item is restricted to. This field is a bitmask.
- 1 "Warrior"
- 2 "Paladin"
- 3 "Hunter"
- 4 "Rogue"
- 5 "Priest"
- 6 "Death Knight"
- 7 "Shaman"
- 8 "Mage"
- 9 "Warlock"
- 11 "Druid"
The value is a sum of 2^i over all included classes. If resolveText than the text value will be returned instead (like "Warrior, Paladin, Hunter").
reqRaces
Races the item is restricted to. This field is a bitmask.
- 1 "Human"
- 2 "Orc"
- 3 "Dwarf"
- 4 "Night Elf"
- 5 "Undead"
- 6 "Tauren"
- 7 "Gnome"
- 8 "Troll"
- 10 "Blood Elf"
- 11 "Draenei"
The value is a sum of 2^i over all included races. If resolveText than the text value will be returned instead (like "Human, Dwarf, Night Elf").
reqFaction
The Faction who's reputation is required to use the item. If resolveText than faction name will be returned instead.
reqReputation
The reputation standing with reqFaction required to use the item. If resolveText than reputation standing text will be returned instead.
unique
How many items the player is allowed to have. If resolveText than "Unique (n)" will be returned instead (n is omitted if =1).
note
4 posible values so far:
- "fake" - the item probably exists in game database but is unobtainable for players
- "removed" - the item is removed from the game at some point
- "beta" - the item existed in beta but never got into live
- "trainable" - the tradeskill has become available from trainers at some point, but the recipe might still exist in game
Localization
At this moment, all strings returned when resolveText == true are in English or Russian (thanks to StingerSoft). If anyone is eager to help by providing text in some other language feel free to contact me.
------------------------------------------------------------------------
r12 | TAP3AH | 2009-09-20 12:27:13 +0000 (Sun, 20 Sep 2009) | 2 lines
Changed paths:
M /trunk/LibTextbook.lua
added ToC patterns and plans
added The Sunreavers faction
------------------------------------------------------------------------
r11 | TAP3AH | 2009-09-19 19:10:25 +0000 (Sat, 19 Sep 2009) | 2 lines
Changed paths:
M /trunk/LibTextbook.lua
added new JC recipes
some errors corrected
------------------------------------------------------------------------
r10 | tap3ah | 2009-07-13 10:26:33 +0000 (Mon, 13 Jul 2009) | 3 lines
Changed paths:
M /trunk/LibTextbook.lua
Reins of the Spotted Nightsaber, Peep's Whistle and some Grimoires marked as "fake"
all warlock minion grimoires marked as "removed"
added 23 missing Russian item names
------------------------------------------------------------------------
Installation Guide
- Exit "World of Warcraft" completely
- Download the mod you want to install
- Make a folder on your desktop called "My Mods"
- Save the .zip/.rar files to this folder.
- If, when you try to download the file, it automatically "opens" it... you need to RIGHT click on the link and "save as..." or "Save Target As".
- Extract the file - commonly known as 'unzipping'
Do this ONE FILE AT A TIME!
- Windows
- Windows XP has a built in ZIP extractor. Double click on the file to open it, inside should be the file or folders needed. Copy these outside to the "My Mods" folder.
- WinRAR: Right click the file, select "Extract Here"
- WinZip: You MUST make sure the option to "Use Folder Names" is CHECKED or it will just extract the files and not make the proper folders how the Authors designed
- Mac Users
- StuffitExpander: Double click the archive to extract it to a folder in the current directory.
- Verify your WoW Installation Path
That is where you are running WoW from and THAT is where you need to install your mods.
- Move to the Addon folder
- Open your World of Warcraft folder. (default is C:\Program Files\World of Warcraft\)
- Go into the "Interface" folder.
- Go into the "AddOns" folder.
- In a new window, open the "My Mods" folder.
- The "My Mods" folder should have the "Addonname" folder in it.
- Move the "Addonname" folder into the "AddOns" folder
- Start World of Warcraft
- Make sure AddOns are installed
- Log in
- At the Character Select screen, look in lower left corner for the "addons" button.
- If button is there: make sure all the mods you installed are listed and make sure "load out of date addons" is checked.
- If the button is NOT there: means you did not install the addons properly. Look at the above screenshots. Try repeating the steps or getting someone who knows more about computers than you do to help.
Translations
When you download a mod, please be sure that the mod is compatible with your translation of wow. Some mods only work on the US versions, while some only work on some of the various European versions. These variations are called "Localizations".
TOC Numbers (Out of Date Mods)
When Blizzard patches WoW, they change the Interface number. This means that all mods will be "out of date" unless or until the author releases a new version for that interface. Some people go into the .toc files and update the numbers themselves, but this is STRONGLY advised against as it will cause problems locating possible incompatibilities addons. When you log into WoW after a patch, you DO NOT have to delete your interface directory. All you have to do is simply tell WoW to ignore the interface numbers and load all the mods anyway. All you have to do is, while at the "character select" screen, look in the lower left corner and click on the "addons" button. A window will pop up listing all your installed mods.
If you look in the upper left corner of that window there should be a box that says "Load Out of Date AddOns". You want to CHECK this box. Now simply go into WoW normally and all your mods should load. As of the 1.9 patch, you will have to do this after EVERY patch/update that Blizzard posts! If you encounter any problems with a mod after a patch, please be sure to let the author of the mod know so they can fix it.
See also: About "Out Of Date AddOns"
Mac Support
WoW addons are not platformed based. As such, they can be used on either Mac or PC. You can extract both .zip and .rar files on a Mac using StuffitExpander.
Directory Structure
World of Warcraft
|_ Interface
|_AddOns
|_*AddonName*
|_ *AddonName*.toc
|_ *AddonName*.xml
|_ *AddonName*.lua
|_ (possibly others as well)...