Hello, I've come across an interesting error on my server. I've coded a pack mule to follow players around, if they purchase the item to spawn and despawn it. I recently added in functionality so that if it is your spawn, you may access your bank through it.
The bank tab does show, as expected, however trying to place an item in the bank, or remove an item from the bank, grays out the item, making it unselectable, and the items never transfer. The bank does work properly with the .bank command, or with banker npcs. Any idea what's going on here?
Code:
local function muleBank(event, player, creature)
local mule = creature:GetGUID()
local guid = player:GetGUIDLow()
if spawn[guid] == mule then
player:SendShowBank(creature)
else
player:SendBroadcastMessage("This is not your mule. You cannot access it's storage.")
end
end
The bank tab does show, as expected, however trying to place an item in the bank, or remove an item from the bank, grays out the item, making it unselectable, and the items never transfer. The bank does work properly with the .bank command, or with banker npcs. Any idea what's going on here?