If any of you could please help me on this step... I think this is where my line 127 issue might be?
Here is my startbot.php
<?php
/*
* StartBot.php - Starts and restarts the bot
*
* BeBot - An Anarchy Online & Age of Conan Chat Automaton
* Copyright (C) 2004 Jonas Jax
* Copyright (C) 2005-2010 Thomas Juberg, ShadowRealm Creations and the BeBot development team.
*
* Developed by:
* - Alreadythere (RK2)
* - Blondengy (RK1)
* - Blueeagl3 (RK1)
* - Glarawyn (RK1)
* - Khalem (RK1)
* - Naturalistic (RK1)
* - Temar (RK1)
*
* See Credits file for all aknowledgements.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License only.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* File last changed at $LastChangedDate: 2009-01-23 09:21:51 +0100 (Fri, 23 Jan 2009) $
* Revision: $Id: StartBot.php 1959 2009-01-23 08:21:51Z temar $
*/
/*
Take a decent stab at what OS we run on and try using some sane defaults
*/
$os = getenv("OSTYPE");
if (empty($os))
{
$os = getenv("OS");
}
if (preg_match("/^windows/i", $os))
{
/*
This default should work for Windows installs where php is installed to the bot directory.
*/
$php_bin = "php.exe";
$php_args = " -c ./ ";
$main_php = "Main.php";
/*
If the above fails you can try specifying full paths, example:
$php_bin = "C:\php\php.exe";
$main_php = "C:\BeBot\Main.php";
*/
}
else
{
/*
This is a sane default for the php binary on Unix systems.
If your php binary is located someplace else, edit the php_bin path accordingly.
*/
$php_bin = trim(shell_exec('which php'));
$php_args = " -c ./ ";
$main_php = "Main.php";
}
$confc = TRUE;
require_once "./Sources/Conf.php";
if($argv[1] != $conf -> argv)
{
echo "Use \"StartBot.php ".$conf -> argv."\" to start bot next time\n";
$argv[1] = $conf -> argv;
$conf -> ask("Press Enter to load Bot");
if(!$argv[1] || $argv[1] == "")
$argc = 1;
else
$argc = 2;
}
if(!empty($conf -> pw))
{
$pw = $conf -> pw;
$conf -> pw = NULL;
}
// Create the command to execute in the system() call of the main loop:
$systemcommand = $php_bin . $php_args . " " . $main_php;
if ($argc > 1)
{
$systemcommand .= " " . $argv[1];
}
while (true)
{
if($pw)
{
$fp = fopen('./conf/pw', 'w');
fwrite($fp, $pw);
fclose($fp);
}
$last_line = system($systemcommand);
if (preg_match("/^The bot has been shutdown/i", $last_line))
die();
else
sleep(1);
}
?>
and heres my conf/bot.conf
<?php
/*
These are the general settings of the bot:
*/
$ao_username = ""; // Account username
$ao_password = ""; // Account password (optional, will request on running of Bot if not entered here)
$bot_name = ""; // Name of the bot-character
$dimension = ""; // The name of the server you play on, or (1, 2 or 3 for AO)
$guild = ""; // Name of the guild running the bot (AOC only)
/*
Suggested values for owner and super_admin:
We suggest that the owner should be the main characer on the
account for $ao_username.
super_admis should be alts on the same account.
Defining a superadmin in the config file prevents their removal and banning.
You are able to add more superadmins with the ingame interface.
Superadmins defined in game are able to be removed and banned.
*/
$owner = ""; // Owner of the bot.
// $super_admin["Superadmin1"] = true;// Bot superadmins.
// $super_admin["Superadmin2"] = true;
// $other_bots["Bot1"] = true; // All other bots that are guildmembers/raidbotmembers
// $other_bots["Bot2"] = true;
$guildbot = true; // false if its a raidbot.
$guild_id = 00000001; // Only for AO guildbots! See ReadMe.txt on how to find out the id.
$log = "chat"; // logging all/chat/off
$log_path = "./log"; // relative/absolute path of logfiles
$log_timestamp = "none"; //Valid options are: datetime, date, time, none. Always defaults to datetime if missing or invalid.
/*
The next two entries define a list of additional core and module directories to be loaded after the core/ and custom/core/
btw the module/ and custom/module/ directories. The list is parsed as a comma-seperated list relative the the base directory
of the bot, without any / at the end of the directory names.
*/
$core_directories = ""; // optional additional core directories
$module_directories = ""; // optional additional module directories
$command_prefix = "!"; // Please make sure this is in a Reg-Exp format... (exampe: for "." use "\.")
// The prefix cannot be more then one character - either empty or one character (more only for regexp format)
$cron_delay = 30; // Number of seconds before the cron jobs get executed the first time.
$tell_delay = 2222; // Number of miliseconds between tells. (anti-flooding)
$reconnect_time = 60; // Time to wait for auto reconnect after an error has accured.
if(is_numeric($dimension))
$max_blobsize = 12000; // Maximum size of text blobs in byte. For AO
else
$max_blobsize = 8000; // Maximum size of text blobs in byte. For AoC
$accessallbots = FALSE; // Allow Access to All Bots in modules like BotStatistics
/*
WARNING! Enabling proxies will allow you to pull information from web servers if you have been blocked.
The more proxy addresses you have, the slower each lookup will be. It is recommended that no more than
one proxy be added at any given time. Proxies will only be used as a fallback (if the first lookup fails).
Format for $proxy_server_address: IP:PORT (The list is parsed as a comma-seperated list)
Example: $proxy_server_address = "4.2.2.2:80,4.2.2.3:80,4.2.2.4:80";
*/
$use_proxy_server = false; // Enable simple web proxy server for HTTP lookups?
$proxy_server_address = ""; // Proxy server to use address to use
?>