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

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

Author Topic: older mods  (Read 4349 times)

0 Members and 1 Guest are viewing this topic.

Offline kenneth

  • BeBot Rookie
  • *
  • Posts: 17
  • Karma: +0/-0
older mods
« on: July 19, 2007, 11:39:02 pm »
can the mods from bebot 0.2.0 be used with the enw bebot?

Offline Dabaron

  • BeBot Apprentice
  • ***
  • Posts: 163
  • Karma: +0/-0
Re: older mods
« Reply #1 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: older mods
« Reply #2 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?

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: older mods
« Reply #3 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.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: older mods
« Reply #4 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 instead of any admin->in_group() calls or similar.

Of course, using the new settings system, color tags or other new core modules may help.

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 398
  • 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