This looks easy to do. I if you can be more specific I can try to figure out.
What I need is basically automating this:
How to use it- Find the msgID, userID or topicID you need. Let's use msgID 51902990.
- Remove the last 4 digits from the msgID to get the directory name (if there are less than 4 digits, use 0): 5190.
- Put everything together behind the (above) URL and add ".html": http://loyce.club/archive/posts/5190/51902990.html.