Compact Vendor

Compact Vendor

16.5k Downloads

Lua Error talking to PVP vendor

wheatbread opened this issue ยท 1 comments

commented

I received the following error when I talked to Brave Stonehide in Orgrimmar in TBC classic, with v.9.0.2.201017:

Error:

119x ...\CompactVendor\frame_list_item_cost_frame_button.lua:162: attempt to call field 'GetCurrencyIDFromLink' (a nil value) [string "@CompactVendor\frame_list_item_cost_frame_button.lua"]:162: in function Set'
[string "@CompactVendor\frame_list_item_cost_frame.lua"]:26: in function Update' [string "@CompactVendor\frame_list_item.lua"]:375: in function Update'
[string "@CompactVendor\frame_list_item.lua"]:182: in function <CompactVendor\frame_list_item.lua:179>
[string "=[C]"]: in function Show' [string "@CompactVendor\frame_list_item.lua"]:342: in function SetItem'
[string "@CompactVendor\frame_list.lua"]:110: in function RefreshListDisplay' [string "@CompactVendor\frame_list.lua"]:71: in function Update'
[string "@CompactVendor\frame_list.lua"]:60: in function <CompactVendor\frame_list.lua:59>

Locals:
self = {
0 =
OnEnter = defined @CompactVendor\frame_list_item_cost_frame_button.lua:28
ShowRealMoney = true
OnLoad = defined @CompactVendor\frame_list_item_cost_frame_button.lua:21
Type =

{
}
Set = defined @CompactVendor\frame_list_item_cost_frame_button.lua:140
GetMoneyString = defined @CompactVendor\frame_list_item_cost_frame_button.lua:69
AutoSize = defined @CompactVendor\autosize.lua:12
Name = {
}
SetAfford = defined @CompactVendor\frame_list_item_cost_frame_button.lua:126
OnLeave = defined @CompactVendor\frame_list_item_cost_frame_button.lua:51
Icon = {
}
OnClick = defined @CompactVendor\frame_list_item_cost_frame_button.lua:55
Reset = defined @CompactVendor\frame_list_item_cost_frame_button.lua:59
}
costType = 1
item =
{
equipLoc = "INVTYPE_CLOAK"
HasRealExtendedCost = defined @CompactVendor\frame_list_item_methods.lua:25
index = 1
guid = "Creature-0-4380-450-1-12795-00003A3368@|cff0070dd|Hitem:18427::::::::54::::::::|h[Sergeant's Cloak]|h|r"
price = 0
extendedCost = true
CanLearnTextureTable =
{
}
stackCount = 1
icon = 133759
isPurchasable = true
CanRefund = defined @CompactVendor\frame_list_item_methods.lua:50
maxStackCount = 1
isUsable = true
IsMisc = defined @CompactVendor\frame_list_item_methods.lua:67
IsBattlePet = defined @CompactVendor\frame_list_item_methods.lua:75
exists = true
qualityColorR = 0
qualityColorHex = "ff0070dd"
CanLearn = defined @CompactVendor\frame_list_item_methods.lua:87
IsCurrency = defined @CompactVendor\frame_list_item_methods.lua:59
numAvailable = -1
IsRecipe = defined @CompactVendor\frame_list_item_methods.lua:63
subClassID = 1
qualityColorG = 0.439216
qualityColorB = 0.866667
texture = 133759
IsMount = defined @CompactVendor\frame_list_item_methods.lua:71
type = "Armor"
quality = 3
IsToy = defined @CompactVendor\frame_list_item_methods.lua:83
id = 18427
subType = "Cloth"
IsUsable = defined @CompactVendor\frame_list_item_methods.lua:17
classID = 4
IsPurchasable = defined @CompactVendor\frame_list_item_methods.lua:13
Exists = defined @CompactVendor\frame_list_item_methods.lua:9
HasExtendedCost = defined @CompactVendor\frame_list_item_methods.lua:21
link = "|cff0070dd|Hitem:18427::::::::54::::::::|h[Sergeant's Cloak]|h|r"
name = "Sergeant's Cloak"
IsHeirloom = defined @CompactVendor\frame_list_item_methods.lua:79
CanAfford = defined @CompactVendor\frame_list_item_methods.lua:54
}
parent = {
CreateCostPool = defined @CompactVendor\frame_list_item_cost_frame.lua:56
Cost3 = {
}
OnLoad = defined @CompactVendor\frame_list_item_cost_frame.lua:3
AutoSize = defined @CompactVendor\autosize.lua:12
Update = defined @CompactVendor\frame_list_item_cost_frame.lua:10
Cost1 = {
}
Costs =
{
}
Cost2 = {
}
Cost5 = {
}
PopFromPool = defined @CompactVendor\frame_list_item_cost_frame.lua:72
GetListItem = defined @CompactVendor\frame_list_item_cost_frame.lua:6
Cost4 = {
}
Cost6 = {
}
0 =
}
pool =
{
1 = {
}
2 = {
}
3 = {
}
4 = {
}
5 = {
}
}
cost = {
0 =
OnEnter = <f`

NPC I talked to: https://tbc.wowhead.com/npc=12793/brave-stonehide

commented

Sorry, just realized it isn't updated for TBC yet, I'm an idiot.