Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ArticWolve

Pages: [1] 2 3 4
1
Group Projects / Teaching VBS
« on: March 12, 2009, 09:35:29 AM »
In my three years of scripting for stealth bot, and four years of actually using it, I have decided that that it's time to make a basic tutorial of certain things that people should know before they begin their first script.

This thread serves two purposes, with the first being to share the knowledge of all kinds of scripters and secondly, to help new scripters come up to par with me or the next guy really quickly. So if you want to contribute, or ask a question, PLEASE dot your I's and cross your T's and keep it clean, and understandable.

I could just send Joel my PDF files to host in regards to this, but who wants to read about six or seven hundred pages? I know I don't have time for that with two kids, a pregnant wife, working from the house, cooking meals (Yes I am the one who cooks, not my wife), and the odd job here or there for a friend to make an extra hundred.

Now instead of jammering my fingers away for nothing, I am telling you that I will be covering several CORE BASIC areas for those of you who want to learn VBS. Keep in mind that I am assuming that you have no programming/coding knowledge.

Items in GREEN are finished. Items in RED are not even started. Items in BLUE are started, but not finished.
First is the format for plugins (The outline) [Reference for the list of subs here].
Second are variables and what you can use them for.

Third are various words and other things that you will use frequently in your plugin(s).
Fourth are commands (No Command Processor)
Fifth is an introduction to custom subs
Sixth is Commands using a custom sub.
Seventh is basic parsing.


And what anyone else has to chip in!



I) Introduction to the Plugin Format

You may be wondering of the plugin format, well simply put, each plugin has a similar structure and that structure is called Hungarian Notation. Wow a big name! Don't worry about it. Most people don't even know what it's called. Anyways, that is the format you us, and for reference purposes, I will be using several scripts to identify key features of it.

Example Plugin:
Code: [Select]
'Prefix
'1.0
'& Plugin Name: Author: General Description

MY PLUGIN USING HUNGARIAN NOTATION
Code: [Select]
'Ex
'1.0
'& Example Plugin: ArticWolve: Basic layout of scripts using Hungarian Notation

' <-- This " ' " means that this is a commented out line is not used in the actual Code/Script.
Sub Ex_Event_Load() ' <-- This line up to the ' is included.
  AddChat VBPink, "You may find the full reference of SUBS and EVENTS at: http://www.stealthbot.net/board/index.php?showtopic=22480."
End Sub ' <-- Same with this one.

Okay now I bet you are wondering about that AddChat.... argument. It'll be explained later on in section 3.

Now seeing as I referenced you to here to see all the other subs and events for plugins, I think you should be warned that this site is in NO WAY IN CONTROL of what you post at that site. If you break their rules, then you pay the price. With that out the way, ALWAYS REMEMBER TO PUT whatever PREFIX is before ANY SUB or FUNCTION!

II) Variables

Now in all honesty, you will be using VARIABLES in almost every script you do. Why? Simply because they keep you from having to retype lines of code or store information for use later. Variables are actually defined by a use of the Plugin Prefix and a short, but simple, name. So ExVariable is actually NOT a good variable because to me, that is too long. However, ExVar01 is much shorter but serves no purpose to the scripter reading my code (which most the time I don't want people to read). Yet as a beginner, you always want to understand your code. So be concise when naming your variables. So if you have a variable that stores a number, put ExNum01.

Important note: NEVER USE THE SAME VARIABLE IN TWO DIFFERENT PLUGINS! It will cause massive errors in one or the other. That is why you should ALWAYS use the plugin's prefix before the variable's name!

Example defining a variable:

Code: [Select]
ExNum = "30"
Why would I use a variable to store a number? Simply put, for a command to change the time for when a timer event is executed.

Now for variables that store data, it would be good for PARSING, which is covered later in the parsing section.

III) Common words and phrases

Seeing as you were referenced to the Subs and Functions page on Stealthbot.net, I think it is time to cover the list of most frequent words and phrases that you will use in your script(s).

*AddChat VBColor, -- To put out a text viewing of something that YOU as the scripter only want the user to see. Color can be changed to Pink, Cyan, Blue, Orange, Yellow, Red, or Green. Remember to keep the VB before the color and the comma (,) afterwords.
Usage example: AddChat VBPink, "Test"

*If...Then -- Direct Condition-Action relationship. This is the most WIDELY used statement. This allows you to have XX action if YY condition is met.
Usage Eample:
If ExVar >= 2 Then Exit Sub

Second Example:
If ExVar >= 2 Then
  Exit Sub
End If

Note: The first and second are equivalent to each other, EXCEPT the second one requires more typing. Only use the second if you are doing more then exiting the sub.  Please also note that If, Then, End if is more widely used and makes code cleaner to look at.  -Ace

*Exit Sub -- Cancel the sub and no longer move forward.
[See above for usage]

*GetDBEntry Username, Access, Flags
-GetDBEntry Username, a, f

Both are the same, just naming the variables differently.  Basically, this is ALWAYS used before commands (covered later)

