collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Bebot for rk3 fix  (Read 5782 times)

0 Members and 1 Guest are viewing this topic.

Offline yueee

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Bebot for rk3 fix
« on: February 01, 2006, 03:44:03 pm »
just a tiny fix since rk3 uses a different port than the other servers, no idea if i missed a post about this issue. if thats the case ignore the post.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Bebot for rk3 fix
« Reply #1 on: July 14, 2006, 07:18:48 am »
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:
Code: [Select]
        // 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:
Code: [Select]
        // 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: 
Code: [Select]
$this -> aoc -> connect($server);New:
Code: [Select]
$this -> aoc -> connect($server, $port);

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Bebot for rk3 fix
« Reply #2 on: July 14, 2006, 06:40:42 pm »
I could have sworn i fixed this already, but bleh.

Added to SVN.
BeBot Founder and Fixer Kingpin

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Bebot for rk3 fix
« Reply #3 on: July 14, 2006, 07:31:57 pm »
I could have sworn i fixed this already, but bleh

I ran into it with v0.2.5 so maybe changes got overwritten somewhere along the line. I've managed to do stuff like that a few times...

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 300
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal