L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 04:57:45 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: List command for Bebot
Pages: [1]   Go Down
« previous next »
Print
Author Topic: List command for Bebot  (Read 304 times)
0 Members and 1 Guest are viewing this topic.
Slacklin
Rookie
**
Offline Offline

Posts: 30


List command for Bebot
« on: October 24, 2007, 02: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.
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: List command for Bebot
« Reply #1 on: October 24, 2007, 09:47:48 AM »

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.

Logged

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

Posts: 30


Re: List command for Bebot
« Reply #2 on: October 24, 2007, 08:52:35 PM »

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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Development > Module Requests > Topic: List command for Bebot
« previous next »
 
Jump to:  

Recent
Log playtime from buddys ...
by Temar
[Today at 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]

Delete member from Bot al...
by Alreadythere
[November 14, 2008, 12:17:54 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11034
Total Topics: 1495
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 4
Guests: 22
Total: 26
End
Elesar1
Zeephonz

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.446 seconds with 28 queries. (Pretty URLs adds 0.026s, 4q)
Loading...