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 22, 2008, 01:18:20 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: Updated PrivGroup Module - Additional functionality
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: Updated PrivGroup Module - Additional functionality  (Read 2960 times)
0 Members and 1 Guest are viewing this topic.
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Updated PrivGroup Module - Additional functionality
« on: December 02, 2005, 05:53:56 AM »

UPDATED PRIVGROUP

Description:
A module used to control all private group functions.

Features
!lock
Locks and unlocks bot invites.

!forceinvite <player>
Allows admins and raidleader to invite players through a lock and faction restrictions.

!faction <omni|neutral|clan|all>
Allows admins to set which faction will be allowed to enter the bot.

!faction exclude <omni|neutral|clan>
Allows admins to select a faction to be disallowed bot entry.

!leave
Leave the bot.

!kick
Leave the bot.

!kick <player> [reason]
Allows admins to kick a player with optional reason.

!join
Request bot invite.

!chat
Request bot invite.

!invite
Request bot invite.

!invite <player>
Invite other to bot.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Xenixa
BeBot Contributor
Expert
*******
Offline Offline

Posts: 307



Updated PrivGroup Module - Additional functionality
« Reply #1 on: December 02, 2005, 08:00:12 AM »

*Rubs his eye's*

Nope not a Mirrage... that is a Craized posting something new. Smiley
Logged

<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Updated PrivGroup Module - Additional functionality
« Reply #2 on: December 02, 2005, 09:43:40 AM »

Yea, I'm back for now. Smiley My org leader needed some bot tweaks and it got me back into it. I plan to be making more modules soon... Haven't wrote any help yet though. ><
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Wanuarmi
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 121


Updated PrivGroup Module - Additional functionality
« Reply #3 on: December 02, 2005, 12:30:00 PM »

hey shouldnt exclude

if($msg != 'All' || $mode != 'Exclude') {

be in lowercase? thats whats being passed here

else if (preg_match('/^'.$this -> bot -> commpre.'faction exclude (.+)/i', $msg, $info)) $c = $this -> faction($name, 'exclude', ucfirst($info['1']));

oh and it would be very nice if these settings could persist between reboots... if you are not doing that please let me know that Ill have to change mine

ps: guess I only need to change the initial variables
        $this -> faction = 'All';
        $this -> mode = 'include';
Logged
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Updated PrivGroup Module - Additional functionality
« Reply #4 on: December 02, 2005, 09:43:37 PM »

You're right, I'm glad you noticed. I'm updating it as soon as I finish debugging.

I've also tweaked this code. I've added a private group notification when someone tries to enter a locked bot.

Also yea, I don't like cluttering up databases for just a couple things, and I guess I did expect you to hard code in your default settings.

Glad to be back, thanks for the help.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Wanuarmi
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 121


Updated PrivGroup Module - Additional functionality
« Reply #5 on: December 02, 2005, 10:03:51 PM »

also !leave by tells seems to be broken

np nice job
Logged
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Updated PrivGroup Module - Additional functionality
« Reply #6 on: December 03, 2005, 03:21:10 AM »

Thanks. Actually, I didn't want !leave or !lock to work in tells, so I've removed them from the command list.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Updated PrivGroup Module - Additional functionality
« Reply #7 on: December 06, 2005, 01:03:35 AM »

Updated a lot of code, message syntax has changed, and everything works much better. Same link, as usual.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Nogoal
Rookie
**
Offline Offline

Posts: 61


Updated PrivGroup Module - Additional functionality
« Reply #8 on: December 07, 2005, 03:19:00 AM »

Error in line 90, in the function join.
Logged
Xenixa
BeBot Contributor
Expert
*******
Offline Offline

Posts: 307



Updated PrivGroup Module - Additional functionality
« Reply #9 on: December 07, 2005, 03:30:26 AM »

In lines 90 and 97 a closing ")" is missing.
Should look like this:
Code:
90:   $this -> bot -> send_pgroup(count($this -> bot -> commands['pgmsg']['online'] -> pgroup));

97:   $this -> bot -> send_pgroup($this -> highlight.$name.'</font> has attempted to join <botname>');
Logged

<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Updated PrivGroup Module - Additional functionality
« Reply #10 on: December 07, 2005, 03:31:31 AM »

Thank you, updated.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Re: Updated PrivGroup Module - Additional functionality
« Reply #11 on: December 26, 2005, 04:10:52 PM »

Updated to use BANLIST MODULE.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

ZubZero
Freshman
*
Offline Offline

Posts: 10


Re: Updated PrivGroup Module - Additional functionality
« Reply #12 on: January 15, 2006, 12:23:06 PM »

Parse error: parser error, unexpected '{' in /home/zubzero/BeBot_v0.2.2/modules/PrivGroup.php on line 70

Havent modified the file or anything.
Running php 4.4.1
Logged
Xenixa
BeBot Contributor
Expert
*******
Offline Offline

Posts: 307



Re: Updated PrivGroup Module - Additional functionality
« Reply #13 on: January 16, 2006, 08:41:30 AM »

Just an FYI, some syntax errors I found.

Line 70 needs an extra closing ) before the opening brace.
In line Line 72 ucfirst() is mispelled ucifrst()
Line 77 is missing a concatination period just after $this -> highlight.$who
Line 85 needs an extra closing ) before the opening brace.
Logged

<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Re: Updated PrivGroup Module - Additional functionality
« Reply #14 on: January 16, 2006, 04:09:00 PM »

Thanks, updated.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

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: Updated PrivGroup Module - Additional functionality
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 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: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 16
Total: 16

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.89 seconds with 28 queries. (Pretty URLs adds 0.037s, 4q)
Loading...