Valhalla Legends Forums Archive | Battle.net Bot Development | Chat sending

AuthorMessageTime
Slugger69
I fixed an ethbot and got it loaded on BNet v1.10 but when i type it sends the text on the bot screen and shows it there but i go to bnet and it isnt there. Any help?
May 17, 2003, 3:57 AM
UserLoser
With PBuffer
.InsertNTString TextToSendToBattleNet
.SendPacket &HE
End With

Check out http://www.valhallalegends.com/arta/bnetdocs/
May 17, 2003, 1:06 PM
Slugger69
which script does that go under? thnks
May 17, 2003, 1:51 PM
Arta
Well, what do you think? It's hardly difficult to figure out...

When do you wanna send text to Battle.net? When the user presses Enter. So, put that in the appropriate event handler.
May 17, 2003, 2:23 PM
Yoni
Btw: Maybe you're using a muted account/cdkey?
May 17, 2003, 3:01 PM
Slugger69
no its the key i use on bnet but i type on it shows it on the bot screen just not on bnet. i tried arta's idea but i try to talk and it says debug and it highlights
.InsertNTString TextToSendToBattleNet


May 17, 2003, 3:09 PM
Yoni
Sounds violently dangerous.

Let go of VB.
May 17, 2003, 3:47 PM
Eternal
*Yoni deserves +1 for the letting go comment*
May 20, 2003, 6:50 AM
Undeference
2 possibilites I am thinking of:
1) You are displaying the text before you are sending it. With my bot, I wait to receive what I have sent before displaying it (the log will be more accurate that way). And either bnet is not sending it to people or you are not sendning it to bnet.
2)Bnet tells you what you say even when what you have said is truncated or is too long and they do not send it to everyone else. Possibly you are sending a bunch of extra characters (since you are using VB, this is likely), and you do not even know about it.
May 20, 2003, 9:42 PM
laurion
[quote author=Undeference link=board=17;threadid=1350;start=0#msg10301 date=1053466969]
2 possibilites I am thinking of:
1) You are displaying the text before you are sending it. With my bot, I wait to receive what I have sent before displaying it (the log will be more accurate that way). And either bnet is not sending it to people or you are not sendning it to bnet.
2)Bnet tells you what you say even when what you have said is truncated or is too long and they do not send it to everyone else. Possibly you are sending a bunch of extra characters (since you are using VB, this is likely), and you do not even know about it.
[/quote]
it would just cut off the end..
May 20, 2003, 10:32 PM
MesiaH
yeah, and disconnected/possibly ip banned based on how big the message was...

phear 0x19...
May 21, 2003, 12:37 AM
Slugger69
no it recieves the messages from users in the channels but i cant get the chat to send the script for text sending is:

Private Sub txtSend_KeyPress(KeyAscii As Integer)

If KeyAscii = 127 Then MsgBox "del"
If KeyAscii = 13 Then
cmdSend_Click
KeyAscii = 0
End Sub

My friend said this would work:

Public Sub Send(ByVal Data As String, Optional UnHide As Boolean)



Dim WaitTime As Long

If Data = "" Then Data = " "
Dim strData As String
WaitTime = RequiredDelay(Len(Data))
Dim lSendDelay As String
lSendDelay = WaitTime
Exit Sub
If UnHide = True Then
strData = strData & Chr(1) & "1" ' a null follow by "1" to show
End If

End Sub

I hit enter after typing and it doesnt even make that text go away...
May 21, 2003, 3:05 AM
Noodlez
um.. undeference, i'm pretty sure bnet doesn't echo back what you send
May 21, 2003, 3:10 AM
Slugger69
didnt say it did i said i can recieve chat just not send chat.
May 21, 2003, 6:03 PM
tA-Kane
[quote author=Noodlez link=board=17;threadid=1350;start=0#msg10330 date=1053486608]i'm pretty sure bnet doesn't echo back what you send[/quote]Remember that the chat sessions do.

[quote author=Slugger69 link=board=17;threadid=1350;start=0#msg10360 date=1053540204]i can recieve chat just not send chat.[/quote]When you try to send chat, do you get disconnected from Battle.net? If so, it's most likely that you've a malformed packet header, or a message who's length is quite beyond the message length limit. If not, then you are not actually sending the text.

Either way, you should breakpoint your sending methods/functions and follow along until you can figure it out, all of this is assuming you're not using CleanSlateBot. If you're using CleanSlateBot, then go do something which is a little more... simple.
May 22, 2003, 8:18 AM
Noodlez
Kane, I know. Undefernce said instead of directly adding chat after he sends it, he waits for bnet to send back his own message. Obviously he's using the binary protocol, and his claim that BNet sends back his own text is false.
May 22, 2003, 4:41 PM
Slugger69
doesnt disconnect me it just doesnt send.
May 23, 2003, 4:02 AM
UserLoser
Have you tried using a packetlogger and seeing if it's even sending *anything* ?
May 23, 2003, 3:31 PM

Search