2
Fail Bot / Found Error
« on: March 09, 2009, 10:35:31 AM »
I tried logging into my old account lDFSl-Jag48209 and guess what, Fail Bot returns an Invalid Password error YET the password is correct. Could you kindly fix it?

Update: It seems I cannot log onto any account I own with Fail Bot. Also, when registering an account, it doesn't use the PASSWORD you entered (or at least for me it didn't).

3
Shadow Chat / Read First!
« on: March 04, 2009, 11:38:42 AM »
Okay listen up, to clear up a few things that my other friends have been asking and some other concerns that have been brought up to my attention:

Beta Testing Positions:

Strictly Beta Testers, Sr Members, and Selected Members on two sites (This one and another I will be starting up in conjunction with the first Beta Test).

Developers: 4 (3): Those who actually program something into the bot. They help out when needed.

Assistant Core Developer: 0 (1):If the three Core Developers are disagreeing too much, a Developer will be promoted to Assistant Core Developer to break the ties that keep occurring.

Core Developers: 3: Those who decide what to put into the bot and how to proceed on the project. Project Leaders.

(Forum Name / Battle Net Name)
Dev and Beta Tester List
  • Core Developers
    • ArticWolve / Aebit
    • Zakara / KatherineT.
  • Assistant Core Developer
  • Developers
    • N/A
    • N/A
    • N/A
    • N/A
  • Beta Testers
    • N/A

Upon the first compile of Shadow Chat, only the Developers will get a copy of the bot. The source will not be open to the public until BOTH ME and Zakara no longer have time to program this bot.

4
Completed / AG
« on: February 07, 2009, 05:28:03 AM »
Prefix: AG
Name: Anti-Genocide
Bot(s) Supported: Stealth Bot

Author: Shadow

Use: Banning usernames that start with "Genoc"


