Valhalla Legends Forums Archive | General Discussion | Kind of annoyed

AuthorMessageTime
Myndfyr
Someone sent me a private message, so I took the time to write a nice reply and the account either was deleted or never existed.  The author didn't bother to leave me any contact information.  So here it is, for the annals of time, in case you happen to be browsing.

[quote author="Piskota_TNT"]
Dear MyndFyre,

first of let me introduce myself. My name is Borko and as you are probably guessing I am a wanna-be-bot-creator.

That is partially correct, but I have been working with C# for almost a year and I have some experience in C as well (started off with C). I have been a shaman and a bot maintainer for a long time but since I think that SB is dying and the support on the website is awful I am trying to migrate from SB to jinxbot. As I could develop stuff for it since it's written in C#. Unfortunately your site was down when I started googling and cache version did not provide any download link :(
[/quote]
There isn't a proper build available for download.  However, you can SVN-checkout the latest JinxBot repository from SVN via http://jinxbot.googlecode.com/ and it should build and run fine.

[quote author="Piskota_TNT"]
But I am guessing that you've stopped working on it and left bnet development completely.
[/quote]
Eh, I come and go.  I think I might be getting back in, as I just found a library that parses JavaScript within a .NET environment (called Jurassic), so I'm thinking about adding that to JinxBot.  I've wanted to add script support to JinxBot for a long time, and now it seems like it might be workable.  So I'm investigating that.

[quote author="Piskota_TNT"]So I am kindly asking you for some help in understanding how bnet works and how I should approach the logical/planning and programming phase in the development of my own bot. I have searched, I have googled, tried learning from other peoples source code, but mostly it was bad.[/quote]
If you're interested in making your own bot, you might consider using BN#, which is the library I programmed to make it easy to make a bot in C# (JinxBot is built around it).  It handles all of the underlying connection pieces for you.  You can also get the latest version of that, Beta 3, from the same Google Code repository.  To make a bot using BN#, you have to do these things:
[list][*]Implement IBattleNetSettings, which is a simple interface that provides the settings to the bot.
[*]Pass your instance of IBattleNetSettings to the constructor of a BattleNetClient
[*]Sign up for BattleNetClient's events, such as Connected, JoinedChannel, etc.
[*]Call Connect on your instance of BattleNetClient.[/list]

[quote author="Piskota_TNT"]
Could you please provide me a step by step linking to what I need to know in order to start making my own bot?

Thank you,

Borko
[/quote]
Your alternative is to use BnetDocs, which describes the packet structure of what's actually going on under the hood.  Battle.net exchanges a series of messages with your client over port 6112.  You need to know how to prepare, send, receive, and decode those messages in order to make a bot, and is substantially out of the purview of what I'm willing to write in a PM.  You can, however, find good information by searching this forum, if that's the route you want to go.

I will say, it's good knowledge to have - understanding bytes, socket communication, and whatnot - it's a skill few people have.  However, it's a skill few have because few need it.  You may find it's a waste of time to learn how to do all that low-level stuff, in which case, BN# isn't a bad way to go.

GL.
June 26, 2011, 5:18 AM
MysT_DooM
whoops my bad :P, thought he was a bot when I lookedup his IP info on projecthoneypot.org and it was linked with spam messages.  Anyway he's unbanned, if you read this Piskota, feel free to register again ;)
June 26, 2011, 5:37 PM
Myndfyr
Myst, can you look at backups to see if he has an email address that I can mail?  I don't like leaving people hanging and the guy might not know what he did, or might have seen that he was deleted and got pissed and left.  If so, PM me.  Thanks.
June 27, 2011, 4:11 PM
Myndfyr
[color=#808080][18.32.48][/color][color=#000000] [/color][color=#9acd32]Hello, JinxBot, from JavaScript![/color][color=#ffa500]  I look forward to completing your training.[/color]

Woot!  I managed to get a few method calls to work - addChat, send - this could be good! :)

[code]
function onLoad()
{
    addChat([
        {
            text: 'Hello, JinxBot, from JavaScript!',
            color: Colors.YellowGreen
        },
        {
            text: '  I look forward to completing your training.',
            cssClass: CssClasses.Error
        }
    ]);
}
[/code]

I set global objects CssClasses and Colors, and a global function addChat to the standard global functions specified by ECMAScript 5.  I also included set/clear Timeout/Interval, and a format() function that passes along its arguments to .NET's string.Format().


