Valhalla Legends Forums Archive | Visual Basic Programming | Bot Colors...

AuthorMessageTime
KkBlazekK
Can someone help me out with my code? i'm trying to get starcraft code colors to show up but I am not completly sure how to.. pretty much I am asking if anyone know how to turn ÁYhey into this hey(inred) inside of a rtf...

all atemps = Fail
February 8, 2004, 11:21 AM
Lobo.id
[code]If Left(strData, 1) = "Á" Then
If Mid(LCase(strData), 2, 1) = "y" Then
Addtext(vbRed, strData)
End If
End If[/code]

Just to get you started, this is one way of doing it, if you wanted to get the color's inside of a chat string use IntStr()
February 8, 2004, 3:18 PM
Skywing
The proper way to do this would be to UTF-8 decode the text and use the 0x1-0x13 or so color codes implemented by the Starcraft chat output listbox.

[s]See MultiByteToWideChar and WideCharToMultiByte[/s].

Edit: Since MultiByteToWideChar and WideCharToMultiByte have actually proper working UTF-8 implementations, this won't work, since the color codes rely on a broken decoder processing redundant encodings. I suppose you'll probably have to write your own (broken) decoder for this.
February 10, 2004, 5:38 PM
LoRd
Why would anyone want to replicate a bug?
February 12, 2004, 3:16 AM
Newby
[quote author=LoRd[nK] link=board=31;threadid=5169;start=0#msg43777 date=1076555785]
Why would anyone want to replicate a bug?
[/quote]

"It looks pretty"
February 12, 2004, 3:31 AM
Adron
[quote author=LoRd[nK] link=board=31;threadid=5169;start=0#msg43777 date=1076555785]
Why would anyone want to replicate a bug?
[/quote]

Bugs are also known as "features". I never create bugs, only features!
February 12, 2004, 10:44 AM
ChR0NiC
The reason for this, is because Stealth bot has replicated this bug of Battle.net's. Although it may be just a bug, it is good, because people who speak with those damn "A" characters are annoying, so don't forget to do Replace to get rid of the A's

Edit: My point is, Stealth bot is very popular and everyone wants to make their bot like it.
February 14, 2004, 8:12 AM
Soul Taker
[quote author=ChR0NiC link=board=31;threadid=5169;start=0#msg44220 date=1076746348]
The reason for this, is because Stealth bot has replicated this bug of Battle.net's. Although it may be just a bug, it is good, because people who speak with those damn "A" characters are annoying, so don't forget to do Replace to get rid of the A's

Edit: My point is, Stealth bot is very popular and everyone wants to make their bot like it.
[/quote]
I'm going to go out on a limb and guess it just mimics the colors based on the codes that non-SC clients see, and doesn't have the broken functions from SC.
February 14, 2004, 9:21 AM
Stealth
[quote author=Soul Taker link=board=31;threadid=5169;start=0#msg44227 date=1076750518]
[quote author=ChR0NiC link=board=31;threadid=5169;start=0#msg44220 date=1076746348]
The reason for this, is because Stealth bot has replicated this bug of Battle.net's. Although it may be just a bug, it is good, because people who speak with those damn "A" characters are annoying, so don't forget to do Replace to get rid of the A's

Edit: My point is, Stealth bot is very popular and everyone wants to make their bot like it.
[/quote]
I'm going to go out on a limb and guess it just mimics the colors based on the codes that non-SC clients see, and doesn't have the broken functions from SC.
[/quote]

You're correct. Actually, my sistem is fairly inefficient as it currently stands: text is modified using the SelColor property based upon color codes present within it after being printed to the RTB. But, it works.
February 14, 2004, 5:16 PM
Newby
[quote author=ChR0NiC link=board=31;threadid=5169;start=0#msg44220 date=1076746348]
Edit: My point is, Stealth bot is very popular and everyone wants to make their bot like it.
[/quote]

No, that's not true at all. I and many others dislike StealthBot and don't want any other bots to mimic it.
February 14, 2004, 5:51 PM
Dyndrilliac
[quote author=Newby link=board=31;threadid=5169;start=0#msg44284 date=1076781112]
[quote author=ChR0NiC link=board=31;threadid=5169;start=0#msg44220 date=1076746348]
Edit: My point is, Stealth bot is very popular and everyone wants to make their bot like it.
[/quote]

No, that's not true at all. I and many others dislike StealthBot and don't want any other bots to mimic it.
[/quote]

I think Chronic was using sarcasm.
February 14, 2004, 8:58 PM
R.a.B.B.i.T
[quote author=ChR0NiC link=board=31;threadid=5169;start=0#msg44220 date=1076746348]
Edit: My point is, Stealth bot is very popular and everyone wants to make their bot like it.
[/quote]I like StealthBot, it's a good bot, but I don't want my bots to be like it at all..
February 15, 2004, 3:17 AM
SPY-3
stealthbot is ok but its better using a bot that you make and as for colors i made it edit colors after its added but it all works real good ive added diablo colors to to mine (my bot looks nothing like stealth bot or id redo all the layout of it :p)

o yah and nobody wants to copy stealthbot they just want to copy starcraft with alot more htings that would be better. just cause u made ur bot b4 us doesnt mean we want to copy your bot :p
August 27, 2004, 1:52 PM
SPY-3
even if colors are a bug in starcraft its nice to see your own bot getrid of Á and the colors or u goto almost any channel and you cant even ready what the ideots wrote casue u see ÁQhÁYi well u can read it but it takes longer.
August 27, 2004, 1:54 PM

Search