The results:
[div class='codetop']CODE[/div][div class='codemain' style='height:200px;white-space:pre;overflow:auto'] [08:12:29.764] User(s) banned: Genocide_1.7b.#78@USEast, Genocide_1.7b.#9@USEast, Genocide_1.7b#311@USEast [more]
 [08:12:29.936] User(s) banned: Genocide_1.7b#294@USEast, Genocide_1.7b#358@USEast, Genocide_1.7b#319@USEast [more]
 [08:12:30.201] User(s) banned: Genocide_1.7b#317@USEast, Genocide_1.7b#308@USEast, Genocide_1.7b#274@USEast [more]
 [08:12:30.451] User(s) banned: Genocide_1.7b#141@USEast, Genocide_1.7b.#19@USEast, Genocide_1.7b#253@USEast [more]
 [08:12:30.686] User(s) banned: Genocide_1.7b.#5@USEast, Genocide_1.7b#307@USEast, Genocide_1.7b#345@USEast [more]
 [08:12:30.873] User(s) banned: Genocide_1.7b#283@USEast, Genocide_1.7b#321@USEast, Genocide_1.7b#349@USEast [more]
 [08:12:31.076] User(s) banned: Genocide_1.7b#309@USEast, Genocide_1.7b#138@USEast, Genocide_1.7b.#38@USEast [more]
 [08:12:31.295] User(s) banned: Genocide_1.7b#357@USEast, Genocide_1.7b#320@USEast, Genocide_1.7b#352@USEast [more]
 [08:12:31.732] User(s) banned: Genocide_1.7b.#56@USEast, Genocide_1.7b#341@USEast, Genocide_1.7b#174@USEast [more]
 [08:12:31.951] User(s) banned: Genocide_1.7b#246@USEast, Genocide_1.7b#347@USEast, Genocide_1.7b#318@USEast [more]
 [08:12:32.186] User(s) banned: Genocide_1.7b#363@USEast, Genocide_1.7b#334@USEast, Genocide_1.7b#238@USEast [more]
 [08:12:32.420] User(s) banned: Genocide_1.7b#296@USEast, Genocide_1.7b.@USEast, Genocide_1.7b#192@USEast, Genocide_1.7b#129@USEast [more]
 [08:12:32.623] User(s) banned: Genocide_1.7b#351@USEast, Genocide_1.7b#348@USEast, Genocide_1.7b#276@USEast [more]
 [08:12:32.857] User(s) banned: Genocide_1.7b#369@USEast, Genocide_1.7b#353@USEast, Genocide_1.7b#235@USEast [more]
 [08:12:33.076] User(s) banned: Genocide_1.7b#339@USEast, Genocide_1.7b#279@USEast, Genocide_1.7b#330@USEast [more]
 [08:12:33.311] User(s) banned: Genocide_1.7b#336@USEast, Genocide_1.7b#325@USEast, Genocide_1.7b#355@USEast [more]
 [08:12:33.561] User(s) banned: Genocide_1.7b#199@USEast, Genocide_1.7b#185@USEast, Genocide_1.7b#354@USEast [more]
 [08:12:33.779] User(s) banned: Genocide_1.7b#237@USEast, Genocide_1.7b#365@USEast, Genocide_1.7b.#12@USEast [more]
 [08:12:34.014] User(s) banned: Genocide_1.7b#124@USEast, Genocide_1.7b#326@USEast, Genocide_1.7b#323@USEast [more]
 [08:12:34.342] User(s) banned: Genocide_1.7b#155@USEast, Genocide_1.7b#314@USEast, Genocide_1.7b#102@USEast [more]
 [08:12:34.623] User(s) banned: Genocide_1.7b#159@USEast, Genocide_1.7b#359@USEast, Genocide_1.7b#197@USEast [more]
 [08:12:34.889] User(s) banned: Genocide_1.7b#362@USEast, Genocide_1.7b.#32@USEast, Genocide_1.7b#254@USEast [more]
 [08:12:35.139] User(s) banned: Genocide_1.7b.#51@USEast, Genocide_1.7b.#23@USEast, Genocide_1.7b#272@USEast [more]
 [08:12:35.373] User(s) banned: Genocide_1.7b#191@USEast, Genocide_1.7b#108@USEast, Genocide_1.7b.#90@USEast [more]
 [08:12:35.670] User(s) banned: Genocide_1.7b#105@USEast, Genocide_1.7b#198@USEast, Genocide_1.7b.#91@USEast [more]
 [08:12:35.920] User(s) banned: Genocide_1.7b#234@USEast, Genocide_1.7b#125@USEast, Genocide_1.7b#292@USEast [more]
 [08:12:36.217] User(s) banned: Genocide_1.7b.#85@USEast, Genocide_1.7b#127@USEast, Genocide_1.7b#261@USEast [more]
 [08:12:36.545] User(s) banned: Genocide_1.7b#177@USEast, Genocide_1.7b.#15@USEast, Genocide_1.7b#281@USEast [more]
 [08:12:36.811] User(s) banned: Genocide_1.7b#114@USEast, Genocide_1.7b.#49@USEast, Genocide_1.7b#180@USEast [more]
 [08:12:37.154] User(s) banned: Genocide_1.7b#302@USEast, Genocide_1.7b.#54@USEast, Genocide_1.7b#106@USEast [more]
 [08:12:37.389] User(s) banned: Genocide_1.7b#263@USEast, Genocide_1.7b#217@USEast, Genocide_1.7b#170@USEast [more]
 [08:12:37.639] User(s) banned: Genocide_1.7b#240@USEast, Genocide_1.7b#289@USEast, Genocide_1.7b.#3@USEast [more]
 [08:12:37.889] User(s) banned: Genocide_1.7b#242@USEast, Genocide_1.7b.#36@USEast, Genocide_1.7b.#84@USEast [more]
 [08:12:38.232] User(s) banned: Genocide_1.7b#282@USEast, Genocide_1.7b#304@USEast, Genocide_1.7b#241@USEast [more]
 [08:12:38.498] User(s) banned: Genocide_1.7b#189@USEast, Genocide_1.7b#264@USEast, Genocide_1.7b#207@USEast [more]
 [08:12:38.748] User(s) banned: Genocide_1.7b#193@USEast, Genocide_1.7b.#87@USEast, Genocide_1.7b#172@USEast [more]
 [08:12:38.967] User(s) banned: Genocide_1.7b#123@USEast, Genocide_1.7b#145@USEast, Genocide_1.7b#277@USEast [more]
 [08:12:39.201] User(s) banned: Genocide_1.7b#130@USEast, Genocide_1.7b#136@USEast, Genocide_1.7b#270@USEast [more]
 [08:12:39.451] User(s) banned: Genocide_1.7b.#55@USEast, Genocide_1.7b.#39@USEast, Genocide_1.7b.#71@USEast [more]
 [08:12:39.686] User(s) banned: Genocide_1.7b#288@USEast, Genocide_1.7b.#30@USEast, Genocide_1.7b#116@USEast [more]
 [08:12:40.029] User(s) banned: Genocide_1.7b#115@USEast, Genocide_1.7b.#37@USEast, Genocide_1.7b#133@USEast [more]
 [08:12:40.295] User(s) banned: Genocide_1.7b#154@USEast, Genocide_1.7b#226@USEast, Genocide_1.7b.#35@USEast [more]
 [08:12:40.529] User(s) banned: Genocide_1.7b#256@USEast, Genocide_1.7b#303@USEast, Genocide_1.7b#200@USEast [more]
 [08:12:40.826] User(s) banned: Genocide_1.7b.#69@USEast, Genocide_1.7b.#46@USEast, Genocide_1.7b#249@USEast [more]
 [08:12:41.107] User(s) banned: Genocide_1.7b#131@USEast, Genocide_1.7b#230@USEast, Genocide_1.7b#167@USEast [more]
 [08:12:41.482] User(s) banned: Genocide_1.7b.#73@USEast, Genocide_1.7b#166@USEast, Genocide_1.7b.#47@USEast [more]
 [08:12:41.779] User(s) banned: Genocide_1.7b#268@USEast, Genocide_1.7b#271@USEast, Genocide_1.7b.#21@USEast [more]
 [08:12:42.123] User(s) banned: Genocide_1.7b.#63@USEast, Genocide_1.7b.#26@USEast, Genocide_1.7b.#57@USEast [more]
 [08:12:42.389] User(s) banned: Genocide_1.7b#251@USEast, Genocide_1.7b.#22@USEast, Genocide_1.7b#297@USEast [more]
 [08:12:42.748] User(s) banned: Genocide_1.7b.#41@USEast, Genocide_1.7b#178@USEast, Genocide_1.7b#144@USEast [more]
 [08:12:43.045] User(s) banned: Genocide_1.7b.#81@USEast, Genocide_1.7b#173@USEast, Genocide_1.7b.#67@USEast [more]
 [08:12:43.389] User(s) banned: Genocide_1.7b.#77@USEast, Genocide_1.7b#147@USEast, Genocide_1.7b.#34@USEast [more]
 [08:12:43.717] User(s) banned: Genocide_1.7b#209@USEast, Genocide_1.7b.#29@USEast, Genocide_1.7b.#16@USEast [more]
 [08:12:44.092] User(s) banned: Genocide_1.7b#151@USEast, Genocide_1.7b.#68@USEast, Genocide_1.7b#110@USEast [more]
 [08:12:44.404] User(s) banned: Genocide_1.7b#134@USEast, Genocide_1.7b.#13@USEast, Genocide_1.7b#284@USEast [more]
 [08:12:44.795] User(s) banned: Genocide_1.7b.#93@USEast, Genocide_1.7b.#48@USEast, Genocide_1.7b.#76@USEast [more]
 [08:12:45.092] User(s) banned: Genocide_1.7b.#86@USEast, Genocide_1.7b#140@USEast, Genocide_1.7b.#59@USEast [more]
 [08:12:45.451] User(s) banned: Genocide_1.7b.#65@USEast, Genocide_1.7b#162@USEast, Genocide_1.7b#278@USEast [more]
 [08:12:45.748] User(s) banned: Genocide_1.7b#156@USEast, Genocide_1.7b#164@USEast, Genocide_1.7b#101@USEast [more]
 [08:12:46.107] User(s) banned: Genocide_1.7b#201@USEast, Genocide_1.7b#236@USEast, Genocide_1.7b#143@USEast [more]
 [08:12:46.389] User(s) banned: Genocide_1.7b#128@USEast, Genocide_1.7b.#17@USEast, Genocide_1.7b#132@USEast [more]
 [08:12:46.748] User(s) banned: Genocide_1.7b.#45@USEast, Genocide_1.7b#206@USEast, Genocide_1.7b#169@USEast [more]
 [08:12:46.936] User(s) banned: Genocide_1.7b.#10@USEast, Genocide_1.7b.#53@USEast, Genocide_1.7b#204@USEast [more]
 [08:12:47.107] User(s) banned: Genocide_1.7b#203@USEast, Genocide_1.7b.#2@USEast, Genocide_1.7b#220@USEast [more]
 [08:12:47.326] User(s) banned: Genocide_1.7b#152@USEast, Genocide_1.7b#176@USEast, Genocide_1.7b#287@USEast [more]
 [08:12:47.592] User(s) banned: Genocide_1.7b#190@USEast, Genocide_1.7b.#97@USEast, Genocide_1.7b#213@USEast [more]
 [08:12:47.811] User(s) banned: Genocide_1.7b.#62@USEast, Genocide_1.7b.#89@USEast, Genocide_1.7b#103@USEast [more]
 [08:12:48.076] User(s) banned: Genocide_1.7b#228@USEast, Genocide_1.7b#100@USEast, Genocide_1.7b#211@USEast [more]
 [08:12:48.342] User(s) banned: Genocide_1.7b#157@USEast, Genocide_1.7b#291@USEast, Genocide_1.7b#290@USEast [more]
 [08:12:48.654] User(s) banned: Genocide_1.7b#202@USEast, Genocide_1.7b#305@USEast, Genocide_1.7b.#14@USEast [more]
 [08:12:48.967] User(s) banned: Genocide_1.7b#260@USEast, Genocide_1.7b.#24@USEast, Genocide_1.7b.#20@USEast [more]
 [08:12:49.217] User(s) banned: Genocide_1.7b#113@USEast, Genocide_1.7b#280@USEast, Genocide_1.7b.#25@USEast [more]
 [08:12:49.498] User(s) banned: Genocide_1.7b#139@USEast, Genocide_1.7b#122@USEast, Genocide_1.7b#165@USEast [more]
 [08:12:49.842] User(s) banned: Genocide_1.7b.#79@USEast, Genocide_1.7b#248@USEast, Genocide_1.7b.#33@USEast [more]
 [08:12:50.123] User(s) banned: Genocide_1.7b#224@USEast, Genocide_1.7b#225@USEast, Genocide_1.7b#158@USEast [more]
 [08:12:50.420] User(s) banned: Genocide_1.7b.#40@USEast, Genocide_1.7b.#64@USEast, Genocide_1.7b#163@USEast [more]
 [08:12:50.701] User(s) banned: Genocide_1.7b#269@USEast, Genocide_1.7b.#58@USEast, Genocide_1.7b#267@USEast [more]
 [08:12:51.107] User(s) banned: Genocide_1.7b.#82@USEast, Genocide_1.7b#266@USEast, Genocide_1.7b.#44@USEast [more]
 [08:12:51.545] User(s) banned: Genocide_1.7b.#75@USEast, Genocide_1.7b#119@USEast, Genocide_1.7b#247@USEast [more]
 [08:12:51.936] User(s) banned: Genocide_1.7b.#66@USEast, Genocide_1.7b#137@USEast, Genocide_1.7b#223@USEast [more]
 [08:12:52.311] User(s) banned: Genocide_1.7b#257@USEast, Genocide_1.7b#171@USEast, Genocide_1.7b#179@USEast [more]
 [08:12:52.764] User(s) banned: Genocide_1.7b#210@USEast, Genocide_1.7b#187@USEast, Genocide_1.7b.#99@USEast [more]
 [08:12:53.139] User(s) banned: Genocide_1.7b#142@USEast, Genocide_1.7b#109@USEast, Genocide_1.7b#258@USEast [more]
 [08:12:53.514] User(s) banned: Genocide_1.7b.#7@USEast, Genocide_1.7b#112@USEast, Genocide_1.7b#299@USEast [more]
 [08:12:53.857] User(s) banned: Genocide_1.7b.#80@USEast, Genocide_1.7b#214@USEast, Genocide_1.7b#168@USEast [more]
 [08:12:54.217] User(s) banned: Genocide_1.7b#149@USEast, Genocide_1.7b#252@USEast, Genocide_1.7b#107@USEast [more]
 [08:12:54.592] User(s) banned: Genocide_1.7b#243@USEast, Genocide_1.7b#245@USEast, Genocide_1.7b#120@USEast [more]
 [08:12:54.936] User(s) banned: Genocide_1.7b#146@USEast, Genocide_1.7b#188@USEast, Genocide_1.7b#219@USEast [more]
 [08:12:55.326] User(s) banned: Genocide_1.7b#150@USEast, Genocide_1.7b#232@USEast, Genocide_1.7b#111@USEast [more]
 [08:12:55.764] User(s) banned: Genocide_1.7b.#88@USEast, Genocide_1.7b#293@USEast, Genocide_1.7b#205@USEast [more]
 [08:12:56.139] User(s) banned: Genocide_1.7b#300@USEast, Genocide_1.7b.#74@USEast, Genocide_1.7b#286@USEast [more]
 [08:12:56.545] User(s) banned: Genocide_1.7b#161@USEast, Genocide_1.7b.#42@USEast, Genocide_1.7b#118@USEast [more]
 [08:12:56.920] User(s) banned: Genocide_1.7b#186@USEast, Genocide_1.7b.#60@USEast, Genocide_1.7b#215@USEast [more]
 [08:12:57.389] User(s) banned: Genocide_1.7b.#96@USEast, Genocide_1.7b#183@USEast, Genocide_1.7b.#72@USEast [more]
 [08:12:57.936] User(s) banned: Genocide_1.7b.#94@USEast, Genocide_1.7b#275@USEast, Genocide_1.7b#273@USEast [more]
 [08:12:58.467] User(s) banned: Genocide_1.7b.#4@USEast, Genocide_1.7b.#11@USEast, Genocide_1.7b#195@USEast [more]
 [08:12:59.014] User(s) banned: Genocide_1.7b.#31@USEast, Genocide_1.7b.#95@USEast, Genocide_1.7b#285@USEast [more]
 [08:12:59.420] User(s) banned: Genocide_1.7b#255@USEast, Genocide_1.7b#208@USEast, Genocide_1.7b#104@USEast [more]
 [08:12:59.889] User(s) banned: Genocide_1.7b#233@USEast, Genocide_1.7b#216@USEast, Genocide_1.7b#181@USEast [more]
 [08:13:00.342] User(s) banned: Genocide_1.7b#121@USEast, Genocide_1.7b#262@USEast, Genocide_1.7b#259@USEast [more]
 [08:13:00.811] User(s) banned: Genocide_1.7b.#27@USEast, Genocide_1.7b.#83@USEast, Genocide_1.7b#250@USEast [more]
 [08:13:01.186] User(s) banned: Genocide_1.7b.#50@USEast, Genocide_1.7b#196@USEast, Genocide_1.7b#295@USEast [more]
 [08:13:01.654] User(s) banned: Genocide_1.7b#175@USEast, Genocide_1.7b.#98@USEast, Genocide_1.7b.#6@USEast [more]
 [08:13:02.123] User(s) banned: Genocide_1.7b#244@USEast, Genocide_1.7b#182@USEast, Genocide_1.7b#160@USEast [more]
 [08:13:02.576] User(s) banned: Genocide_1.7b.#18@USEast, Genocide_1.7b#265@USEast, Genocide_1.7b.#43@USEast [more]
 [08:13:03.029] User(s) banned: Genocide_1.7b#218@USEast, Genocide_1.7b.#70@USEast[/div]

The code:
Code: [Select]
'AG
'1.0
'Anti-Genocide:ArticWolve:External Shitlist for Genocide.
'& NONE
'*
'*
'*
 '*Moderation

Sub AG_Event_Load()

   AGVer = "1.00"
   AddChat VBOrange, "[AG] Anti-Gnome Plugin Version " & AGVer & " is loaded."
   TimerEnabled "AG", "Ban", True
   TimerInterval "AG", "Ban", 15

 End Sub
    
 Sub AG_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatString)

   If LCase(Left(Username, 5)) = LCase(Left("genoc", 5)) Then
     If IsSafelisted(Username) Then Exit Sub
     If AGBan > 6 Then Exit Sub
     AGBan = AGBan + 1
     Command BotVars.Username, "/ban " & Username
     If AGBan >= 7 Then
       TimerEnabled "AG", "Ban", True
     End If
   End If

End Sub

Sub AG_Ban_Timer()

  TimerEnabled "AG", "Ban", False
  AGBan = 0

End Sub

Edited the variables I forgot to change when extracting this from my public command script!

5
Trash Can / From: Hosting expires in april
« on: February 01, 2009, 09:43:21 AM »
ITS THE FIRST! I thought it expired at midnight this morning, or is it midnight tomorrow?

6
Trash Can / From: Perfect World
« on: January 30, 2009, 01:11:15 PM »
I already warned Kat once today.... I seem to have overlooked that post. Don't do it again Kat.

