L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 09:54:17 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Autoinvite and alert plugin discussion.
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: Autoinvite and alert plugin discussion.  (Read 1585 times)
0 Members and 1 Guest are viewing this topic.
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Autoinvite and alert plugin discussion.
« on: October 27, 2006, 04:34:52 PM »

http://www.jjones.co.uk/files/autoinv.php
http://www.jjones.co.uk/files/relay_guild.php
http://www.jjones.co.uk/files/alert.php

Just some little cosmetic things I did for our org bot:

- !guestlist is expanded slightly to turn the autoinvite on and off and alert status on and off (see screenshot).
- !alert (works same as autoinv, just notifies on and offline status to GC instead of inviting).
- autoinvite notifies to GC when someone is autoinvited and shows their main toon if available.
- all settings handled via Glarawyn's module (!settings).
- private group -> guild chat relay is now switchable to turn on automatically at bot start.

Requires:

Plugin Name: Persistant Whois cache
Plugin Name: Module settings
Plugin Name: Roster_Guild (modified)
Download information here

Information if autoinvite isn't working:
Here
« Last Edit: January 27, 2007, 09:04:38 PM by jjones666 » Logged
buff
Rookie
**
Offline Offline

Posts: 36


Autoinvite and alert plugin discussion.
« Reply #1 on: November 08, 2006, 03:14:36 AM »

Fatal error: Cannot use string offset as an array in D:\Viraid\BeBot_v0.2.5\modules\autoinv.php on line 53

Got this error msg when I turn autoinv.php one :X (using jj's autoinv.php file)
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Autoinvite and alert plugin discussion.
« Reply #2 on: November 08, 2006, 08:14:22 AM »

Hmm, I thought I fixed that already.  I'll need to check copy on the server at home after work.  Did it work before and suddenly not or?

Try replacing whole Autoinv function with code as below, slightly more longwinded but it should achieve same thing...

Code:
function AutoInv (&$bot)
{
$this -> bot = &$bot;

$result = $this -> bot -> db -> select("SELECT * FROM settings WHERE setting = 'auto_invite'");

if (empty($result))
$this -> bot -> db -> query("INSERT IGNORE INTO settings (setting, value) VALUES ('auto_invite', '0')");

$result = $this -> bot -> db -> select("SELECT * FROM settings WHERE setting = 'auto_invite'");
$this -> auto = $result[0][1];
}
Logged
buff
Rookie
**
Offline Offline

Posts: 36


Autoinvite and alert plugin discussion.
« Reply #3 on: November 14, 2006, 07:50:30 PM »

works now, thnx jj Wink
Logged
Llesa
Freshman
*
Offline Offline

Posts: 1


Autoinvite and alert plugin discussion.
« Reply #4 on: November 26, 2006, 10:12:42 AM »

Hi Smiley

I've been trying to download this module but the link seems to be broken. Is there any other place I can try?
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Autoinvite and alert plugin discussion.
« Reply #5 on: November 26, 2006, 12:15:32 PM »

Should work now I hope.

-jj-
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Autoinvite and alert plugin discussion.
« Reply #6 on: December 21, 2006, 10:46:27 AM »

Is that the updated version talked about in >this< thread? Because to me it seems to be just a copy from the 0.2.10 bot, without the last_seen column. Or maybe I am just doing something wrong here, would not surprise me. Smiley
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Autoinvite and alert plugin discussion.
« Reply #7 on: December 21, 2006, 10:57:15 AM »

http://bebot.shadow-realm.org/index.php/topic,135.msg4117.html#msg4117

Is this what you want?
Logged

Eternalist
General of The Syndicate
pusikas
Experienced
****
Offline Offline

Posts: 161


Autoinvite and alert plugin discussion.
« Reply #8 on: December 21, 2006, 11:03:23 AM »

Yes! I think so, alt least. Was trying to get JJ's modified !alts and !whois to work. Well, it does work right now, but spams about not finding the lastseen column. Will try this out.
Logged

Luuv  Bot-Keeper of Vengeance ^^*
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Autoinvite and alert plugin discussion.
« Reply #9 on: January 13, 2007, 07:07:54 PM »

Quote from: jjones666 on October 27, 2006, 04:34:52 PM
http://www.jjones.co.uk/files/autoinv.php
http://www.jjones.co.uk/files/relay_guild.php
http://www.jjones.co.uk/files/alert.php

Just some little cosmetic things I did for our org bot:

- !guestlist is expanded slightly to turn the autoinvite on and off and alert status on and off (see screenshot).
- !alert (works same as autoinv, just notifies on and offline status to GC instead of inviting).
- autoinvite notifies to GC when someone is autoinvited and shows their main toon if available.

obviously requires all of Xen's fixes above - I had to also delete and re-add guests for it to work correctly (hence option in !guestlist to do that) :-)

prolly crap, it's useful to me tho :-)

I updated these again, with a few sanity checks, obviously you shouldn't be able to add someone to notify/alert list without them being on the guestlist first :-)

http://www.jjones.co.uk/files/autoinv.php
http://www.jjones.co.uk/files/alert.php

-jj-
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Autoinvite and alert plugin discussion.
« Reply #10 on: January 16, 2007, 07:46:55 PM »

Converted alert.php and autoinv.php to use Glara's new module settings plugin for all settings.

Above links apply.

-jj-
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Autoinvite and alert plugin discussion.
« Reply #11 on: January 17, 2007, 02:33:44 AM »

Autoinv.php was updated - same link applies.

-jj-
Logged
ghostimage
Freshman
*
Offline Offline

Posts: 13


Autoinvite and alert plugin discussion.
« Reply #12 on: January 17, 2007, 06:59:38 AM »

Fatal error: Call to a member function create() on a non-object in C:\Temp\BeBot
-php_v5.1.5\BeBot-php_v5.1.4\modules\Alert.php on line 52

Same error on both Alert.php and AutoInv.php - I guess I'm missing some small tweak in bot.php somewhere?

*edit* Here's the line in question:

   $this -> bot -> set -> create ($module, "status", FALSE, $longdesc, "On;Off", FALSE, $disporder=1);
« Last Edit: January 17, 2007, 07:01:58 AM by ghostimage » Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Autoinvite and alert plugin discussion.
« Reply #13 on: January 17, 2007, 07:01:49 AM »

No, you are probably missing the new settings module. Scroll 3 posts up.  Wink
Logged

Luuv  Bot-Keeper of Vengeance ^^*
ghostimage
Freshman
*
Offline Offline

Posts: 13


Autoinvite and alert plugin discussion.
« Reply #14 on: January 17, 2007, 07:02:46 AM »

Quote from: pusikas on January 17, 2007, 07:01:49 AM
No, you are probably missing the new settings module.

Nope, got that up and running. No problems with it that I've seen so far (checked the db and it's got the settings table etc).
Logged
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Autoinvite and alert plugin discussion.
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[Today at 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 17
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 14
Total: 15
Elesar1

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.336 seconds with 29 queries. (Pretty URLs adds 0.047s, 4q)
Loading...