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

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

Author Topic: Bot restarts after !join  (Read 3104 times)

0 Members and 1 Guest are viewing this topic.

Offline Ever

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Bot restarts after !join
« on: August 22, 2005, 04:22:31 am »
I'm pretty tired atm, so posting here and then going to sleep.

Don't know if this is something to do with the php version php-5.0.4 but I have the bot in pretty much in the default settings still and only customization done is the Zacix's files for php5.

Every time I try to send tell with !join the result is, that the bot restarts and the error I get is:

Fatal error: Cannot use string offset as an array in C:\bebot\modules\Rooster_RAID.php on line 259

Rooster_RAID.php file is the same that comes with BeBot v0.2.1.1

Offline Derroylo

  • Contributor
  • *******
  • Posts: 43
  • Karma: +0/-0
Bot restarts after !join
« Reply #1 on: August 22, 2005, 02:05:49 pm »
Never used that module :) but you can try the following thing:
Goto the line 259 in that file and replace the line
Code: [Select]

if ((time() - $result[0][0]) > (60 * 60 * 48))


with this one

Code: [Select]

if ((time() - $result[0]) > (60 * 60 * 48))


Hope this works :)
Derroylo 220/23 NT RK2

Offline Zacix

  • Contributor
  • *******
  • Posts: 73
  • Karma: +0/-0
Bot restarts after !join
« Reply #2 on: August 22, 2005, 03:42:53 pm »
change the line to:

Code: [Select]
if (empty($result) || (time() - $result[0][0]) > (60 * 60 * 12))

Derroylo's solution is wrong I'm afraid :) Another thing, don't think it's needed anymore really IF you have an open bot that is. E.g you've changed is_member function to always return true.
Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network

Offline Ever

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Bot restarts after !join
« Reply #3 on: August 22, 2005, 04:45:04 pm »
That did the trick :) thanks.

Yes, I'm trying to make open raid bot... so I'll try to find where to make that is_member = true thing, still trying to study php ;)

Offline Zacix

  • Contributor
  • *******
  • Posts: 73
  • Karma: +0/-0
Bot restarts after !join
« Reply #4 on: August 22, 2005, 04:52:36 pm »
Quote from: "Ever"
That did the trick :) thanks.

Yes, I'm trying to make open raid bot... so I'll try to find where to make that is_member = true thing, still trying to study php ;)


If you're using my bot.php, it should contain the correct statement, if not search around in bot.php.
Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network

Offline Ever

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Bot restarts after !join
« Reply #5 on: August 22, 2005, 05:06:17 pm »
Yeps, using yours and commented the others and left only the "return true" inside the function.

Offline Zarkingu

  • Contributor
  • *******
  • Posts: 34
  • Karma: +0/-0
Bot restarts after !join
« Reply #6 on: August 23, 2005, 09:27:35 pm »
Got a similar problem too. Did all the changes and everything seems to be working fine, except for the !result for rolling loot. Bot restarts when I use that command.

This is the error message I get.

Fatal error: Call to undefined method Item::GetSQLString() in D:\#Bots\Dmgraid\modules\Loot.php on line 167
Zarkingu 210 MP RK2

Offline Zacix

  • Contributor
  • *******
  • Posts: 73
  • Karma: +0/-0
Bot restarts after !join
« Reply #7 on: August 24, 2005, 09:30:30 am »
Quote from: "rogerDAT"
Got a similar problem too. Did all the changes and everything seems to be working fine, except for the !result for rolling loot. Bot restarts when I use that command.

This is the error message I get.

Fatal error: Call to undefined method Item::GetSQLString() in D:\#Bots\Dmgraid\modules\Loot.php on line 167


Check my thread in Custom Modules again, there's a new _item.php you need to download
Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network

Offline Zarkingu

  • Contributor
  • *******
  • Posts: 34
  • Karma: +0/-0
Bot restarts after !join
« Reply #8 on: August 24, 2005, 01:19:08 pm »
I allready got the _item.php from your thread.

I did some test with the other commands, and the !result command is the only one that makes the bot restart.
Zarkingu 210 MP RK2

Offline Zacix

  • Contributor
  • *******
  • Posts: 73
  • Karma: +0/-0
Bot restarts after !join
« Reply #9 on: August 24, 2005, 01:28:25 pm »
I'm 100% sure you don't have it...This is the link, and it should be copied into your includes folder. The one that comes with the zip-archive is not working. If you read my last sentence of first post in the thread, you'll probably see what I mean.

Edit: make sure you restart the bot to make the changes update
Zacix
Current projects:
RINGBot, BeBot branch
Neutnet, RK2 Neutral massmessage network

Offline Zarkingu

  • Contributor
  • *******
  • Posts: 34
  • Karma: +0/-0
Bot restarts after !join
« Reply #10 on: August 24, 2005, 02:49:49 pm »
I'm just stupid. I did download the file, but never copied it to the includes folder. Bot is not working just fine.

Thanks for help :)
Zarkingu 210 MP RK2

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 501
  • 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