魔兽世界 API:来自 PutItemInBag() 的 Return 值

World of Warcraft API: Return value from PutItemInBag()

PutItemInBag() 是否有任何 return 值,可能会告诉您它是否成功或包已满?

有一个 return 值,但只有 return 光标是否有一个项目。参见 FrameXML/MainMenuBarBagButtons.lua#L20

hadItem = PutItemInBag(inventoryID)

UI_ERROR_MESSAGE event will fire 如果包已满,错误类型为 13