StealthBot.net: ClanSafety Script - StealthBot.net

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

ClanSafety Script v1.1.20100211

#1 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 05, 2009 - 12:56 AM

Name: clansafety
Author: AwaKening
Version: 1.1.20100211

Purpose: Creates a text file in your botfolder and stores information about when a clan members leaves or is removed by shaman. Settings enable you to autodemote shamans online at the time if the threshhold is broken to keep someone from kicking most of your clan out. All settings are stored in scripts.ini. I recommend looking at them for more information.

Requirements: Stealthbot Version 2.7

Commands:

override <seconds> (allows a user to override clan safety for specified number of seconds)
safety <number> (display the last <number> of members to leave the clan that were logged)

Settings:

allowedKicks
How many members can leave clan in (timeframe) before demotions are made
Default = 2

timeFrame
Minutes allowed between kicking (allowedKicks #) members from Clan
Default = 120 (2 hours)

allowedUsers
Shamans with No Restrictions. They will still be logged, but not demoted.
Default = null

fileName
Filename within your bot folder to store tracking info by this script
Default = RemovedMembers.txt

viewlines
Default number of lines to return for viewlist if none is specified
Default = 3

ovrTime
Default timer in (seconds) of time to override protection if none specified
Default = 120 (2 minutes)

ovrMax
Max timer allowed in (minutes) for override timer if user specified higher
Default = 5

Additional Notes:
Chieftan rank is required by the bot to demote shamans and log; otherwise it will only log everything.

The functionality of this script hasn't changed since the last release. Only difference is that settings are moved to scripts.ini and commands are parsed through Event_Command now.

Updates:
' 02/11/2010
'    - Fixed a bug in override when no time was specified
'    - Slightly changed settings and commands creation
' 02/07/2010
'    - Fixed Error variable undefined Line 204
' 02/06/2010
'    - Cleaned up the Command Event
'    - Fixed the locked users entry spacing
'    - Fixed "Scripting runtime error '13' in clansafety: (line 304; column 1)" on demotions
' 01/10/2010
'    - Fixed a record change where a user showed +1 over limit, but the limit time had expired
'    - Added version to settings
' 10/12/2009
'    - Fixed Filename Variable to use GetSettingsEntry("Filename")
' 10/10/2009
'    - Fixed a typo in new Setting Entry
' 10/09/2009
'    - Moved command creation to settings statement due to an SB bug
'    - Added a safeguard to tie in with Shaman Rotation Script
' 10/03/2009 1.1.0
'    - Moved createobj timer to Event_Load
'    - Moved all settings to scripts.ini
'    - Converted commands to new Event_Command
' 06/13/2009
'    - Shaman dictionary is not reset everytime one of them logs on/off anymore
'    - Fixed Error in Event_LoggedOn
' 06/06/2009
'    - Array Items in the shaman dictionary should now update properly
'    - Fixed an array bug in TakeAction Sub
' 05/27/2009
'    - Fixed an issue with IsChief on initial load
' 05/18/2009 FULL RELEASE 1.0.0
'    - Added notation for user InChannel in the log
' 05/11/2009 BETA FIXES
'    - Commands to be added next release for Tracking list display
'    - Added commands for tracking list display
'    - Added override options for allowedUsers
'    - Fixed a dictionary error
'    - Added ClanMemberUpdate Event to register/remove shaman changes

Attached File(s)



#2 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 09, 2009 - 05:51 AM

Updated to avoid exploits with Shaman Rotation Script.

#3 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 10, 2009 - 07:46 PM

There was a minor typo issue with the new Setting Entry for "locked"

You only need to update to Revision 20091010 if you're using my Shaman Rotation script.

#4 User is offline   DemonHunter Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 176
  • Joined: September-12 09

Posted October 11, 2009 - 08:20 AM

wow, nice job. I really want this script. Thanks AwaKening. +rep
EDIT: I don't really need the protection but the logging thing is really important :D thanks again
EDIT2: Just one question, Does this script log when someone recruit a member too?

This post has been edited by DemonHunter: October 11, 2009 - 08:25 AM


#5 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 11, 2009 - 04:54 PM

It doesn't log when a member is recruited. The intention is only to protect the clan and log users leaving to track which shaman is removing them. You could request a script to log users joining. It's easy enough.

#6 User is offline   gurp Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: October-08 09

Posted October 11, 2009 - 08:15 PM

Hey, I don't get how to use script
can u please provide more info??.
I've done all the set up in script.ini and everything but it still doesn't rotate shaman.


THank You.

#7 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 11, 2009 - 08:34 PM

This isn't the rotation script.

#8 User is offline   gurp Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: October-08 09

Posted October 11, 2009 - 08:39 PM

View PostAwaKening, on 11 October 2009 - 08:34 PM, said:

This isn't the rotation script.

kk. LOL Fail..

#9 User is offline   DemonHunter Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 176
  • Joined: September-12 09

Posted October 11, 2009 - 08:41 PM

http://www.stealthbo...otation-script/
this is the rotation script

This post has been edited by DemonHunter: October 11, 2009 - 08:43 PM


#10 User is offline   DemonHunter Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 176
  • Joined: September-12 09

Posted October 12, 2009 - 01:17 PM

Sry for double posting but they removed edit button :(
 [06:15:05 AM] Scripting runtime error '500' in clansafety: (line 191; column 1)
 [06:15:05 AM] Variable is undefined: 'FileName'
 [06:15:05 AM] Offending line: >> 
 [06:15:05 AM] Scripting runtime error '500' in clansafety: (line 191; column 1)
 [06:15:05 AM] Variable is undefined: 'FileName'
 [06:15:05 AM] Offending line: >> 



I get this error can u tell me what i did wrong?

Script("FileName") = "ClanSafety.txt"

should i change this or leave it like this?

#11 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted October 13, 2009 - 02:10 AM

It was a bug from me converting it over to settings.ini. Fixed in Revision 20091012



#12 User is offline   DemonHunter Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 176
  • Joined: September-12 09

Posted October 13, 2009 - 07:05 AM

Oh cool. thx +rep

#13 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted January 11, 2010 - 05:24 AM

Updated to fix a minor bug with logging.

#14 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted January 13, 2010 - 11:51 PM

+rep nice awak!! im going to go requst the adding memebers like u siad. that'll be useful too!! once again goodjob!

#15 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted February 07, 2010 - 05:47 AM

Revision 2010/02/06

' - Cleaned up the Command Event
' - Fixed the locked users entry spacing
' - Fixed "Scripting runtime error '13' in clansafety: (line 304; column 1)" on demotions

The error was occuring only on shaman demotions.



#16 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted February 07, 2010 - 07:37 PM

Revision 2010.02.07

Variable undefined on line 204 fixed. New error from yesterday's update. Thanks Be-Eazie for catching it sooner than later Posted Image

This post has been edited by AwaKening: February 07, 2010 - 07:37 PM


#17 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted February 11, 2010 - 09:04 PM

Revision Update 2010.02.11

Fixed a bug with override

#18 User is offline   CaNe Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: February-13 10

Posted March 28, 2010 - 02:24 AM

i cant get it to work.. i dont understand wat folder i save it to

#19 User is offline   ko12n Icon

  • Full Member
  • PipPipPip
  • Group: Members
  • Posts: 102
  • Joined: December-13 09

Posted March 29, 2010 - 09:40 PM

View PostCaNe, on 28 March 2010 - 02:24 AM, said:

i cant get it to work.. i dont understand wat folder i save it to

OMG HI CANIE IM GAIA! HUG

& also i have a question. this 100% wont interfere with a shaman rotation script?
Posted Image

#20 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted March 29, 2010 - 09:50 PM

@Cane, there is a topic in this same forum called:
How do I add scripts to my stealthbot

@ko12n
It won't interfer with shaman rotation at all. In fact, I built both of them to work hand in hand. If someone is demoted by clansafety, it will lock-out that user from being promoted with shaman rotation until you manually clear their name in settings.ini.



#21 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted September 13, 2011 - 12:29 AM

so on the number that can be kick befor demoted, can it be 0? so if they kick 1 it'll demote them?

#22 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted September 14, 2011 - 04:45 PM

View Postaka-, on September 12, 2011 - 06:29 PM, said:

so on the number that can be kick befor demoted, can it be 0? so if they kick 1 it'll demote them?



yes

#23 User is offline   Mankson Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 24
  • Joined: April-22 11

Posted September 25, 2011 - 07:16 PM

allowedUsers
Shamans with No Restrictions. They will still be logged, but not demoted.
Default = null




so what do i put to demote shamans after they remove 2 members?

#24 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted September 26, 2011 - 07:23 PM

allowedKicks
How many members can leave clan in (timeframe) before demotions are made
Default = 2

The default is already 2, so you don't need to change anything

#25 User is offline   consequence Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: September-17 11

Posted October 27, 2011 - 11:02 AM

thanks for your work

  • (2 Pages)
  • +
  • 1
  • 2
  • 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