7
Trash Can / From: [Resolved] .host game script
« on: January 30, 2009, 07:41:53 AM »
The open your eyes. Its still there.

8
Requests / Tournament Hosting Script
« on: January 28, 2009, 06:09:10 AM »
Okay first off, this script is to help maintain order for when a clan has a tournament.

This script must have a delay of at least 10 seconds when listing lineups (brackets)
Delays commands for 15 second else cancels it if the user is no longer in the channel
Each tournament has a dat or ini file that recorded the Battle Net name, date, time, partner (if 2v2, else this is not listed)), and User who added them (If the .signup command is used, then it is SELF).


COMMAND LIST:[size=]
VARIED
[/size]


.tcmdlist
Lists commands the user can perform on the script.

.thelp <cmd>
Lists the description for  ad\nd the requirements to use it.

[size=]Anyone[/size][/i][/u]

.signup  <Name> [Partner]
TOURNAMENT MUSE NOT BE STARTED! Adds name (and partner) to the tournament. Only adds partner if game type is set to team. (Stored in Name.dat the Player, Date, Time,

.Challenge <Name> <Match#>
TOURNAMENT MUSE BE STARTED! Adds Tournament Name and Match Number for review by a moderator or Admin.

.tafk [Reason]
TOURNAMENT MUSE BE STARTED! Changes your name to that of a substitute. Once XX minutes have passed, the player's opponent is declared the winner. CANNOT be used in the final 3 rounds. (Set in a settings file)

.tback
TOURNAMENT MUSE BE STARTED! Changes the substitute back to your name. CANNOT be used if the sub played 2 rounds straight or played in Round 1. Cannot be used if 15 minutes passed.
[size=]
Tournament Moderator
[/size]

[size=](Are listed in TMod.ini[/size])

.settype <Name> <v1/v2/v3/v4/v5> [Type]
Sets the game type to v1 (1v1), v2 (1v1v1), v3 (1v1v1v1), or v4 (2v2). Cannot be used if Tournament started. v5 means user-specified format:
1 x 2   One vs Two       2 x 7   Two vs Seven  
1 x 3   One vs Three    2 x 8   Two vs Eight  
1 x 4   One vs Four      3 x 3   Three vs Three
1 x 5   One vs Five       3 x 4   Three vs Four
1 x 6   One vs Six         3 x 5   Three vs Five
1 x 7   One vs Seven    3 x 6   Three vs Six  
1 x 8   One vs Eight      3 x 7   Three vs Seven
1 x 9   One vs Nine       4 x 4   Four vs Four  
2 x 3   Two vs Three    4 x 5   Four vs FIve  
2 x 4   Two vs Four      4 x 6   Four vs Six  
2 x 5   Two vs Five       5 x 5   Five vs Four  
2 x 6   Two vs Six                            



.addplayer  <Name> <User>
Adds user to the tournament file

.delplayer  <Name> <User>
Removes user from the tournament file

.bracket
Views bracket of the tourny.

.Substitute  <User> <substitute>
Changes User to the sub.

Changes User to Sub

.Forfeit  <Name>
Adds User to the NoShow list. If NoShow count is XX or greater, then he/she cannot enter another tournament. Also, declares his opponent the winner.

.generate <Name>
Generates a random bracket for the Tournament specified and declares it aloud.
Ex:
[size=]2 players per match: Round 1: 1 [UserA1 x UserA2] 2 [UserB1 x UserB2]... etc (Max supported is 64 players) (Lists 8 matches at a time and waits 15 seconds)[/size]

[size=]3 players per match: Round 1: 1 [UserA1 x UserA2 x UserA3] 2 [UserB1 x
UserB2 x UserB3]... etc (Max supported is XX players) (Lists 5
matches at a time)
4 players per match: Round 1: 1 [UserA1 + UserA2 x UserA3 + UserA4] 2 [UserA1 + UserA2 x UserA3 + UserA4]... etc (Max supported is 128 players) (Lists 4
matches at a time)
[/size]

.Advance
Declares the winner of Match and auto initiates Next Round
[size=]Ex: .Winner Tourny1/UserA/1[/size]

.NextRound
Generates next bracket based upon winners of previous, but factors in the match number. Does NOT display previous round winners.
[size=]Ex: Assume two players per match and UserA and UserC won their matches and there were 16 players. First, it would have to calculate the total matches in Round One. Now it takes that Number and adds one to the match:
Round 2: 9 [UserA x UserC] 10 [UserD x UserG] 11 [User I x User K]....
[/size]

.Winners
Declares the round winners.

Final round only!

.Final  <User> <Tournament>
Declares the tournament winner. Command to be used for the last match when two users remain and to delete the tournament (but add it to results.ini). Format: User | Tourny | Date; Time

.NSL
Displays the NoShow list. Data stored in the following format: User | Tourny (Use tabs to make it like a table.) (NSL.ini)

.NoShow <Name> <Limit>
Changes the maximum number of times before a user cannot be added to the tournament list unless the NSL is cleared. (NSL.ini) [size=](Default of 5)[/size]

.CNSL
Clears the NoShow List of all data. (NSL.ini)

[size=]Tournament Admins[/size]
[size=](Are listed on TAdmin.ini)[/size]

.addmod  <Name> User>
Adds User from tournament moderator status for Tournament Name

.delmod  <Name> <user>
Deletes User from tournament admin status for Tournament Name


.addtourny <Name> <Date> <Time> <STAR/SEXP/WAR3/W3XP> <Type> <NoShowLimit>
Adds Tournament to the tournament listing file. NoShowLimit reads the users stored in NSL.ini. If the user has more then XX NoShow's, he/she is denied entrance into the tourny. (Name.ini)

.deltourny <Name>
CANNOT be used if the tournament already started. (IE Generate was used for that tournament). Removes Tournament from the tournament listing file. (Name.ini)

.TIdle
Sets the Tournament Idle message to Message
Variables: %DT = Date & Time | %Rnd = Round | %Mtc = Match | %CD = Current Date | %CT = Current Time | %TI = Replaces with the closest tournament information

.TITime <Message>
Sets the Tournament Idle Time to Time (in minutes) (Minimum is 15)

.Tidles [on/off]
Turns Tournament idles on, off. If on/off is not specified, it displays the status of them.

[size=]Flag "T" Only[/size][/i]
[size=](Master Tournament Administrator)[/size]

.addadmin <Name> User>
Adds User from tournament admin status

.deladmin <Name> User>
Deletes User from tournament admin status


Notes:
In a 1v1 style game: 8 players have 3 rounds and 7
matches; 16 players have 4 rounds and 15 matches; 32 players have 5
rounds and 31 matches; 64 have 6 rounds and 63 matches.
In a 1v1v1 style game: 27 players have 3 rounds and 13 matches matches; 81 players have 4 rounds and 39 matches. (Unconfirmed)
In a 1v1v1v1 or 2v2 style game, 16 players have 3 rounds and 7 matches; 32 players have 4 rounds and 15 matches; 64 players have 5 rounds and 31 matches; 128 players have 6 rounds and 63 matches.


If you have any questions, feel free to ask. I believe that is all the information that is needed to make this script.

Edit: Updates in Navy
~Shadow~

9
Questions and Suggestions / Group Major Projects
« on: January 19, 2009, 08:56:08 AM »
You should really group the Major Projects into three categories:
1) Stealth Bot Plugins
    -- Heroic League
    -- Advanced Moderation
    -- Project Neglected Fury
