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: privgroup  (Read 17074 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
privgroup
« on: June 23, 2007, 12:24:22 am »
i want a module like
http://bebot.link/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

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: privgroup
« Reply #1 on: June 23, 2007, 02:07:10 pm »
Let's try a step-by-step guide :)

  • 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 :)
  • 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #2 on: June 23, 2007, 02:44:55 pm »
Once i done that can any 1 with the right faction and level use !join when i have it set to guest?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: privgroup
« Reply #3 on: June 23, 2007, 02:48:31 pm »
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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #4 on: June 23, 2007, 03:37:39 pm »
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.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: privgroup
« Reply #5 on: June 23, 2007, 04:20:42 pm »
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.

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: privgroup
« Reply #6 on: June 23, 2007, 06:07:53 pm »
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.link/wiki/flexible_security

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #7 on: June 24, 2007, 02:13:43 am »
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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #8 on: June 24, 2007, 04:29:45 am »
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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #9 on: June 24, 2007, 05:11:59 am »
MySQL version 5.0.32
gnight cya tomorrow :D

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: privgroup
« Reply #10 on: June 24, 2007, 11: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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #11 on: June 24, 2007, 03:25:53 pm »
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.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: privgroup
« Reply #12 on: June 24, 2007, 05:32:22 pm »
I think you didn't create a flexible extension, the two steps below.

  • 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 = '&&'

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: privgroup
« Reply #13 on: June 25, 2007, 01:02:09 am »
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

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: privgroup
« Reply #14 on: June 26, 2007, 05:43:05 pm »
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. :)

 

* 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: 204
  • 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