Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: ChR0NiC on January 25, 2004, 12:20 PM

Title: Logged On With A Ping Of.....
Post by: ChR0NiC on January 25, 2004, 12:20 PM
When logging on I discovered of course that during
Case &HA

You receive your username, product and username again.....
I believe the 2nd username determines whether you are logged on as the original person or #2, #3, etc...

But I was wondering if there was a place where you could find your ping when logging on. If yes, that would be very much so appreciated.

Man....I am bad at wording things.....and obviously &HA is entering chat, but I don't know how else to get your logon information without pulling it out of your config.....and I hate to do that  ???
Title: Re:Logged On With A Ping Of.....
Post by: UserLoser. on January 25, 2004, 01:17 PM
Quote from: ChR0NiC on January 25, 2004, 12:20 PM
When logging on I discovered of course that during
Case &HA

You receive your username, product and username again.....
I believe the 2nd username determines whether you are logged on as the original person or #2, #3, etc...

But I was wondering if there was a place where you could find your ping when logging on. If yes, that would be very much so appreciated.

Man....I am bad at wording things.....and obviously &HA is entering chat, but I don't know how else to get your logon information without pulling it out of your config.....and I hate to do that  ???

The first time you'll know what the server calculated your ping as, is when you join a channel (0xF event id 0x7)
Title: Re:Logged On With A Ping Of.....
Post by: ChR0NiC on January 25, 2004, 01:26 PM
Quote from: UserLoser. on January 25, 2004, 01:17 PM
The first time you'll know what the server calculated your ping as, is when you join a channel (0xF event id 0x7)

For those of you who don't know.....
[0xF] = SID_CHATEVENT
[0x7] = ID_CHAN

Anyways.....how does someone like SPHT post the ping that was logged on with in his status bar in Eternal Chat?? Cuz I really wanna have a good logon message.
Title: Re:Logged On With A Ping Of.....
Post by: Zakath on January 25, 2004, 02:34 PM
He enters chat and checks to see what ping he has. It's not that complicated.
Title: Re:Logged On With A Ping Of.....
Post by: ChR0NiC on January 25, 2004, 02:45 PM
Quote from: Zakath on January 25, 2004, 02:34 PM
He enters chat and checks to see what ping he has. It's not that complicated.

You have give me no information.......
I can't just "check to see what ping I have" it's not like there is a welcome message giving you your ping, or an area up top somewhere.
Title: Re:Logged On With A Ping Of.....
Post by: DarkMinion on January 25, 2004, 03:35 PM
...it's sent with the channel event?
Title: Re:Logged On With A Ping Of.....
Post by: botmaster on January 25, 2004, 03:40 PM

Case &HF
       'CHAT EVENTS!
       Dim chatevent As String
       Dim Flags As String
       Dim Ping As String
       Dim UserName As String
       Dim Message As String
       chatevent = MakeLong(Mid$(data, 5, 4))
       Flags = MakeLong(Mid$(data, 9, 4))
       Ping = MakeLong(Mid$(data, 13, 4))
       UserName = KillNull(Mid$(data, 29))
       Message = KillNull(Mid$(data, Len(UserName) + 30))

     


won't that get the ping for you?
Title: Re:Logged On With A Ping Of.....
Post by: ChR0NiC on January 25, 2004, 04:15 PM
Quote from: botmaster on January 25, 2004, 03:40 PM

Case &HF
       'CHAT EVENTS!
       Dim chatevent As String
       Dim Flags As String
       Dim Ping As String
       Dim UserName As String
       Dim Message As String
       chatevent = MakeLong(Mid$(data, 5, 4))
       Flags = MakeLong(Mid$(data, 9, 4))
       Ping = MakeLong(Mid$(data, 13, 4))
       UserName = KillNull(Mid$(data, 29))
       Message = KillNull(Mid$(data, Len(UserName) + 30))

     


won't that get the ping for you?

