collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: List command for Bebot  (Read 2295 times)

0 Members and 1 Guest are viewing this topic.

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
List command for Bebot
« 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.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: List command for Bebot
« Reply #1 on: October 24, 2007, 04:47:48 pm »
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.

The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: List command for Bebot
« Reply #2 on: October 25, 2007, 03:52:35 am »
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.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 207
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal