I haven't looked at yueee's fix, but the needed edits are quick.
Find line 127 in bot.php, and update the switch statement as below:
Old:
// Get dimension server
switch($this -> dimension)
{
case 0:
$server = "chat1.d1.funcom.com";
break;
case 2:
$server = "chat3.d1.funcom.com";
break;
case 3:
$server = "chat.dt.funcom.com";
break;
default:
$server = "chat2.d1.funcom.com";
}
New:
// Get dimension server
switch($this -> dimension)
{
case 0:
$server = "chat1.d1.funcom.com";
$port = 7012;
break;
case 2:
$server = "chat3.d1.funcom.com";
$port = 7012;
break;
case 3:
$server = "chat.dt.funcom.com";
$port = 7013;
break;
default:
$server = "chat2.d1.funcom.com";
$port = 7012;
}
Under the switch, make the following change.
Old: $this -> aoc -> connect($server);
New: $this -> aoc -> connect($server, $port);