But will it get my ping??? For sure always mine?
Title: Re:Logged On With A Ping Of.....
Post by: UserLoser. on January 25, 2004, 04:27 PM
Quote from: DarkMinion on January 25, 2004, 03:35 PM
...it's sent with the channel event?

Yes.... Your ping is recieved with almost every chat event....
Title: Re:Logged On With A Ping Of.....
Post by: DarkMinion on January 25, 2004, 04:44 PM
QuoteYes.... Your ping is recieved with almost every chat event....

Correct...with the exception of when you whisper to someone else or someone else's in-channel event.
Title: Re:Logged On With A Ping Of.....
Post by: MyndFyre on January 25, 2004, 04:55 PM
Quote from: DarkMinion on January 25, 2004, 04:44 PM
QuoteYes.... Your ping is recieved with almost every chat event....

Correct...with the exception of when you whisper to someone else or someone else's in-channel event.

For example, when you have EVENT_USERJOIN or EVENT_USER (when a user joins the channel, or when the user was in the channel that you are joining), that packet contains that user's ping.
Title: Re:Logged On With A Ping Of.....
Post by: UserLoser. on January 25, 2004, 05:23 PM
Quote from: DarkMinion on January 25, 2004, 04:44 PM
QuoteYes.... Your ping is recieved with almost every chat event....

Correct...with the exception of when you whisper to someone else or someone else's in-channel event.

Sounded like to me that you didn't know that...
Title: Re:Logged On With A Ping Of.....
Post by: ChR0NiC on January 25, 2004, 05:35 PM
Quote from: DarkMinion on January 25, 2004, 04:44 PM
Correct...with the exception of when you whisper to someone else or someone else's in-channel event.

*stares blankly*

UH........so I guess I'm not gonna get an answer....
Title: Re:Logged On With A Ping Of.....
Post by: Kp on January 25, 2004, 05:48 PM
Quote from: ChR0NiC on January 25, 2004, 05:35 PM*stares blankly* UH........so I guess I'm not gonna get an answer....

You've already been answered multiple times.  If you aren't going to recognize that, I see no reason for this thread to continue.
Title: Re:Logged On With A Ping Of.....
Post by: Arta on January 26, 2004, 10:09 AM
Hopefully in non-misunderstandble terms:

The ping field in SID_CHATEVENT will contain YOUR PING for the following chat events:

EID_CHANNEL
EID_CHANNELFULL
EID_CHANNELFULL
EID_CHANNELRESTRICTED
EID_INFO
EID_ERROR

There may be others, without checking, I'm not entirely sure.

In other words, when you enter chat and get EID_CHANNEL to say you've joined a channel, that packet will always contain your ping.

I don't think it can be made much more clear than that.
Title: Re:Logged On With A Ping Of.....
Post by: DarkMinion on January 26, 2004, 02:22 PM
Yeah userloser...I've only been working with the binary interface for years, much longer than you.

I had no clue.  ::)
Title: Re:Logged On With A Ping Of.....
Post by: Adron on January 26, 2004, 03:26 PM
Quote from: DarkMinion on January 26, 2004, 02:22 PM
Yeah userloser...I've only been working with the binary interface for years, much longer than you.

I had no clue.  ::)

You should never assume such things... There can be obvious things you overlook for years, and then suddenly you see them and laugh at how you could miss them sitting right under your nose for all this time.
Title: Re:Logged On With A Ping Of.....
Post by: DarkMinion on January 26, 2004, 03:31 PM
I realize that, but we're just talking about chat events here...
Title: Re:Logged On With A Ping Of.....
Post by: Adron on January 26, 2004, 03:56 PM
Quote from: DarkMinion on January 26, 2004, 03:31 PM
I realize that, but we're just talking about chat events here...

Well, how long did it take for people to realize that the account# of a chat client in a chat event was the IP address of the client?
Title: Re:Logged On With A Ping Of.....
Post by: R.a.B.B.i.T on January 27, 2004, 04:25 PM
Also: You get your own ping in EID_USER if the username is yours.