[color=#808080][18.38.55][/color][color=#000000] [/color][color=#9acd32]Hello, JinxBot, from JavaScript![/color][color=#ffa500]  I look forward to completing your training.[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ffffff]Transparent[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#f0f8ff]AliceBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#faebd7]AntiqueWhite[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#00ffff]Aqua[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#7fffd4]Aquamarine[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#f0ffff]Azure[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#f5f5dc]Beige[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ffe4c4]Bisque[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#000000]Black[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ffebcd]BlanchedAlmond[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#0000ff]Blue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#8a2be2]BlueViolet[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#a52a2a]Brown[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#deb887]BurlyWood[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#5f9ea0]CadetBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#7fff00]Chartreuse[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#d2691e]Chocolate[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ff7f50]Coral[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#6495ed]CornflowerBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#fff8dc]Cornsilk[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#dc143c]Crimson[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#00ffff]Cyan[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#00008b]DarkBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#008b8b]DarkCyan[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#b8860b]DarkGoldenrod[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#a9a9a9]DarkGray[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#006400]DarkGreen[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#bdb76b]DarkKhaki[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#8b008b]DarkMagenta[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#556b2f]DarkOliveGreen[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ff8c00]DarkOrange[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#9932cc]DarkOrchid[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#8b0000]DarkRed[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#e9967a]DarkSalmon[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#8fbc8b]DarkSeaGreen[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#483d8b]DarkSlateBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#2f4f4f]DarkSlateGray[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#00ced1]DarkTurquoise[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#9400d3]DarkViolet[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ff1493]DeepPink[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#00bfff]DeepSkyBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#696969]DimGray[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#1e90ff]DodgerBlue[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#b22222]Firebrick[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#fffaf0]FloralWhite[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#228b22]ForestGreen[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ff00ff]Fuchsia[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#dcdcdc]Gainsboro[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#f8f8ff]GhostWhite[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#ffd700]Gold[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#daa520]Goldenrod[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#808080]Gray[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#008000]Green[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#adff2f]GreenYellow[/color]
[color=#808080][18.38.55][/color][color=#000000] [/color][color=#f0fff0]Honeydew[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ff69b4]HotPink[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#cd5c5c]IndianRed[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#4b0082]Indigo[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fffff0]Ivory[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#f0e68c]Khaki[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#e6e6fa]Lavender[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fff0f5]LavenderBlush[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#7cfc00]LawnGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fffacd]LemonChiffon[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#add8e6]LightBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#f08080]LightCoral[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#e0ffff]LightCyan[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fafad2]LightGoldenrodYellow[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#90ee90]LightGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#d3d3d3]LightGray[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffb6c1]LightPink[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffa07a]LightSalmon[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#20b2aa]LightSeaGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#87cefa]LightSkyBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#778899]LightSlateGray[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#b0c4de]LightSteelBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffffe0]LightYellow[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#00ff00]Lime[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#32cd32]LimeGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#faf0e6]Linen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ff00ff]Magenta[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#800000]Maroon[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#66cdaa]MediumAquamarine[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#0000cd]MediumBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ba55d3]MediumOrchid[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#9370db]MediumPurple[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#3cb371]MediumSeaGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#7b68ee]MediumSlateBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#00fa9a]MediumSpringGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#48d1cc]MediumTurquoise[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#c71585]MediumVioletRed[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#191970]MidnightBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#f5fffa]MintCream[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffe4e1]MistyRose[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffe4b5]Moccasin[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffdead]NavajoWhite[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#000080]Navy[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fdf5e6]OldLace[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#808000]Olive[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#6b8e23]OliveDrab[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffa500]Orange[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ff4500]OrangeRed[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#da70d6]Orchid[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#eee8aa]PaleGoldenrod[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#98fb98]PaleGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#afeeee]PaleTurquoise[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#db7093]PaleVioletRed[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffefd5]PapayaWhip[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffdab9]PeachPuff[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#cd853f]Peru[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffc0cb]Pink[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#dda0dd]Plum[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#b0e0e6]PowderBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#800080]Purple[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ff0000]Red[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#bc8f8f]RosyBrown[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#4169e1]RoyalBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#8b4513]SaddleBrown[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fa8072]Salmon[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#f4a460]SandyBrown[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#2e8b57]SeaGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fff5ee]SeaShell[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#a0522d]Sienna[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#c0c0c0]Silver[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#87ceeb]SkyBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#6a5acd]SlateBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#708090]SlateGray[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#fffafa]Snow[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#00ff7f]SpringGreen[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#4682b4]SteelBlue[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#d2b48c]Tan[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#008080]Teal[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#d8bfd8]Thistle[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ff6347]Tomato[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#40e0d0]Turquoise[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ee82ee]Violet[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#f5deb3]Wheat[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffffff]White[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#f5f5f5]WhiteSmoke[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#ffff00]Yellow[/color]
[color=#808080][18.38.56][/color][color=#000000] [/color][color=#9acd32]YellowGreen[/color]
July 9, 2011, 1:34 AM

Search