I'm currently the developer of a .NET based fishing bot called "Phish" (available at http://filexoom.com/files/2006/10/20/26226...shbot181500.zip for anyone who's interested)...
In order to implement some functionality, I'd like to harness the chatlog and the information it contains. Specifically, I'd like to be able to read from the last message posted in a reverse order until I find certain things. I'm wondering if brilliant developers have come up with an easy way of "indexing" (if that's the correct word?) the chat buffer.
What I do know is:
- The chat buffer begins at a fixed offset.
- The chat buffer stores fifty chat lines, then begins looping back on itself, over-writing old data.
- The individual chat lines are probably concatenated at a fixed-length in the buffer.
So we're dealing with something like
[ Chat Line 50 ]\0 [ Chat Line 1 ]\0 [ Chat Line 2]\0
With that said, I can only suspect that there's either a pointer or an integral offset someplace in memory that stores either the last item in the buffer, or the next available "slot".
Has anyone been able to harness this? Any pointers you can offer me?