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?
December 02, 2008, 01:13:28 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: privgroup
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: privgroup  (Read 793 times)
0 Members and 1 Guest are viewing this topic.
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
privgroup
« on: June 22, 2007, 05:24:22 PM »

i want a module like
http://bebot.shadow-realm.org/index.php/topic,222.0.html
i know this new bot has some faction restriction etc but after like 5 tries i still havnt got a clue wat im doin with this flexible thing or if its what i want
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: privgroup
« Reply #1 on: June 23, 2007, 07:07:10 AM »

Let's try a step-by-step guide Smiley

  • Create a security group. This is done by /tell botname !addgroup Guests The group for guests set by minlevel and faction - of course you can use any different name and description Smiley
  • Give the group GUEST rights. /tell botname !security levels and then click on [GUEST] in the entry to the Guests group.
  • Set the minimal access level for join and leave to GUEST, using the interface you get with /tell botname !commands tell.
  • Open the flexible group configuration with /tell botname !flexible
  • Create an AND-combined flexible extension for the Guests group by clicking on the [AND-combined] link.
  • Set the guest group for flexible security to the just created group with /tell botname !set Flexible_Security Guest_Group Guests

Now minlevel and faction allow you to set guest status to your bot on general terms. Just a slight warned, guests defined by those settings can use all GUEST and ANONYMOUS commands of the bot.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #2 on: June 23, 2007, 07:44:55 AM »

Once i done that can any 1 with the right faction and level use !join when i have it set to guest?
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: privgroup
« Reply #3 on: June 23, 2007, 07:48:31 AM »

Yes.

It counts anyone that meets the faction and level requirement as a member of the Guests group, which means they got the access rights defined by the group (in the above listing GUEST rights).

So they can use every command GUEST is allowed to use.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #4 on: June 23, 2007, 08:37:39 AM »

it doesnt seem to be working
i did exactly wat u said
set faction to clan
and leminlevel to 140
!join is set to guest
i tryed to use !join with a 143 clan crat
and got
I only listen to members of this bot.
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: privgroup
« Reply #5 on: June 23, 2007, 09:20:42 AM »

Do /tell botname !security whois name on an admin, with name the name of the crat.
It should return GUEST.

And /tell botname !help with a GUEST character to check which commands guest can use.

And check /tell botname !flexible to make sure the group exists AND-combined and contains two conditions, level and faction.
Logged
Ebag333
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 132


Re: privgroup
« Reply #6 on: June 23, 2007, 11:07:53 AM »

Quote from: Chris96 on June 23, 2007, 08:37:39 AM
it doesnt seem to be working
i did exactly wat u said
set faction to clan
and leminlevel to 140
!join is set to guest
i tryed to use !join with a 143 clan crat
and got
I only listen to members of this bot.


It would be more helpful if you listed out the commands you used.

Also, check out the Wiki: http://bebot.shadow-realm.org/wiki/flexible_security
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #7 on: June 23, 2007, 07:13:43 PM »

it seem the setting arnt changeing
Quote
To [Battle150]: !minlevel
[Battle150]: Minimum level is currently set to 220.
To [Battle150]: !minlevel 100
[Battle150]: Minimum level is now set to 100.
To [Battle150]: !minlevel
[Battle150]: Minimum level is currently set to 220.
To [Battle150]: !faction
[Battle150]: Faction is currently set to exclude all.
To [Battle150]: !faction clan
[Battle150]: Faction is now set to  clan.
To [Battle150]: !faction
[Battle150]: Faction is currently set to exclude all.
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #8 on: June 23, 2007, 09:29:45 PM »

this is wat i got in console
Quote
Battle150 [2007-06-24 02:25:56]   [TELL]   [INC]   Temarfix: !faction clan
MySQL error (# 2) on query: INSERT INTO Battle150_security_flexible (gid, field, condition, compareto) VALUES (4, 'faction', '=', 'clan')
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition, compareto) VALUES (4, 'faction', '=', 'clan')' at line 1
Battle150 [2007-06-24 02:25:56]   [TELL]   [OUT]   -> Temarfix: Faction is now set to  clan.
Battle150 [2007-06-24 02:25:58]   [TELL]   [INC]   Temarfix: !faction
MySQL error (# 3) on query: SELECT condition, compareto FROM Battle150_security_flexible WHERE gid = 4 AND field = 'faction'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition, compareto FROM Battle150_security_flexible WHERE gid = 4 AND field = '' at line 1
MySQL error (# 4) on query: INSERT INTO Battle150_security_flexible (gid, field, condition, compareto) VALUES (4, 'faction', '!=', 'all')
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'condition, compareto) VALUES (4, 'faction', '!=', 'all')' at line 1
Battle150 [2007-06-24 02:25:58]   [TELL]   [OUT]   -> Temarfix: Faction is currently set to exclude all.
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #9 on: June 23, 2007, 10:11:59 PM »

MySQL version 5.0.32
gnight cya tomorrow Cheesy
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: privgroup
« Reply #10 on: June 24, 2007, 04:21:54 AM »

Forgot about that error in the 0.3.4 version (as it's fixed since shortly after release in SVN).

condition is a reserved word in mysql 5, so you need to escape it.
If you replace all instances of condition with `condition` the flexible security gui should work.
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #11 on: June 24, 2007, 08:25:53 AM »

i added ` to all condition in mysql things
now it seem to set the info but still not listen
from mysql - flexible_security
Quote
gid   field            compareto   condition   
5    faction    clan                =
5    level             140                >=
from mysql - flexible_groups
Quote
gid   name             description                access_level   
1    superadmin    Super Administrators    255
2    admin              Administrators        192
3    leader               Raid Leaders         128
5    guests              The group for guests set by minlevel and faction    1
the bot tell me that the faction is clan and minlevel is 140
!join is set to G
Test Subject is a 143 Clan
Quote
To [Battle150]: !join
[Battle150]: I only listen to members of this bot.
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: privgroup
« Reply #12 on: June 24, 2007, 10:32:22 AM »

I think you didn't create a flexible extension, the two steps below.

Quote from: Alreadythere on June 23, 2007, 07:07:10 AM
  • Open the flexible group configuration with /tell botname !flexible
  • Create an AND-combined flexible extension for the Guests group by clicking on the [AND-combined] link.

Then there should be a third entry in your table, field = 'join', op = '&&'
Logged
Temar
BeBot Developer
Grandmaster
********
Offline Offline

Gender: Male
Posts: 877



WWW
Re: privgroup
« Reply #13 on: June 24, 2007, 06:02:09 PM »

ah yes now it works it is prob related to the mysql prob cuz i asumed the rest was done so only did !faction and !minlevel after i fixed the module
Logged

MSN messenger: chris_smith96 at hotmain dot com
Xfire: chriss96
Ebag333
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 132


Re: privgroup
« Reply #14 on: June 26, 2007, 10:43:05 AM »

I would really suggest dropping the existing table, nabbing the SVN version of this, and redoing it.

I had a lot of problems with the condition column name, and as well the SVN version has a lot more error checking. Smiley
Logged
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.3 support > Topic: privgroup
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 8
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 16
Total: 17
Whackoeng

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.293 seconds with 29 queries. (Pretty URLs adds 0.032s, 4q)
Loading...