|
craized
|
 |
« on: December 02, 2005, 05:53:56 AM » |
|
UPDATED PRIVGROUPDescription: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
|
 |
« 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. 
|
|
|
|
|
Logged
|
<<< Hack's in Zend StudioAll my Custom Bebot files may be Found Here <-clicky
|
|
|
|
craized
|
 |
« Reply #2 on: December 02, 2005, 09:43:40 AM » |
|
Yea, I'm back for now.  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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #5 on: December 02, 2005, 10:03:51 PM » |
|
also !leave by tells seems to be broken
np nice job
|
|
|
|
|
Logged
|
|
|
|
|
craized
|
 |
« 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
|
 |
« 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
|
 |
« Reply #8 on: December 07, 2005, 03:19:00 AM » |
|
Error in line 90, in the function join.
|
|
|
|
|
Logged
|
|
|
|
|
Xenixa
|
 |
« Reply #9 on: December 07, 2005, 03:30:26 AM » |
|
In lines 90 and 97 a closing " )" is missing. Should look like this: 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 StudioAll my Custom Bebot files may be Found Here <-clicky
|
|
|
|
craized
|
 |
« 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
|
 |
« 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
Posts: 10
|
 |
« 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
|
 |
« 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 StudioAll my Custom Bebot files may be Found Here <-clicky
|
|
|
|
craized
|
 |
« 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]
|
|
|
|