2) Vector Net
    -- Vector Net
    -- Vector Net Bot
3) Bots
    -- Fail Bot
    -- Shadow Chat

Also, Fail Bot should not be a redirect on the project board, it should be an actual forum.

It would also clear some of the loading time on older computers.

Move Bot Development to Programming, seeing as it is programming in essence. Then organize it so you only have 2 or 3 MAIN FORUMS and then (at most) 3 to 5 sub forums per forum parent. It will cut the load time down some, and allow for greater organization. So basically, cut everything down on the mage page to 2 or 3 forums and then sub forum everything else.

And the only reason I am saying this is because we need to reorder everything so that it is user friendly and not gobbled in one spot.

10
Trash Can / From: VectorNet suggestions
« on: January 17, 2009, 04:44:10 AM »
Quote from: Zone57
Then stop fucking calling me that. im fuckin tired of this
If you didn't want to be called that, then why did you give out your name? You have no one to blame but yourself.

11
Trash Can / From: VectorNet suggestions
« on: January 15, 2009, 07:20:32 PM »
@Zakara: Keep the flames on the flame board or I will warn you regardless of you being married to me or not.

Edit: Removed part of post due to cleaning up of the thread.

12
Project Neglected Fury / Project Update
« on: January 14, 2009, 06:12:20 PM »
Seeing as there hasn't been an update in over a month, I would like to tell you this: This project is ongoing, but very slow and time consuming. I no longer have the time to sit around and code for several hours like I used to. If there is any user who wants to contribute, feel free to do so, but please follow the guidelines posted. It will be some time before I am able to get back to this script.

