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?
December 02, 2008, 01:02:00 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: older mods
Pages: [1]   Go Down
« previous next »
Print
Author Topic: older mods  (Read 382 times)
0 Members and 1 Guest are viewing this topic.
kenneth
Freshman
*
Offline Offline

Posts: 16


older mods
« on: July 19, 2007, 04:39:02 PM »

can the mods from bebot 0.2.0 be used with the enw bebot?
Logged
Dabaron
Apprentice
***
Offline Offline

Gender: Male
Posts: 145


Re: older mods
« Reply #1 on: July 19, 2007, 05:01:36 PM »

For the most part, yes.  There are some old ones that don't overly work well in .3.x though.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: older mods
« Reply #2 on: July 19, 2007, 07:27:45 PM »

would the new comands thing be a prob tho?
or will it still add the command under the default access right?
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Ebag333
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 132


Re: older mods
« Reply #3 on: July 20, 2007, 12: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.
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: older mods
« Reply #4 on: July 20, 2007, 06:29:28 AM »

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.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: older mods
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 18
Total: 18

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.244 seconds with 30 queries. (Pretty URLs adds 0.025s, 4q)
Loading...