BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.3 support => Topic started by: kenneth on July 19, 2007, 11:39:02 pm

Title: older mods
Post by: kenneth on July 19, 2007, 11:39:02 pm
can the mods from bebot 0.2.0 be used with the enw bebot?
Title: Re: older mods
Post by: Dabaron on July 20, 2007, 12:01:36 am
For the most part, yes.  There are some old ones that don't overly work well in .3.x though.
Title: Re: older mods
Post by: Temar on July 20, 2007, 02:27:45 am
would the new comands thing be a prob tho?
or will it still add the command under the default access right?
Title: Re: older mods
Post by: Ebag333 on July 20, 2007, 07:36:00 am
Any older modules you'd have to either strip of everything fancy, or heavily modify to utilize all the new functions (settings, security, etc).

Should be relatively straightforward to port over, however.
Title: Re: older mods
Post by: Alreadythere on July 20, 2007, 01:29:28 pm
There shouldn't be a need for many changes when moving from 0.2 to 0.3.

Most important changes for modules are the table prefix system and the new security system.

To make a table local for a bot just put #___ (# followed by three _) before all your tablenames in SQL calls. Best would be to call $this->bot->db->define_tablename($tablename, $prefix) in the TABLE CREATE call though, with $tablename the name you are using (the part after #___ in your calls) and $prefix either true or false, depending on whether the table should be prefixed or not.

For hardcoded security checks in modules just call $this->bot->securiyt->check_access($name, $level), with $level on of the defined security levels (http://bebot.link/wiki/security) instead of any admin->in_group() calls or similar.

Of course, using the new settings system (http://bebot.link/wiki/settings), color tags (http://bebot.link/wiki/colors) or other new core modules (http://bebot.link/wiki/developers_handbook) may help.
SimplePortal 2.3.7 © 2008-2024, SimplePortal