StealthBot.net: Auto-Access script - StealthBot.net

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Auto-Access script

#1 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted September 03, 2009 - 07:40 AM

Auto-Access

Author: The-Black-Ninja
Version: 1.8 Revision 1
Description: Automatically gives access to users using a variety of methods.

Commands:
None. All settings can be edited in the scripts.ini under the [AutoAccess] section.


Example Usages:
Instead of listing the names of users that will be safe from access/flag change into a huge line, you will be able to assign them to a user group and anyone belonging to that group will not have their access changed. Here's an example on how to create a group for this purpose:

1. Open your Database Manager from the bot console.
2. Make sure the "Users and Groups" button is selected in the upper left corner and click the "Database" entry so it highlights in grey.
3. Click "Create Group" near the bottom of the window.
4. For this example, we will name this group, "Safe-Access"
5. Click on the "Safe-Access" group name and click the button, "Create User".
6. Enter the user's name into the field and press enter. The user is now part of the Safe-Access group without having any special access or flags to that specific group, making it an ideal storage area for our safe'd users without messing with whatever access/flags they have originally.
7. Click the "Apply and Close" button.
8. Go into the scripts.ini file, under the [AutoAccess] section, find the "ExemptGroup=" entry, remove the existing Group1 and put the group we just created in its place

Quote

ExemptGroup=Safe-Access
Save and close.

IF you're trying to add someone who's already part of another group and receive a "user already exists" error, follow these steps:

1. Click on the user's name that you wish to be added to our "safe" group.
2. At the left side of the window, you will see an area called, "Group(s)" and underneath the first drop-down menu (primary group), you will see some checkboxes that are eligible for the user to be in.
3. Click the name of our "safe" group in that area so the checkmark appears in the box.
4. Click the "Save" button underneath the "Ban message" textbox.
5. Click the "Apply and Close"
6. To make sure it worked, do a /whois on the user to be sure that the user is part of their original group as well as the group we just made.

This method will be ideal for organizing all specific usernames who you wish not to have their access affected by this script. No more adding users to a massively long line separated by commas or | characters :P



Important Notes:
  • Be absolutely sure you edit the settings in the scripts.ini file!!!!!
  • This script takes into account:
    • Access based on clan rank
    • clan ranks from your clan, as well as another clan
    • users with "safe" flag(s) so access won't be changed
    • users in "safe" user group(s) so access won't be changed

Attached File(s)



#2 User is offline   Parrothead Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 32
  • Joined: September-11 09

Posted November 26, 2009 - 12:49 AM

[07:47:06 PM] -- pr0 [46ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon).
[07:47:06 PM] Scripting runtime error '9' in AutoAccess: (line 346; column 0)
[07:47:06 PM] Subscript out of range: '[number: 0]'
[07:47:06 PM] Offending line: >>
[07:47:07 PM] Scripting runtime error '9' in AutoAccess: (line 346; column 0)
[07:47:07 PM] Subscript out of range: '[number: 0]'
[07:47:07 PM] Offending line: >>


I get that error when a person with access joins and they aren't in the clan.

[07:56:16 PM] Scripting runtime error '9' in AutoAccess: (line 111; column 0)
[07:56:16 PM] Subscript out of range
[07:56:16 PM] Offending line: >>


I get this when a member that needs access joins.

This post has been edited by Parrothead: November 26, 2009 - 12:56 AM


#3 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 26, 2009 - 02:40 AM

What version of Stealthbot are you using and what folder did you save this file to?

#4 User is offline   Parrothead Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 32
  • Joined: September-11 09

Posted November 26, 2009 - 03:12 AM

2.7.1 C:\Program Files

#5 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 26, 2009 - 04:45 AM

Scripts shouldn't be saved into Stealtbot's installation folder. Read the sticky on how to save your scripts.

#6 User is offline   Parrothead Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 32
  • Joined: September-11 09

Posted November 26, 2009 - 05:44 AM

Oh, misunderstanding my scripts are here.


C:\Documents and Settings\Parrot\Application Data\StealthBot\ClanBOT\scripts

This post has been edited by Parrothead: November 26, 2009 - 05:44 AM


#7 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 26, 2009 - 05:59 AM

I'm sorry, I can't reproduce your error. I just added someone with access who isn't part of a clan/safe group and their access gets removed without a problem. It also gave access to a person in my clan who doesn't have access.

#8 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted November 26, 2009 - 06:09 AM

Redownload the script? Your settings should not be effected if you just replace the .txt file.

This post has been edited by Neco: November 26, 2009 - 06:10 AM


#9 User is offline   UnknownKiD Icon

  • The NooB KiD
  • PipPip
  • Group: Members
  • Posts: 22
  • Joined: September-11 09

Posted November 26, 2009 - 07:04 AM

I have a question For the clan part do you put a space between it? or not space.
      WriteSettingsEntry "'// Clans that will get access/flags. Add more clans by following the format: Clan1|Clan2|Clan3", vbNullString
      WriteSettingsEntry "Clans", "ClanTTeP"


or


      WriteSettingsEntry "'// Clans that will get access/flags. Add more clans by following the format: Clan1|Clan2|Clan3", vbNullString
      WriteSettingsEntry "Clans", "Clan TTeP"

This post has been edited by UnknownKiD: November 26, 2009 - 07:05 AM

http://i674.photobuc...ernautStyle.jpg
Picture is way too big for a signature! -PhiX

#10 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted November 26, 2009 - 01:21 PM

Quote

Important Notes:

  • Be absolutely sure you edit the settings in the scripts.ini file!!!!!

Why are you editing the script itself and not looking for these settings in the scripts.ini, like the instructions tell you? You enter the clans like how it says:

Clan1|Clan2|Clan3

#11 User is offline   nhscooter Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: October-31 10

Posted March 28, 2011 - 11:22 AM

All this script is doing is removing people from the database. What can I do to make it stop doing that?
new_ghost-3@AzerothPosted Image

#12 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted March 28, 2011 - 01:22 PM

Give them the "Safe" flag.

#13 User is offline   Jolly_Jumper Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 39
  • Joined: May-07 12

Posted May 15, 2012 - 11:52 AM

Hmm so if i get this right this script will give access to everyone who joins channel who also got the "safe" flag and remove everyone who doesn't have the "safe" flag, does it autmatically give everyone in the set clan a safe flag or do i have to set that flag on every user i'd like having access?(this sounds rly weird to me, cause that would be just the same as setting access:S)

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users