• Welcome to Valhalla Legends Archive.
 

how to make BN bots like WGT ?

Started by XuuL, April 14, 2005, 01:01 PM

Previous topic - Next topic

XuuL

hi folx,

im interested in how the WGT (World Gaming Tour) installed such bots in Battle Net...
for those who dont know what they r doin...

1.: u can whisper them
2.: they can execute scripts with the information u whispered them
3.: they can whisper u back

the communication stuff doesnt seem rly difficult, its the "execute script by the information whispered" thing ^^

i would be happy for any hints :)

QwertyMonster

Easy, atleast i think. Make it so if the bot sees something like, " <username> WIN" or LOSS, then whisper back saying, "<username>'s game: WON. Game sent off to be marked" or something. And if you wondering how to make it give the username, packet logging would be your friend here. I think this is what your on about. Hope this helps! :P

Tazo

Executing a script? That's not very hard..create a sub called WhisperScript or whatever and put your code in there. When you receive a whisper, forward that to WhisperScript, do a Select Case ("rank" or whatever..) you get it right?

Public Sub OnWhisper(txt as string, user as string)
WhisperScript(txt, user)
End Sub
Public Sub WhisperScript(Text as string, user as string)
Select Case Text
       Case "myrank"
                 Send "Your rank is " & GetRank(User)
End Select
End Sub

That answered your question..if not you need to be more specific

whoops qwerty, posted right after you

XuuL

ah okay, know what ya mean... didnt knew bots are able to make these OnEvent actions

thanks so far... i gonna try it out ;)

btw... can u gimme a hint which kind of bot is best for such actions ?
there are so many different bots to download :/

XuuL

oh well.. i just installed Stealth Bot and it seems to work fine... so its okay :)

Archangel

Yeah, probably StealthBot is a good options because of the VB scripts, or you can download other bots like Vanquish, etc and make your own plugins.
I'm not an Addict.

Joe[x86]

Writing C++ plugins is rarely worth the time needed, unless its requested by many users (Spht and Zorm) or you have the needed knoledge to make it easy and fun (Spht and Zorm). I, however, will be sticking to VBScript for some time. I'd be immensly interested in someone adding JavaScript supporiting events to their bot. Maybe someone would be interested in writing an On-The-Fly JS to VB porter, so that they can be translated and passed.
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

MyndFyre

Quote from: Joex86] link=topic=11278.msg108632#msg108632 date=1113534646]
Writing C++ plugins is rarely worth the time needed, unless its requested by many users (Spht and Zorm) or you have the needed knoledge to make it easy and fun (Spht and Zorm). I, however, will be sticking to VBScript for some time. I'd be immensly interested in someone adding JavaScript supporiting events to their bot. Maybe someone would be interested in writing an On-The-Fly JS to VB porter, so that they can be translated and passed.

If this is a Windows app (sounds like it based on the fact that you're using VBScript), you can do so with relative ease by utilizing the Windows Scripting Host interfaces.  In fact, you'd be able to use Perl as well (if your system had ActivePerl).  See the Introduction to Windows Script Interfaces and the Windows Script Interface References for more information on adding scripting through any language to a program.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.