BeBot - An Anarchy Online and Age Of Conan chat automaton
Development => Module Requests => Topic started by: Slacklin on October 24, 2007, 09:24:20 am
-
Description:
In IGN there was an ability to use the command "info" to create very detailed help files using plain text documents. These files could be customized by the individual but allowed for information such as quest progressions, item creation and the like to be displayed. I am interested in seeing if this is possible to import into Bebot as this really is the last part of IGN that we use.
Commands:
!info: Starts up info at designated main page, should know side and profession of sender
!info <quest/textname>: Starts the designated text or quest name file but should read the profession of the sender
!info <quest/textname> <profession>: Starts the text or quest file based on item and profession, should know side of sender
I think that this would be very useful since many guilds were accustomed to using the file system to help their guildmates out.
Not sure how to code this into Bebot as I am not too familiar with the commands.
-
I do not think using text-files to do this is "the right way". BeBot is geared to use the database more. However I can see that editing the contents of the database using tells and so on can be tedious.
So a possible solution is to have users post their files online and then have the bot read them in with something like !info add <quest/textname> <pointer to file>
However a backup feature need to be in place to prevent accidentaly (or deliberately) overwriting something.
The bot can easily find both faction and profession of the person invoking the command, but one should also be able to specify profession and faction when one person invokes an !info on behalf of another player. Also one might want ot be able to have the bot send the info to a spesific player in a tell.
Now there will be a question of formatting the text files. BeBot has got a unique color module and existing text files I would think uses <font color>-tags. This is not really a problem as they will still be parsed. However using the BeBot ##color## system would be preferable as it's customisable in-game. This would entail a rewrite of your existing textfiles.
This would be quite a big module but it should be doable.
As for writing modules for BeBot you might want to have a look-see at modules/_ExampleModule.php as it contains a nice default framework.
-
Editing the files should not prove to be too difficult since it can be done using Real Expressions and the like or using FART (Find and replace text). I understand the DB is where keeping information should be but like you said, editing the bugger can be difficult if you are doing a lot of editing. I will post one of the file that I am referring to later tonight so you can get an idea of what we have.