View Full Version : TrinityCore WotLK Player:SendShowBank not working properly

04-24-2016, 12:50 AM
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.

local function muleBank(event, player, creature)
local mule = creature:GetGUID()
local guid = player:GetGUIDLow()
if spawn[guid] == mule then
player:SendBroadcastMessage("This is not your mule. You cannot access it's storage.")

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?

04-24-2016, 10:01 AM
does the NPC/mule have banker flag in it's npcflags?