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
-
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
-
Never used that module :) but you can try the following thing:
Goto the line 259 in that file and replace the line
if ((time() - $result[0][0]) > (60 * 60 * 48))
with this one
if ((time() - $result[0]) > (60 * 60 * 48))
Hope this works :)
-
change the line to:
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.
-
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 ;)
-
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.
-
Yeps, using yours and commented the others and left only the "return true" inside the function.
-
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
-
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
-
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.
-
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
-
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 :)