LibTextbook

This project is abandoned and its default file will likely not work with the most recent version of World of Warcraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

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.

  1. "Binds when picked up",
  2. "Binds when equipped",
  3. "Binds when used",
  4. "Quest Item",
  5. "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.


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

  • r14
    Aug 31, 2010
  • r3
    May 27, 2009