I'm working on a plugin that uses items in the barter wallet, but I'm experiencing a few problems with the Wallet:ItemAdded() function being called for every single item in the wallet during the client load process. I would like to defer the event registration in my plugin to after the game has finished loading to avoid the call being made too soon. I've considered using updates on the main window for a period of time before registering the functions, but that doesn't seem to help in all situations as client load times can vary. The other method I've considered, but not tried, is to register the functions when the chat channels have been detected - from looking at the output to the chat window, this seems to happen after the wallet has loaded - but I'm a bit dubious encase the game load sequence changes in future.
Does anyone have any other tips I could try please? If any dev is still working on the Lua APIs, a call/event linked to game loading would be quite useful please.