BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Ever on August 22, 2005, 04:22:31 am

Title: Bot restarts after !join
Post by: Ever 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
Title: Bot restarts after !join
Post by: Derroylo 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 :)
Title: Bot restarts after !join
Post by: Zacix 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.
Title: Bot restarts after !join
Post by: Ever 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 ;)
Title: Bot restarts after !join
Post by: Zacix 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.
Title: Bot restarts after !join
Post by: Ever on August 22, 2005, 05:06:17 pm
Yeps, using yours and commented the others and left only the "return true" inside the function.
Title: Bot restarts after !join
Post by: Zarkingu 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
Title: Bot restarts after !join
Post by: Zacix 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
Title: Bot restarts after !join
Post by: Zarkingu 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.
Title: Bot restarts after !join
Post by: Zacix on August 24, 2005, 01:28:25 pm
I'm 100% sure you don't have it...This (http://home.broadpark.no/~espenbb/Supanet/_item.php) 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
Title: Bot restarts after !join
Post by: Zarkingu 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 :)
SimplePortal 2.3.7 © 2008-2025, SimplePortal