Author Topic: SBLD  (Read 1135 times)

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
SBLD
« on: November 10, 2008, 04:39:49 PM »
This code MIMICS Stealthbot's protect and Neglected Fury's Lockdown procedure. This is scripted because I felt like making a command better. NOTE: This script has its own preset trigger!

[div class='codetop']CODE[/div][div class='codemain' style='height:200px;white-space:pre;overflow:auto']'SBLD
'1.2
'&Stealth Bot Lockdown:ShadoW:Mimics Neglected Fury's Lockdown
'*?Lockdown [on/off]
'*
'* Users must be safelisted or have Access to enter channel.:Can be toggled using ?Lockdown On to turn it on, or ?Lockdown off to turn it off; ?Lockdown shows status:.
'*
'*Stealthbot Enhancement

'// Version History
'// Version 1.2
'//           Added StealthBot 2.6r3 compatibility ~Vector
'// Version 1.1
 '//     Dedicated to Vector, Hero and Zone. Without you guys, I wouldn't be making Scripts.
  '//         Zone for introducing me to the VBScripting world and its community
  '//         Hero for being there when I needed to ask an annoying question about scripting
  '//         Vector for his help on advising me on how to make my scripts
 '//     Fixed "Smart" Ban so your bot doesn't Flood out
'//     Added "Status Check"
'// Version 1.0
'//     Mimiced Protect Command for Neglected Fury Users.
'//     Triggers are hard coded.

Sub SBLD_Event_Load()

  SetSetting "SBLD", "Lockdown", False, "", True
  TimerEnabled "SBLD", "Reset", False
  TimerInterval "SBLD", "Reset", 5
  AddChat VBCyan, "SBLD Version 1.1 by Shadow is loaded."

End Sub

Sub SBLD_Event_UserTalk(Username, Flags, Message, Ping)

   Call SBLD_Lockdown(Username, Access, Flags)

  If LCase(Message) = LCase("?Lockdown on") Then
    GetDBEntry Username, uAccess, uFlags
    If uAccess >= 90 Then
      SetSetting "SBLD", "Lockdown", True, "", True
      AddQ "[SBLD] Lockdown Enabled"
    Else
      Exit Sub
    End If
  End If

  If LCase(Message) = LCase("?Lockdown off") Then
    GetDBEntry Username, uAccess, uFlags
    If Access >= 90 Then
      SetSetting "SBLD", "Lockdown", False, "", True
      AddQ "[SBLD] Lockdown Disabled"
    Else
      Exit Sub
    End If
  End If
 
  If LCase(Message) = LCase("?Lockdown") Then
    GetDBEntry Username, uAccess, uFlags
    If uAccess < 40 Then
      Exit Sub
    Else
      If GetSetting("SBLD", "Lockdown") Then
        AddQ "[SBLD] Lockdown is active."
      Else
        AddQ "[SBLD] Lockdown is inactive."
      End If
    End If
  End If

End Sub

Sub SBLD_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatstring)

  If IsSafelisted(Username) Then Exit Sub
    If SBLDBan = 0 Then
      Call SBLD_Lockdown(Username, Access, Flags)
    End If

End Sub

Sub SBLD_Event_WhisperFromUser(Username, Flags, Message)

  If IsSafelisted(Username) Then Exit Sub
    If SBLDBan = 0 Then
      Call SBLD_Lockdown(Username, Access, Flags)
    End If

End Sub

Sub SBLD_Event_UserEmote(Username, Flags, Message)

  If IsSafelisted(Username) Then Exit Sub
    If SBLDBan = 0 Then
      Call SBLD_Lockdown(Username, Access, Flags)
    End If

End Sub

Sub SBLD_Lockdown(Username, Access, Flags)

  If GetSetting("SBLD", "Lockdown") Then
    GetDBEntry Username, Access, Flags

    If IsSafelisted(Username) Then
      Exit Sub
    End If

    If Access > 0 Then
      Exit Sub
    End If

      SBLDBan = 1
      If SBLDBan = 1 Then
        Command BotVars.Username, "/ban " & Username & " [SBLD] Stealth Bot Lockdown Active", True
        TimerEnabled "SBLD", "Reset", True
      End If
     
  Else
    Exit Sub
  End If
 
End Sub

Sub SBLD_Reset_Timer()

  SBLDBan = 0
  TimerEnabled "SBLD", "Reset", False

End Sub[/div]

Please read the dedication and then comment. And yes, I meant EVERY word of it.

Added StealthBot 2.6r3 compatibility. ~Vector
I do not use revision numbers, only the major and minor release versions. ~Shadow
« Last Edit: November 14, 2008, 01:19:53 PM by Shadow »
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
SBLD
« Reply #1 on: November 12, 2008, 12:51:20 PM »
In the future, please make sure that when testing this script on the beta, you do complete this script as is, as the beta adds arguments not supported in 2.6r3.

Also, use / instead of // (you had //ban, which would return "Invalid command" in 2.6r3)
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
SBLD
« Reply #2 on: November 12, 2008, 01:03:41 PM »
I only script for the beta, not 2.6R3.
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
SBLD
« Reply #3 on: November 12, 2008, 01:07:04 PM »
Well, we cator these plugins to StealthBot 2.6r3 as well. If you would like your plugins on the server, those are my guidelines.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
SBLD
« Reply #4 on: November 14, 2008, 01:18:37 PM »
...... Fine, they will bet "Catered to." Don't expect me to convert them to 2.6 R3 all the time (such as ACFD 2.2 and later versions)
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Zakara

  • Beta Testers
  • Jr. Member
  • **
  • Posts: 91
    • View Profile
    • http://images.google.com/images?hl=en&client=firefox-a&rls=org.mozilla:en-GB:official&hs=elw&q=prince albert piercing&um=1&ie=UTF-8&sa=N&tab=wi
SBLD
« Reply #5 on: November 27, 2008, 05:22:57 PM »
(Sorry for the bump) Shadow, just do it for 2.6 R3... and also, MAKE SURE YOU PUT BOTH OUR NAMES ON IT NEXT TIME
[!--quoteo(post=0:date=:name=John SHADOW T.)--][div class=\'quotetop\']QUOTE (John SHADOW T.)[/div][div class=\'quotemain\'][!--quotec--]Half Human; Half Shylaeran; All pride and wisdom.
Fierce in combat, Tame at heart;
Wise with words, Foolish with affection;
Strong as a bull, Weak as a rose;
Love a man, Hate his people;
Leave your kind, To never see again
The truth in his words,
Of Love and Beauty,
Of Affection and Lust,
Of Wisdom and Power,
Of Bravery and Foolishness.
That this woman, now tells his lesson, to those of young,
That not all, is forbidden, for he too,
Was all the same to me.[/quote]
Do not edit her signature anymore. You have all been warned. ~ArticWolve