• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore WotLK Player:SendShowBank not working properly

jar0fair

Emulation Addict
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.

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?
 
Top