<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
	<title>StealthBot.net - 2.7</title>
	<description>Content from all 2.7-related forums.</description>
	<link>http://www.stealthbot.net/forum/index.php</link>
	<pubDate>Fri, 18 May 2012 02:28:12 +0000</pubDate>
	<ttl>10</ttl>
	<item>
		<title>Retrieve Clan Data Function</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6976-retrieve-clan-data-function/</link>
		<description><![CDATA[Here's a simple function to retrieve data about a Clan: specifically, the Clan's Full Name, a head count of its members, and a list of the aforementioned members along with their respective Clan Ranks (i.e. Chieftain, Shaman, Grunt, or Peon). The beauty of this function is that it searches online for Info about a Clan; therefore, It'll run for any Clan on any Server (at least, any Server that the User who calls the function is situated on).<br />
<br />
<pre class='prettyprint lang-vb'>// The maximum number of members displayed per page
 Public Const PER_PAGE = 15
 Private webObject, web
 Private P_Data, P_Name, P_Rank, Clan_Name

 Private Function Retrieve_Clan_Data(ClanTag)

    Dim P_Tag, P_RankNum_Raw, P_RankNum
    Dim i, j

    // Clear Clan Data in case the function is run subsequent time(s)
    P_Data.RemoveAll

       // Default - Runs for 10 pages. If the last page is found before this, then the loop ends there.
       For i = 1 To 10
          webObject.Open "GET", "http://classic.battle.net/war3/ladder/w3xp-clan-profile.aspx?ClanTag=" &UCase(ClanTag)& "&Gateway=" &BotVars.Gateway& "&PageNo=" &i& "", False
          webObject.Send
          web = webObject.responseText

          // Ensures that the following action(s) only happen once: on the 1st Page
          Select Case i
             Case "1":
                Clan_Name = "&lt;title&gt;Frozen Throne - " & BotVars.Gateway & " - "
                If InStr(web, Clan_Name) = 0 Then
                   Retrieve_Clan_Data = False
                   Exit Function
                Else
                   Clan_Name = Split(Split(web, Clan_Name)(1), " - Clan Profile&lt;/title&gt;")(0)
                End If
          End Select

          P_Tag = Split(web, "&PlayerName=")
          P_RankNum_Raw = Split(web, "clans/rank")

          For j = 1 to UBound(P_Tag)
             P_Name = Split(P_Tag(j), """&gt;")(0)
             P_Name = Replace(P_Name, "%5b", "&#91;")
             P_Name = Replace(P_Name, "%5d", "&#93;")
             P_RankNum = Split(P_RankNum_Raw(j), ".gif")(0)

             Select Case P_RankNum
                Case "0": P_Rank = "Peon"
                Case "2": P_Rank = "Grunt"
                Case "3": P_Rank = "Shaman"
                Case "4": P_Rank = "Chieftain"
             End Select

             P_Data.Item(P_Name) = P_Rank
          Next

          // If the last page is found, exit out.
          If UBound(P_Tag) &lt; PER_PAGE Then Exit For 
       Next
    Retrieve_Clan_Data = True
 End Function</pre><br />
<br />
And here's a Script with the Implementation of the above Function:<br />
<br />
<p class='citation'>Quote</p><div class="blockquote"><div class='quote'>Retrieve Clan Data Script<br />
<br />
Author: WataBoy7<br />
Version: v1.0<br />
Description: Explained in-depth above.<br />
<br />
Commands:<br />
 .claninfo &lt;clan tag&gt;<br />
 NOTE: The Clan Tag argument is optional. If not specified, it will run for your own Clan (provided that you have one).<br />
<br />
Aliases:<br />
 .cinfo &lt;clan tag&gt;<br />
 .rcd &lt;clan tag&gt;<br />
<br />
Example Usages:<br />
 .cinfo pure<br />
 .cinfo PWR<br />
 .cinfo<br />
<br />
Important Notes:<br />
<br />
 - This function could be implemented in a variety of different scripts (all dealing, however, with Clans). For instance, I've seen a lot of users manually creating user database entries and doling out access to each specific member in their clan. With a tiny modification, this function could grant a specific access to all members of a specified Clan Rank (i.e. 100 access to all Shamams, 50 to all Grunts, etc.) Also, this could For instance, this function could perhaps even replace the need for a "Clan Rank" script, especially if you need to give "outside" access to other affiliated Clans and their members (ex.: you are a Clan PuRe member and you want to give all Clan PwR members access to your bot).<br />
<br />
 - You can find out the names of members of another Clan, and even save the data to a file if you would like. I actually plan to use this function in the next revision of my Clan Mail script  <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='B)' /></div></div>]]></description>
		<pubDate>Thu, 17 May 2012 00:31:29 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6976-retrieve-clan-data-function/</guid>
	</item>
	<item>
		<title>i saw a bot a while back</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6975-i-saw-a-bot-a-while-back/</link>
		<description><![CDATA[the bot was setup to talk to you like a normal conversation, people were really into that?<br />
<br />
any one got that scipt? Because it might be lengthy.]]></description>
		<pubDate>Tue, 15 May 2012 23:30:13 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6975-i-saw-a-bot-a-while-back/</guid>
	</item>
	<item>
		<title>one year later</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6973-one-year-later/</link>
		<description>hi all missed everyone got old stopped playing. D2 and everything with it but now that D3 is out. I am going o get back on the rotten horse. and was wondering if you have thought about stealthbot for mac yet?</description>
		<pubDate>Tue, 15 May 2012 18:45:08 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6973-one-year-later/</guid>
	</item>
	<item>
		<title>Question about codeability</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6972-question-about-codeability/</link>
		<description><![CDATA[<img src='http://clip2net.com/clip/m111184/1337006669-clip-6kb.png' alt='Posted Image' class='bbc_img' /><br />
is it possible to set/check/get text in this areas?<br />
i want to add text there, f.e.]]></description>
		<pubDate>Mon, 14 May 2012 14:45:19 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6972-question-about-codeability/</guid>
	</item>
	<item>
		<title>Resolved: GetInternalDataByUsername(sUser, lDataType)</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6970-getinternaldatabyusernamesuser-ldatatype/</link>
		<description><![CDATA[There doesn't seem to be any information on the wiki on this function: GetInternalDataByUsername(sUser, lDataType)]]></description>
		<pubDate>Wed, 09 May 2012 18:15:19 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6970-getinternaldatabyusernamesuser-ldatatype/</guid>
	</item>
	<item>
		<title>Clan Mail Script</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6969-clan-mail-script/</link>
		<description><![CDATA[Clan Mail Script (AKA Group Mail)<br />
<br />
Author: WataBoy7<br />
Version: v1.2<br />
Description: Sends out a mass-mail to all group or clan members of a listed database entry.<br />
<br />
Commands:<br />
.clanmail &lt;clantag&gt; &lt;message&gt; - Mails all users listed under the clan. [Access: 0]<br />
   Example: .clanmail lol SUP GUYS<br />
.clantag &lt;clantag&gt; -  Modifies the case for a Clan Tag. [Access: 5]<br />
   Example: .clantag LoL       <br />
.addclan &lt;clantag&gt; - You can add a clan name, or even create a custom group. [Access: 50]<br />
   Example: .addclan THE_COOL_KIDS<br />
.listmem &lt;clantag&gt; - Lists the members of a specified group or clan. [Access: 0]<br />
   Example: .listmem lol			<br />
.addmem &lt;clantag&gt; &lt;user&gt; - Adds a user to a specified group or clan. [Access: 0]<br />
   Example: .addmem lol retard1243												<br />
.delmem &lt;clantag&gt; &lt;user&gt; - Removes a user from a specified group or clan. [Access: 0]<br />
   Example: .delmem lol sir-lol-alot	<br />
<br />
Important Notes:<br />
<br />
  -Settings are listed in the settings file created in your bot's Script folder.<br />
  You can alter the settings file but only if you know what you're doin <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' /> <br />
<br />
  -Edit access required in Command Manager (select Command List -&gt; ClanMail)<br />
<br />
  -This is a test version, but everything should work OK.]]></description>
		<pubDate>Wed, 09 May 2012 15:57:59 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6969-clan-mail-script/</guid>
	</item>
	<item>
		<title>CRS EDIT</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6968-crs-edit/</link>
		<description><![CDATA[Would it be possible in regards to the /crsgreet nm/m &lt;message&gt; that user "groups" could be listed as %g. <br />
<a href='http://www.stealthbot.net/forum/index.php?/topic/367-clan-rank-script-crs/' class='bbc_url' title='External link' rel='nofollow external'>http://www.stealthbot.net/forum/index.php?/topic/367-clan-rank-script-crs/</a><br />
<br />
Eg;<br />
<br />
Welcome to Clan XX, Admin Durpa, from group <strong class='bbc'>Alpha</strong>.]]></description>
		<pubDate>Wed, 09 May 2012 13:15:18 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6968-crs-edit/</guid>
	</item>
	<item>
		<title>Bot online 24/7</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6966-bot-online-247/</link>
		<description><![CDATA[Idk if this is at all possible, or if it would be a script or smth completely different, but i wondered if it was some way to make the channelbot be online 24/7 even if the computer is shut off, eiher by placing the bot on some server or create a digital desktop somewhere where i could place/install the bot and where it would run 24/7<br />
<br />
This would help us out ALOT and idk why it isn't like the GHost bots which do stay on 24/7, but my knowledge of bots is extremely!!! limited^^]]></description>
		<pubDate>Mon, 07 May 2012 20:51:49 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6966-bot-online-247/</guid>
	</item>
	<item>
		<title>Advanced mail option</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6965-advanced-mail-option/</link>
		<description><![CDATA[I don't know if this is allready possible, but if so i don't know how and i would be very happy if someone told me <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/tongue.gif' class='bbc_emoticon' alt=':P' /><br />
<br />
I wish it was possible to add a mail to every member of the clan(could combine it with the dynamic friendslist i guess, or would it only add mail for online members then?)<br />
<br />
A possibility to add the same mail to several players, like "!mail jolly_jumper, black-ninja, rockabilly Remember to eat well!!" and it would send "Remember to eat well!!" as a mail to jolly_jumper, black ninja and rockabilly <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/tongue.gif' class='bbc_emoticon' alt=':P' /><br />
<br />
A possibility to add a mail to all shamans(that could be solved by making some kind of list within the script where it states the shamans and have a word for that like !mail allshamans (text) or smth like that)<br />
<br />
I would like this to be added to another request i've made where there is a !join or !invite (name) command which should be accessable by everyone, !join would save a mail that the player who wrote it wants to join the clan and send that mail to every shaman, if the !invite (name) command is used it would save a mail that the (name) wants to join clan and is invited by the person who wrote !invite (name)<br />
Preferably the bot would only save !join and !invite mails by ppl who is not allready in a clan, and only 1 mail per username(so there is no multiple requests from the same player)<br />
<br />
Anyways these options would be awesome to have <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' /> And there are probably some other options that could be usefull that i can't think of right now, if u got some ideas plz state them here, and maybe if i'm lucky someone wants to make/edit this script and add what could be of use <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' />]]></description>
		<pubDate>Mon, 07 May 2012 20:36:31 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6965-advanced-mail-option/</guid>
	</item>
	<item>
		<title>Several scripts</title>
		<link>http://www.stealthbot.net/forum/index.php?/topic/6964-several-scripts/</link>
		<description><![CDATA[Okay so i'm rly new to this thing, but me and my clan chieftain have been working on coming up with features we would want for a channelbot, and now that we finally got the bot we need some help finding/making the different scripts <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' /><br />
<br />
Here i copy paste what i've written in the text doc. i've sent to everyone i've asked for help, but they all just direct me to this forum so i hope u guys can help me out with this<br />
<br />
<br />
There should be a way to "sign up" for a game, it would make it easier to tell other ppl that u want to play, but ur doing other stuff while u wait for others that also want to play.<br />
<br />
It would save ur accname in a "game list" and if ur the first one to sign up it would make the bot start automessaging every 60 seconds that someone is ready to play (example: "Players who wanna play a game: Jolly_Jumper, Zulu_Year, Xaelar, type !ready if u want to join them!)<br />
<br />
The registration should only last for 10 minutes, and if u join another game u also get removed from that "game list"(would require the bot to /whois [every player who leaves the channel] and know the difference from channels and games(only remove him from list if it's a game he joined)<br />
<br />
And if we got a hostbot aswell(2nd bot) it would host a game as soon as there are 4 or more players ready to play and the channelbot would keep messaging in channel(example: There is a game in lobby GN: SeXi, 4/12 players, 4m)(it could get this information by /whois [hostbot]) the game would start as !autostart 4<br />
<br />
Command:<br />
!ready<br />
!unready<br />
(when u type !ready the bot will whisper u a confirmation that u signed up, how many more players needed for a game to open and how to sign off)<br />
This command should be available for everyone<br />
<br />
<br />
<br />
The channelbot should also have a tournament function where ppl could register for an upcoming tournament<br />
You were talking about using challonge.com which sounds like a good idea, but i guess we should only activate this function like 30 min before tourney start, which should be np <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' /><br />
<br />
Command:<br />
!register<br />
!unregister<br />
(when u type !register it will give u some information(example: You successfully registered to [tournament description], it starts in # minutes, type !unregister if u can't participate)<br />
This command should be available only for ppl with minimum access<br />
<br />
<br />
<br />
Would be nice with some kind of information function where bot owner could type in some information which others could read<br />
<br />
Command:<br />
!info<br />
Accessable by everyone<br />
<br />
<br />
<br />
A command where u could see everyone who has above a certain amount of access points or w/e u wanna call it could be of use<br />
<br />
Command:<br />
!admin<br />
Accessable by everyone<br />
<br />
<br />
<br />
If it's possible for the bot to check clan webpage it would be cool to have a command where u could get some information about a certain player like: "Access points" of hostbot, clan status, last time online, and maybe some easily editable additional information<br />
<br />
Command:<br />
!status [player]<br />
(if u don't type in any accname it will show u ur own status)<br />
Accessable by everyone<br />
<br />
<br />
<br />
Votekick command where u need 3 more votes for then against kicking a certain player out of channel<br />
<br />
Command:<br />
!votekick [player]<br />
!yes, !no<br />
Accessable by ppl with minimum access<br />
<br />
<br />
<br />
A command for ppl who wants to join our clan would be fucking awesome! <br />
The channelbot would have to be able to differ between ppl who's in a clan and ppl who's not, whenever someone who's not in a clan joins channel the hostbot sends him a message every 100 seconds(first message should be instantly after he joins) telling him about the botcommands he got access to, and that as a member he would get access to host games++ and most important that if he wants to join our clan he just needs to type !join and a shaman would contact him within a maximum of 3 days.<br />
If he types !join he gets a msg something like this: "Your request has been registered and will be answered within 3 days, shamans of clan SeXi is: [list of shamans]" <br />
Then the channelbot saves a mail which it sends to all SeXi shamans who joins channel within the next 3 days(only once for each shaman ofc)<br />
That would require the bot to know the difference between shamans and other players who join channel<br />
Would be nice if u could add a command so shamans(ppl with certain access) can check who has requested to join clan the last 3 days<br />
<br />
Btw it's not 100% necessary for the bot to know if a player is in a clan or not, but if it sends that message to everyone it should only send it once(when he joins channel) and it should ofc be whispered so it's easier to see<br />
It doesn't necessarily have to tell him about all the commands he got/can get access to, but rather tell him to check out the !status command for different commands etc. or !info, depends if u can make that status command work or not <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/wink.gif' class='bbc_emoticon' alt=';)' /><br />
<br />
<br />
A command to check the different commands available would also be very nice <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/tongue.gif' class='bbc_emoticon' alt=':P' /><br />
Command:<br />
!commands<br />
<br />
<br />
<br />
And then some fun stuff:D Trivia is old hehe i was thinking of a command that would tell u a random fun-fact "!fun" i would ofc have to gather up a collection of those, and maybe also a "!joke" command that tells u a random short joke, i'll get a collection of those aswell:P<br />
<br />
All these last 3 commands there should be accessable by everyone<br />
<br />
<br />
<br />
There might be some unnecessary info in there for u, but i explained it as good as i could when i wrote that, so i'm guessing if i rewrote it, it would just be worse <img src='http://www.stealthbot.net/forum/public/style_emoticons/default/tongue.gif' class='bbc_emoticon' alt=':P' /><br />
<br />
All help is appreciated, and remember i'm a total newb so make it simple plz^^]]></description>
		<pubDate>Mon, 07 May 2012 17:43:55 +0000</pubDate>
		<guid>http://www.stealthbot.net/forum/index.php?/topic/6964-several-scripts/</guid>
	</item>
</channel>
</rss>
