|
Temar
|
 |
« on: June 22, 2007, 05:24:22 PM » |
|
i want a module like http://bebot.shadow-realm.org/index.php/topic,222.0.htmli 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
|
 |
« Reply #1 on: June 23, 2007, 07:07:10 AM » |
|
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.
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« 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
|
 |
« Reply #6 on: June 23, 2007, 11:07:53 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
|
 |
« Reply #7 on: June 23, 2007, 07:13:43 PM » |
|
it seem the setting arnt changeing 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
|
 |
« Reply #8 on: June 23, 2007, 09:29:45 PM » |
|
this is wat i got in console 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
|
 |
« Reply #9 on: June 23, 2007, 10:11:59 PM » |
|
MySQL version 5.0.32 gnight cya tomorrow 
|
|
|
|
|
Logged
|
MSN messenger: chris_smith96 at hotmain dot com Xfire: chriss96
|
|
|
|
Alreadythere
|
 |
« 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
|
 |
« 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 gid field compareto condition 5 faction clan = 5 level 140 >=
from mysql - flexible_groups 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 To [Battle150]: !join [Battle150]: I only listen to members of this bot.
|
|
|
|
|
Logged
|
MSN messenger: chris_smith96 at hotmain dot com Xfire: chriss96
|
|
|
|
Alreadythere
|
 |
« Reply #12 on: June 24, 2007, 10:32:22 AM » |
|
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 = '&&'
|
|
|
|
|
Logged
|
|
|
|
|
Temar
|
 |
« 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
|
 |
« 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. 
|
|
|
|
|
Logged
|
|
|
|
|