Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: BorT on March 14, 2004, 03:18 PM

Title: Whats wrong with this...say/shout command
Post by: BorT on March 14, 2004, 03:18 PM
This works fine:

If Left(LCase(Message), 6) = "shout " And Len(Message) > 6 Then
     sckBNLS.Send UCase(Right(Message, Len(Message) - 6))
End If

This doesnt work:

If Left(LCase(Message), 4) = "say " And Len(Message) > 4 Then
     sckBNLS.Send Right(Message, Len(Message) - 4)
End If


They are basically the same code, so why does one work but not the other?

Thanks.
Title: Re:Whats wrong with this...say/shout command
Post by: Kp on March 14, 2004, 03:22 PM
I'm surprised either works.  BNLS doesn't like when people talk to it.
Title: Re:Whats wrong with this...say/shout command
Post by: BorT on March 14, 2004, 03:25 PM
Nevermind, found the problem myself.
Title: Re:Whats wrong with this...say/shout command
Post by: ChR0NiC on March 14, 2004, 03:33 PM
Perhaps you could tell us what it was??
So people will stop wondering ;P
Title: Re:Whats wrong with this...say/shout command
Post by: tA-Kane on March 14, 2004, 11:07 PM
Quote from: UserLoser. on March 14, 2004, 04:42 PMI'm gussing that's CleanSlateBot.  mswinsck.ocx doesn't have a .Send function (it's .SendData)
I'm more interested in why he's apparently sending the data to BNLS, than what socket interface he's apparently using.
Title: Re:Whats wrong with this...say/shout command
Post by: Eli_1 on March 14, 2004, 11:24 PM
Quote from: tA-Kane on March 14, 2004, 11:07 PM
Quote from: UserLoser. on March 14, 2004, 04:42 PMI'm gussing that's CleanSlateBot.  mswinsck.ocx doesn't have a .Send function (it's .SendData)
I'm more interested in why he's apparently sending the data to BNLS, than what socket interface he's apparently using.

I don't think he's sending the data to BNLS, I think he was just confussed when nameing his CSB control...
Title: Re:Whats wrong with this...say/shout command
Post by: PaiD on March 14, 2004, 11:44 PM
Quote
BNLS doesn't like when people talk to it.
I just like Kp's response on this. I find it funny.
Title: Re:Whats wrong with this...say/shout command
Post by: g0dFraY on March 15, 2004, 07:16 PM
yes i find it quiet funny too. Yet im interested. and i agree with ta-kane, i think he might have named the CSB control incorrectly. Oyea as long as he worked it out for himself and learned from it im not complaning.
Title: Re:Whats wrong with this...say/shout command
Post by: Eli_1 on March 15, 2004, 07:43 PM
Quote from: g0dFraY on March 15, 2004, 07:16 PM
yes i find it quiet funny too. Yet im interested. and i agree with ta-kane, i think he might have named the CSB control incorrectly. Oyea as long as he worked it out for himself and learned from it im not complaning.
Actually, that was my post...  :'(