Sincerely,
Shadow

13
Shadow Chat / A New Battle Net Bot
« on: January 11, 2009, 07:06:13 PM »
Okay so I am getting tired of Stealth Bot and crap, and I thought I would make my own bot. I want everyone to know that I will be making a multiple tier security system, with some help.

First off is an alpha-numeric key system that will be totally randomized for each user. I will have a list of pre-made Shadow keys on my computer.
Second is a standalone authorization system featuring certain characteristics to match the IP and match the Shadow Key's hash to each other.
Third is an encrypted part of the bot to make sure you did not tamper with anything.
Fourth occurs when someone has an unused Shadow Key and uses it, no one else can use it BUT THAT PERSON.

There are also a few surprises as well. Don't be surprised when they happen.

Now the multiple tiers of each stage of programming the bot (Yes, I outlined this!):
  • Stage One
    • Basic Features
  • Stage two
    • Adding in all other clients
    • Working out major glitches and bugs
  • Stage Three
    • Revising Code
    • Working out all remaining bugs/glitches
  • Stage Four
    • Working on queue
    • Vector Net Chat
  • Stage Five
    • Moderation Queue
    • Simplified Mail System
    • More Bot Commands
  • Stage Six
    • Revising Code
    • Tabbing
    • Skinning?
  • Stage Seven
    • Scripting System
    • Removal of Authentication of the Security Sub-Systems
  • Public Release
    • Working out kinks, bugs, glitches
    • Enjoy!

