Mercurial > wow > wowdb-profiler
comparison Main.lua @ 352:2776c8b1e253 WoD
Fixed an error with garrison profession NPCs and an error with a debug statement.
author | MMOSimca <MMOSimca@gmail.com> |
---|---|
date | Wed, 08 Oct 2014 15:33:05 -0400 |
parents | e7cbe43d8418 |
children | 6fc3f3e1be54 |
comparison
equal
deleted
inserted
replaced
351:e7cbe43d8418 | 352:2776c8b1e253 |
---|---|
2059 Debug("%s: Slot quantity is nil for loot slot %d of the entity with GUID %s and Type:ID: %s.", event_name, loot_slot, loot_info[loot_index], source_key) | 2059 Debug("%s: Slot quantity is nil for loot slot %d of the entity with GUID %s and Type:ID: %s.", event_name, loot_slot, loot_info[loot_index], source_key) |
2060 end | 2060 end |
2061 end | 2061 end |
2062 else | 2062 else |
2063 -- If this is nil, then the item's quantity could be wrong if loot_quantity is wrong, so we won't process this slot's loot. | 2063 -- If this is nil, then the item's quantity could be wrong if loot_quantity is wrong, so we won't process this slot's loot. |
2064 Debug("%s: Slot quantity is nil for loot slot %d of the entity with GUID %s and Type:ID: %s.", event_name, loot_slot, loot_info[loot_index], source_key) | 2064 Debug("%s: Slot quantity is nil for loot slot %d.", event_name, loot_slot) |
2065 end | 2065 end |
2066 end | 2066 end |
2067 end | 2067 end |
2068 end | 2068 end |
2069 | 2069 |
2400 Forge = forge_spell_ids, | 2400 Forge = forge_spell_ids, |
2401 } | 2401 } |
2402 | 2402 |
2403 | 2403 |
2404 local function RegisterTools(tradeskill_name, tradeskill_index) | 2404 local function RegisterTools(tradeskill_name, tradeskill_index) |
2405 local spell_id = tonumber(_G.GetTradeSkillRecipeLink(tradeskill_index):match("^|c%x%x%x%x%x%x%x%x|H%w+:(%d+)")) | 2405 local link = _G.GetTradeSkillRecipeLink(tradeskill_index) |
2406 local required_tool = _G.GetTradeSkillTools(tradeskill_index) | 2406 if link then |
2407 | 2407 local spell_id = tonumber(link:match("^|c%x%x%x%x%x%x%x%x|H%w+:(%d+)")) |
2408 if required_tool then | 2408 local required_tool = _G.GetTradeSkillTools(tradeskill_index) |
2409 for tool_name, registry in pairs(TRADESKILL_TOOLS) do | 2409 |
2410 if required_tool:find(tool_name) then | 2410 if required_tool then |
2411 registry[spell_id] = true | 2411 for tool_name, registry in pairs(TRADESKILL_TOOLS) do |
2412 if required_tool:find(tool_name) then | |
2413 registry[spell_id] = true | |
2414 end | |
2412 end | 2415 end |
2413 end | 2416 end |
2414 end | 2417 end |
2415 end | 2418 end |
2416 | 2419 |