collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Updated PrivGroup Module - Additional functionality  (Read 24550 times)

0 Members and 2 Guests are viewing this topic.

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Updated PrivGroup Module - Additional functionality
« on: December 02, 2005, 11: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.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Updated PrivGroup Module - Additional functionality
« Reply #1 on: December 02, 2005, 02:00:12 pm »
*Rubs his eye's*

Nope not a Mirrage... that is a Craized posting something new. :)
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Updated PrivGroup Module - Additional functionality
« Reply #2 on: December 02, 2005, 03:43:40 pm »
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. ><
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Updated PrivGroup Module - Additional functionality
« Reply #3 on: December 02, 2005, 06: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';

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Updated PrivGroup Module - Additional functionality
« Reply #4 on: December 03, 2005, 03:43:37 am »
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.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Wanuarmi

  • Contributor
  • *******
  • Posts: 121
  • Karma: +0/-0
Updated PrivGroup Module - Additional functionality
« Reply #5 on: December 03, 2005, 04:03:51 am »
also !leave by tells seems to be broken

np nice job

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Updated PrivGroup Module - Additional functionality
« Reply #6 on: December 03, 2005, 09: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.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Updated PrivGroup Module - Additional functionality
« Reply #7 on: December 06, 2005, 07:03:35 am »
Updated a lot of code, message syntax has changed, and everything works much better. Same link, as usual.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Updated PrivGroup Module - Additional functionality
« Reply #8 on: December 07, 2005, 09:19:00 am »
Error in line 90, in the function join.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Updated PrivGroup Module - Additional functionality
« Reply #9 on: December 07, 2005, 09:30:26 am »
In lines 90 and 97 a closing ")" is missing.
Should look like this:
Code: [Select]
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>');
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Updated PrivGroup Module - Additional functionality
« Reply #10 on: December 07, 2005, 09:31:31 am »
Thank you, updated.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Re: Updated PrivGroup Module - Additional functionality
« Reply #11 on: December 26, 2005, 10:10:52 pm »
Updated to use BANLIST MODULE.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline ZubZero

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Updated PrivGroup Module - Additional functionality
« Reply #12 on: January 15, 2006, 06: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

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: Updated PrivGroup Module - Additional functionality
« Reply #13 on: January 16, 2006, 02:41:30 pm »
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.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Re: Updated PrivGroup Module - Additional functionality
« Reply #14 on: January 16, 2006, 10:09:00 pm »
Thanks, updated.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 268
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal