- May 31, 2005
- 171
- 0
- 62
This was me thinking about VB apps, came up with this.
Should be pretty easy to be honest.
Basically, this puts your own forums ingame in real time. (Or any other forums you choose.)
You read your own forums, I'd reccomend setting up a special feed for this. I built one of these myself in PHP for PHPBB, but if you find this hard I'm sure RSS feed mods are VERY easy to come across.
Then you parse this into a NPC text file and save it. Your app repeats this process every 2 mins.
Here's some pseudo code for updating the NPC file. I don't know any languages so this is just a rough outline. (PHP style)
echo "[@main]
#SAY
Hello, welcome to the Notice Board. This shows the forums that can be found at http://www.myserver.com/forum.
<Read forum/@readforum>
Exit/@exit
[@readforum]";
$i = 0;
while($i < 10){
echo "<" . $topictitles[$i] . "/@postno" . $topicnos[$i] . ">";
$i++;
}
$i = 0;
while($i< 10){
echo "
[@postno" . $topicnos[$i] . "]
#SAY
" . $topictexts[$i]";
$i++;
}
Should be pretty easy to be honest.
Basically, this puts your own forums ingame in real time. (Or any other forums you choose.)
You read your own forums, I'd reccomend setting up a special feed for this. I built one of these myself in PHP for PHPBB, but if you find this hard I'm sure RSS feed mods are VERY easy to come across.
Then you parse this into a NPC text file and save it. Your app repeats this process every 2 mins.
Here's some pseudo code for updating the NPC file. I don't know any languages so this is just a rough outline. (PHP style)
echo "[@main]
#SAY
Hello, welcome to the Notice Board. This shows the forums that can be found at http://www.myserver.com/forum.
<Read forum/@readforum>
Exit/@exit
[@readforum]";
$i = 0;
while($i < 10){
echo "<" . $topictitles[$i] . "/@postno" . $topicnos[$i] . ">";
$i++;
}
$i = 0;
while($i< 10){
echo "
[@postno" . $topicnos[$i] . "]
#SAY
" . $topictexts[$i]";
$i++;
}