I always dream with something like that when hunting catacombs, so it can highlight sqm of rare loot bodies
I always dream with something like that when hunting catacombs, so it can highlight sqm of rare loot bodies
Isn't that exactly what I am doing? Even if I check for corpses from inside the function that reads the loot messages I will still run into problems in situations where multiple monsters die between two invocations of the message handler (which frequently will happen regardless of how small we make the delay given to auto). Then there will be multiple new loot messages, and multiple new corpses but no real way to connect them to each others.
Thanks, it's the first wb script I've ever written.About your code, a few possible improvements:
- WindBot has string.explode and table.marge (equivalent of your mergeTable) baked in one of its standard libs (Mine, actually)
- WindBot has a few useful regexes like REGEX_LOOT baked in one of its standard libs (Mine, actually)
Other than that, pretty good stuff. The part about checking for looted bodies was really well thought...
I haven't really had that much of a look at your code, so I'm sorry if that's how you did that. That should work really well for the vast majority of the cases for the vast majority of the hunting places. When it doesn't, simply assuming both dropped the most valuable stuff seems like a valid option.