And there's my outline. Oh and this project is filed under group projects cause I will need a lot of help doing certain parts. Most likely, this will be done in Visual Basic. Revision77 will be the bots home until I get my own site up and running. Oh that reminds me, it will be a while before I start this seeing as I am sleeping most of the time when I am not working. Also, I have to get comfortable with the programming language of choice, which will take a while.

Edit1:
Command List (Will be updated when I start working on the commands. For now, assume nothing is done.):
[Legend]
[]   Optional
<> Mandatory Arguments
{}  Commands Not Implemented
/    Denotes Other Arguments That Can Be Used
  • {
  • Add <User> <Flags>
  • Delete
  • Whois <User>
  • Find <Access/Flags>
  • Al <User> <Access> <Flags>
  • Al <Rank>
  • Dl <User>
  • Wa <User>
  • Wd <User>
  • Ba <User>
  • Bd <User>
  • Autoban [On/Off/Status]
  • Idle <Set> <New Idle>
  • Idle <On/Off/Status>
  • Greet <On/Off/View>
  • Greet <Set> <New Greet>
  • Tban <User> [Reason]
  • Mban <User> <Time> [Reason]
  • Ban <User> [Reason]
  • Unban <User>
  • Kick <User> [Reason]
  • AutoBlack <on/off/status>
  • Des <User>
  • Rejoin
  • Join <Channel>
  • Usercount
  • Ipb <User>
  • Ignore <User>
  • Unipb <User>
  • Unignore <User>
  • Vers
  • ?T
  • Settrig <New Bot Trigger>
  • Home
  • Help <Command>
  • Server [Battle Net Server]
  • Setpass <New Password>
  • Setname <New Bot Name>
  • Owner
  • AddMaster <User>
  • DelMaster <User>
  • Master
  • Lock <on/off> [Access to Use Bot/Flags to Use Bot]
  • Mlock
  • About
  • Say <Message>
  • Repeat <# of Repeats> <Message>
  • Seen <User>
  • Record <Stats/Ping/Time/Date/All>
  • }
More to come when I think of it!

14
VectorNet / Private VN Server Hosting
« on: January 09, 2009, 06:22:23 AM »
I am hosting a private VN Server that can be used for "Clan Affairs". Please note that this VN Server is for those that ask to use it. Chances are, IDK you, you get banned. So please ask before you use it, otherwise, feel free to use the sendtoserv feature found in the SB Plugin. I am running several of these to determine the max handle of the server.

15
VectorNet / [Resolved] Found Bug
« on: January 08, 2009, 05:29:27 PM »
You see that little "Disconnect" button on the client. Well, it doesnt work. You have to goto Client--Disconnect to disconnect from the VN Server.

Pages: [1] 2 3 4