Lua Error When selling
squish88 opened this issue ยท 1 comments
- Addon version: Scrap-10.0.5 for WoW-10.0.2.zip
Describe the bug (see LUA below)
I opened the vendor sale screen on my YAK while my character screen was open. I then right-click sold a helmet from my bag, and got the below LUA error...
Message: Interface/AddOns/Scrap/addons/merchant/learning.lua:45: attempt to index global 'Charsets' (a nil value)
Time: Wed Nov 30 16:47:31 2022
Count: 1
Stack: Interface/AddOns/Scrap/addons/merchant/learning.lua:45: attempt to index global 'Charsets' (a nil value)
[string "@Interface/AddOns/Scrap/addons/merchant/learning.lua"]:45: in function OnItemSold' [string "@Interface/AddOns/Scrap/addons/merchant/learning.lua"]:28: in function <Interface/AddOns/Scrap/addons/merchant/learning.lua:26> [string "=[C]"]: in function
UseContainerItem'
[string "@Interface/FrameXML/ContainerFrame.lua"]:1409: in function `ContainerFrameItemButton_OnClick'
[string "@Interface/FrameXML/ContainerFrame.lua"]:1461: in function <Interface/FrameXML/ContainerFrame.lua:1448>
Locals: self =
{SendSignal = defined @Interface/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua:82
RegisterMessage = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:90
UnregisterMessage = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:153
SendMessage = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:59
UnregisterSignal = defined @Interface/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua:78
GetDecay = defined @Interface/AddOns/Scrap/addons/merchant/learning.lua:79
RegisterEvent = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:90
UnregisterAllMessages = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:174
IsActive = defined @Interface/AddOns/Scrap/addons/merchant/learning.lua:75
OnItemSold = defined @Interface/AddOns/Scrap/addons/merchant/learning.lua:41
OnEnable = defined @Interface/AddOns/Scrap/addons/merchant/learning.lua:25
UnregisterAllEvents = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:174
OnItemRefund = defined @Interface/AddOns/Scrap/addons/merchant/learning.lua:56
RegisterSignal = defined @Interface/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua:74
NewModule = defined @Interface/AddOns/Scrap/libs/WildAddon-1.0/WildAddon-1.0.lua:68
UnregisterEvent = defined @Interface/AddOns/BigWigs/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua:153
Tag = "SCRAP_"
}
id = 198028
rate = 0.382000
(*temporary) = nil
(*temporary) = 198028
(*temporary) = 1
(*temporary) = 1
(*temporary) = 0.382000
(*temporary) = "Sleet Shined Skullguard"
(*temporary) = "[Sleet Shined Skullguard]"
(*temporary) = "attempt to index global 'Charsets' (a nil value)"
C =
hooksecurefunc = defined @Interface/AddOns/Scrap/libs/C_Everywhere/C_Everywhere.lua:37
rawfind = defined @Interface/AddOns/Scrap/libs/C_Everywhere/C_Everywhere.lua:35
GetContainerItemPurchaseInfo = defined @Interface/AddOns/Scrap/libs/C_Everywhere/C_Everywhere.lua:45
locate = defined @Interface/AddOns/Scrap/libs/C_Everywhere/C_Everywhere.lua:36
GetContainerNumSlots = defined =[C]:-1
UseContainerItem = defined =[C]:-1
GetContainerItemID = defined =[C]:-1
GetContainerItemInfo = defined =[C]:-1
GetContainerItemQuestInfo = defined @Interface/AddOns/Scrap/libs/C_Everywhere/C_Everywhere.lua:45
}
L =
Removed = "Set as useful: %s"
SoldJunk = "You sold your junk for %s"
Tutorial_Button = "Scrap will automatically sell all your junk whenever you visit a merchant. But you can manually sell it: simply Left-Click on the Scrap button.
Right-Click on the button to bring extra options."
AutoRepair = "Automatically Repair"
DestroyWorthless = "Destroy Worthless"
SafeMode = "Safe Mode"
LowConsume = "Low Consumables"
Junk = "Junk"
Tutorial_Drag = "What if you want to tell Scrap which items to sell or not? Simply Drag it