Valhalla Legends Forums Archive | Battle.net Bot Development | Bad Words.

AuthorMessageTime
Yegg
I was wondering if ne1 could help show me what to do to stop people from trying to make an account that contains words that are marked as "bad". Like when ur using the actual game client if u type in fuck or blizzard or update, it considers it a bad word, i've gotten my bot to recognize some words but it makes them case sensative, and this wouldn't help. does ne1 know the proper way to go about doing this?
September 19, 2004, 6:00 PM
Newby
Battle.net will send you a response back if you try to create an account with an illegal word in it. So you don't have to. ;)
September 19, 2004, 6:16 PM
BaDDBLooD
You recieve a Byte in 0x3D, the value for Banned word is "3"
September 19, 2004, 6:21 PM
Laff
although it does send you back an error code, if you wanted to check it client side before sending all you have to do is either lcase or ucase both comparisons to make it case insensitive.

ie: let's say you want to censor "blah" and all of it's variants - some psuedocode would look like this -

if (lcase(pw) == "blah")
fail();
else
success();

that way it would lcase "BlAh" or "Blah" or "bLAH" or whatever and compare it to "blah". hope this helps in future problems if you run into them again.
September 19, 2004, 7:52 PM
Yegg
lol, sorry but my bot runs off csb, i wusn't thinking about the server automatically bringing back a response, if i used bnls or something like that, but im gonna use the lcase commands, hopefully that'll fix the problem.
September 19, 2004, 8:31 PM
tA-Kane
[quote author=Yegg link=board=17;threadid=8742;start=0#msg80917 date=1095625911]my bot runs off csb, i wusn't thinking[/quote]Best quote ever.
September 20, 2004, 2:07 AM
Twix
lol i had soda in my mouth when i read that now i need to clean off my screen and keyboard
September 20, 2004, 2:26 AM
Newby
[quote author=tA-Kane link=board=17;threadid=8742;start=0#msg80999 date=1095646076]
[quote author=Yegg link=board=17;threadid=8742;start=0#msg80917 date=1095625911]my bot runs off csb, i wusn't thinking[/quote]Best quote ever.
[/quote]
You kick ass. Your title should be "Master of taking things out of context". ;)

EDIT -- <3
September 20, 2004, 3:58 AM
Dyndrilliac
[quote author=Laff link=board=17;threadid=8742;start=0#msg80898 date=1095623551]
although it does send you back an error code, if you wanted to check it client side before sending all you have to do is either lcase or ucase both comparisons to make it case insensitive.

ie: let's say you want to censor "blah" and all of it's variants - some psuedocode would look like this -

if (lcase(pw) == "blah")
fail();
else
success();

that way it would lcase "BlAh" or "Blah" or "bLAH" or whatever and compare it to "blah". hope this helps in future problems if you run into them again.
[/quote]

That's not neccessary.
[code]If InStr(UsernameVariableHere, "BadWordHere") <> 0 Then Exit Sub[/code]
September 20, 2004, 4:03 PM
Stealth
You should pass the vbTextCompare argument to InStr if you want to ignore case. vbBinaryCompare, the default, IS case-sensitive.
September 20, 2004, 11:14 PM
KkBlazekK
[quote author=tA-Kane link=board=17;threadid=8742;start=0#msg80999 date=1095646076]
[quote author=Yegg link=board=17;threadid=8742;start=0#msg80917 date=1095625911]my bot runs off csb, i wusn't thinking[/quote]Best quote ever.
[/quote]

Shouldn't it be

my bot runs off csb, i wusn't thinking...

So people know he didn't finish his sentance there?
September 21, 2004, 9:04 PM
tA-Kane
[quote author=Kk)Blaze(kK link=board=17;threadid=8742;start=0#msg81288 date=1095800696]
[quote author=tA-Kane link=board=17;threadid=8742;start=0#msg80999 date=1095646076]
[quote author=Yegg link=board=17;threadid=8742;start=0#msg80917 date=1095625911]my bot runs off csb, i wusn't thinking[/quote]Best quote ever.
[/quote]Shouldn't it be

my bot runs off csb, i wusn't thinking...

So people know he didn't finish his sentance there?
[/quote]If you want to do it that way, then it would be like this:

[quote]...my bot runs off csb, i wusn't thinking...[/quote]

It was not only not the end of the sentence, but not the beginning either.

[me=tA-Kane]stops useless chatter on this subject[/me]
September 22, 2004, 4:57 PM

Search