Error when talking to a Mount Vendor in CLASSIC WoW #1

Closed
opened 2019-09-27 04:49:33 +00:00 by Taryble · 2 comments
Taryble commented 2019-09-27 04:49:33 +00:00 (Migrated from gogs.sergio.am)
Owner

On Classic Live server, this throws an error when the vendor has any items that would be shaded by the frames\RowShader.lua file AND are classified as "Misc" items (ItemType 15/"MISC").

Commenting out the line in frames\RowShader.lua fixes the issue.

local function Knowable(link)
local id = ns.ids[link]
if not id then return false end

local _, _, _, _, _, class, _, _, _, texture = GetItemInfo(link)
-- Next line is where the error happens
-- if class == MISC and select(2, C_ToyBox.GetToyInfo(id)) then return true end
if class == RECIPE or GARRISON_ICONS[texture] then return true end
end
On Classic Live server, this throws an error when the vendor has any items that would be shaded by the frames\RowShader.lua file AND are classified as "Misc" items (ItemType 15/"MISC"). Commenting out the line in frames\RowShader.lua fixes the issue. ```lua local function Knowable(link) local id = ns.ids[link] if not id then return false end local _, _, _, _, _, class, _, _, _, texture = GetItemInfo(link) -- Next line is where the error happens -- if class == MISC and select(2, C_ToyBox.GetToyInfo(id)) then return true end if class == RECIPE or GARRISON_ICONS[texture] then return true end end ```
code commented 2019-11-05 14:38:50 +00:00 (Migrated from gogs.sergio.am)
Author
Owner
<a href="/code/GnomishVendorShrinker/commit/47c7fd85817d9d0e0fd963c6b759564940262ab7">C_ToyBox doesn't exists in Classic. Fix #1...</a>
code commented 2019-11-05 15:01:38 +00:00 (Migrated from gogs.sergio.am)
Author
Owner

Thank you! code pushed, I'll update the release package at home.

Thank you! code pushed, I'll update the release package at home.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: WoW/GnomishVendorShrinker#1
No description provided.