BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Alreadythere on September 15, 2005, 05:54:11 pm
-
I've moved my get_/set_setting() functions in a dedicated core/ module, and added a define() function.
Save this file as .php (http://www.m8y.de/ao/bebot/Settings.phps)
Usage is
$this -> bot -> settings -> get($name) to read setting $name
$this -> bot -> settings -> set($name, $value) to set setting $name to the value $value
$this -> bot -> settings -> define($name, $value) to set setting $name to the value $value
No need to edit the Bot.php for the settings functions anymore.
The module does need my $this -> bot -> get_tablename() function though.
-
Rewrote the module, added interface to read/set/define settings.
-
Oooooh.. nice, I likey!