• Welcome to Valhalla Legends Archive.
 

Ping

Started by LizArD, March 03, 2004, 06:50 PM

Previous topic - Next topic

LizArD

Does anyone happen to have the code for pinging a user? And what I need to add for the command to work

Stealth

"Write my bot for me!"

Store their pings in an array alongside their usernames (whichever method pleases you -- parallel arrays, a UDT, collection, whatever). Once you have this data stored, simply find the ping that corresponds to the user you want to ping and display it. :)
- Stealth
Author of StealthBot

o.OV

Quote from: LizArD on March 03, 2004, 06:50 PM
Does anyone happen to have the code for pinging a user? And what I need to add for the command to work

I'm not clear on what you are asking..

To my knowledge .. you can't actually ping a user..
The only ping information that I know of is the Ping at Logon.

Do you mean whisper a user and get a ping?
If so then battle.net gives you the target's ping at logon
when you successfully whisper the target.

I won't give you the code for this though..
this is ridiculously simple.
If the facts don't fit the theory, change the facts. - Albert Einstein

R.a.B.B.i.T

The ping of a user is calculated at their login and sent to people who see the message (whispers, emotes, w/e).

g0dFraY

Lizard i suggest that you either go read a visual basic book, read online tutorials or if you happen to be to lazy, experiment untill you get the hang of it. People at this forum are willing to help but we are not going to give you complete code, so you can put it in your bot and say you made it.

ChR0NiC

#5
Ping is received on the following Events Along With Other Info..

ID_USER = &H1
ID_JOIN = &H2
ID_LEAVE = &H3
ID_TALK = &H5
ID_CHAN = &H7
ID_FLAGS = &H9
ID_ERROR = &H13
ID_EMOTE = &H17
ID_WHISPTO = &HA

These are found when parsing 0x0F  SID_CHATEVENT
I suggest using BNCSMon by Arta to learn more about 0xF.
It's really a very good tool to be using if any.

Or reading up on it at BNETDocs 0xF
You will need a login for this....

SPY-3

and how would you get ping if your not using somethin like csb?

LizArD

"Ping
« on: March 03, 2004, 06:50 pm » "

stop bringing up dead posts, n00b