If you run a ticker function with UseContainerItem wrapped inside and you happen to be in combat, you had better keep talking to the NPC or you'll get action blocked messages. UseContainerItem is a protected function, which doubles as a sell function.My solution is more efficient because it doesn't use C_Timer and actually reacts to the event that tells you when your request is throttled. It's not more complicated than it actually needs to be for the feature you want, especially if you're going to release it as an addon for others to use. You need more than this to be able to handle server throttling, not causing errors due to attempting to use inventory items from code and handling when you step away from the NPC. It can also break in the exact same way you wanted to work around if you're having a massive lag spike. It's a terrible solution for the reasons I mentioned.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |