BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: Tom on July 05, 2008, 02:01:50 am
-
I am playing on Bloodbrand(Ahriman) it will change soon to Bloodbrand but the previous name is Ahriman.
I have tried both Ahriman and Bloodbrand as a combination.
What am I doing wrong?
Vanitybot [LOGIN] [STATUS] Connecting
Vanitybot [LOGIN] [STATUS] Authenticating
Vanitybot [LOGIN] [RESULT] Error
Vanitybot [LOGIN] [STATUS] Logging in
AOChat: not expecting login.
I double, tripple and doublechecked the login, password and botname and it seems fine.
Should i write something else rather than:
$dimension = "Ahriman"; // Dimension number (1, 2 or 3)
-
Are you trying to run the bot from 64 bit linux?
-
No, 64bit Windows Vista.
Running it locally at the moment.
-
Not sure about 64bit windows, but in 64bit linux I had to change the following function in sources/aochat.php .
function SafeDecHexReverseEndian($value)
{
$result = "";
$hex = dechex($this -> ReduceTo32Bit($value));
$len = strlen($hex);
while($len < 8)
{
$hex = "0$hex";
$len++;
}
if (!function_exists("str_split"))
{
$bytes = $this -> my_str_split($hex, 2);
}
else
{
$bytes = str_split($hex, 2);
}
for($i = 3; $i >= 0; $i--)
$result .= $bytes[$i];
return $result;
}
to
function SafeDecHexReverseEndian($value)
{
$result = "";
$hex = dechex($this -> ReduceTo32Bit($value));
$len = strlen($hex);
while($len < 8)
{
$hex = "0$hex";
$len++;
}
if (!function_exists("str_split"))
{
$bytes = $this -> my_str_split($hex, 2);
}
else
{
$bytes = str_split($hex, 2);
}
$bytes = unpack("H*", pack("L*", $value));
for($i = 3; $i >= 0; $i--)
$result .= $bytes[$i];
return $result;
}
-
Didn't work :-\
Is there any file where you see the server IP's your connecting too?
Or am I doing right in just putting "Ahriman" there?
-
sources/Bot.php
// EU Servers
case "Ahriman":
$server = "proddm07.ams.ageofconan.com";
$port = 7021;
break;
Looks like your server is in there. Or in the latest revision anyway.
-
reinstalled everything.
removed all the tables.
Now it works.
thanks for your help.
-
I had the same problem.
The cause for me was I replaced the ./Source/Bot.php with one that was supposed to have backward compatibility for older modules.
I had to modify the Bot.php to include the AOC connections.
It was trying to connecto to AO chat servers.