Valhalla Legends Forums Archive | Battle.net Bot Development | Spoofing Ping

AuthorMessageTime
BlazingKnight
When my bot logs on, it shows up as -1ms. How do I change this to the normal ping, or to 0ms?
September 21, 2003, 7:14 PM
Spht
[quote author=BlazingKnight link=board=17;threadid=2784;start=0#msg21887 date=1064171655]
When my bot logs on, it shows up as -1ms. How do I change this to the normal ping, or to 0ms?
[/quote]

To have Battle.net properly calculate your ping, on receive of SID_PING (0x25), echo back the same message and contents.
September 21, 2003, 7:25 PM
______
[quote author=BlazingKnight link=board=17;threadid=2784;start=0#msg21887 date=1064171655]
When my bot logs on, it shows up as -1ms. How do I change this to the normal ping, or to 0ms?
[/quote]

sigh

https://davnit.net/bnet/vL/phpbbs/index.php?board=17;action=display;threadid=2607
normal ping , you just respond to packet 25
September 21, 2003, 7:36 PM
Freeware
[code]
Case &H25 'ping pong?
If m_RespondToPing = True Then 'spoof lag

pingvalue = GetDWORD(Data)
InsertDWORD pingvalue
If m_IncreaseLatency > 0 Then
Sleep m_IncreaseLatency
End If
SendPacket &H25

Else

End If
[/code]
September 21, 2003, 9:45 PM
Spht
[quote author=Freeware link=board=17;threadid=2784;start=0#msg21900 date=1064180728]
[code]
Case &H25 'ping pong?
If m_RespondToPing = True Then 'spoof lag

pingvalue = GetDWORD(Data)
InsertDWORD pingvalue
If m_IncreaseLatency > 0 Then
Sleep m_IncreaseLatency
End If
SendPacket &H25

Else

End If
[/code]
[/quote]

There are too many things wrong with that. Firstly, you're assuming that SID_PING will always contain DWORD - who says it's always going to be a DWORD? It could be anything, you're just supposed to echo back whatever Battle.net sends you here. Secondly, you're using Sleep which blocks all execution of any other actions for your application, freezing it until the time specified exceeds - try a different method of waiting. Thirdly, you have an empty Else case(?) - that does not need to be there.
September 21, 2003, 10:10 PM
BlazingKnight
Heres what I did for my latency/lag. Under my Winsock_DataArrival

If GetStuff("Alpha", "Lag") = "Normal" Then
pbuffer.InsertDWORD &H0
pbuffer.sendPacket &H25
ElseIf GetStuff("Alpha", "Lag") = "-1" Then
Exit Sub
End If

How would I go about doing -1ms/Plug
September 22, 2003, 12:02 AM
______
[quote author=BlazingKnight link=board=17;threadid=2784;start=0#msg21927 date=1064188946]
Heres what I did for my latency/lag. Under my Winsock_DataArrival

If GetStuff("Alpha", "Lag") = "Normal" Then
pbuffer.InsertDWORD &H0
pbuffer.sendPacket &H25
ElseIf GetStuff("Alpha", "Lag") = "-1" Then
Exit Sub
End If

How would I go about doing -1ms/Plug
[/quote]



to get -1 just dont respond to packet 25
September 22, 2003, 12:44 AM
Death-Merchant
I know to get -1 you just don't respond to the packet, but how are you supossed to get 0ms?
September 22, 2003, 1:27 AM
UserLoser
[quote author=Death-Merchant link=board=17;threadid=2784;start=0#msg21932 date=1064194028]
I know to get -1 you just don't respond to the packet, but how are you supossed to get 0ms?
[/quote]

Buy an OC-12.
September 22, 2003, 1:55 AM
BlazingKnight
12 is such a small number. Why not 138 :)

0ms is the plug right?

If I'm mistaken, then how do you get the plug?
September 22, 2003, 2:30 AM
Soul Taker
Do not verify UDP support.
September 22, 2003, 4:20 AM
DarkMinion
[quote author=BlazingKnight link=board=17;threadid=2784;start=0#msg21938 date=1064197827]
0ms is the plug right?
[/quote]

No, ping has nothing to do with the plug...
September 22, 2003, 4:31 AM
BlazingKnight
Oh. Sorry. I though that the plug was 0ms. My bad. So how do you now allow the UDP?
September 22, 2003, 4:42 AM
BlazingKnight
not allow UDP*

*Typo*
September 22, 2003, 5:05 AM
Soul Taker
Do a search for spoofing UDP support, since that question comes up a lot, and then just don't do what it says.
September 22, 2003, 7:47 AM
Yoni
[quote author=BlazingKnight link=board=17;threadid=2784;start=0#msg21949 date=1064207126]
not allow UDP*

*Typo*
[/quote]

This forum has an "Edit" feature...
September 22, 2003, 12:12 PM
BlazingKnight
Yeah. I could use the "Edit" feature, but the reply button was much closer to my pointers current position.
September 22, 2003, 8:51 PM
Stealth
That's possibly the lamest excuse I've ever heard.

To finish answering your question and make this post somewhat relevant, you get 0ms ping by sending 0x25 at the server with a DWORD value of 0 immediately after sending 0x50.

But yeah. Edit your posts and don't post irrelevant ones! Forum etiquette all the way!
September 22, 2003, 11:16 PM
Death-Merchant
I'm not trying to get offensive or anything, but no one should have to edit their posts. If you can't understand what someone is trying to say then there is something wrong. I can understand if the spelling/grammer is horid.
September 23, 2003, 12:49 AM
iago
[quote author=Death-Merchant link=board=17;threadid=2784;start=15#msg21987 date=1064278187]
I'm not trying to get offensive or anything, but no one should have to edit their posts. If you can't understand what someone is trying to say then there is something wrong. I can understand if the spelling/grammer is horid.
[/quote]

eew? The post-edit feature was made for a reason, so you could go back and fix a post afterwards if you realize there's a problem..
September 23, 2003, 12:50 AM
Death-Merchant
If you can understand what I posted then there is no problem. If you can't then one could question your intelligence.
September 23, 2003, 2:04 AM
EvilCheese
[quote]
I can understand if the spelling/grammer is horid.
[/quote]

I can understand if the spelling/gramm[u]A[/u]r is hor[u]R[/u]id.*

:)
September 23, 2003, 2:11 AM
SiMi
[quote author=Stealth link=board=17;threadid=2784;start=15#msg21982 date=1064272565]
That's possibly the lamest excuse I've ever heard.

To finish answering your question and make this post somewhat relevant, you get 0ms ping by sending 0x25 at the server with a DWORD value of 0 immediately after sending 0x50.

But yeah. Edit your posts and don't post irrelevant ones! Forum etiquette all the way!
[/quote]
The DWORD value doesn't always have to be 0.
September 23, 2003, 2:14 AM
Death-Merchant
Thank you Cheese. :P
September 23, 2003, 2:20 AM
BlazingKnight
So something like this?

If LCase(GetStuff("Alpha", "Lag")) = "0ms" Then
pbuffer.sendPacket &H50
pbuffer.InsertDWORD &H0
pbuffer.sendPacket &H25
End If
September 23, 2003, 3:45 AM
______
[quote author=Death-Merchant link=board=17;threadid=2784;start=15#msg21987 date=1064278187]
I'm not trying to get offensive or anything, but no one should have to edit their posts. If you can't understand what someone is trying to say then there is something wrong. I can understand if the spelling/grammer is horid.
[/quote]

Trying to make your own rules on posting/editing?
September 23, 2003, 4:24 AM
BlazingKnight
No, he's just pointing out some useless features.
September 23, 2003, 4:42 AM
Death-Merchant
I just think it's bad that you have to have perfect typing to get a decent reply.
September 23, 2003, 5:35 AM
Soul Taker
I think it's bad how you're horribly derailing this thread and starting a debate which will never be over in our lifetimes.
September 23, 2003, 8:01 AM
Adron
[quote author=Death-Merchant link=board=17;threadid=2784;start=15#msg22011 date=1064295350]
I just think it's bad that you have to have perfect typing to get a decent reply.
[/quote]

Caring to fix your typing shows us that you care about your post. If you don't want to spend 10 seconds editing and fixing an obvious spelling error, then maybe we don't want to spend 5 minutes researching and posting a good answer?

(edit: fixed wording)
September 23, 2003, 8:03 AM
WinSocks
[quote]I just think it's bad that you have to have perfect typing to get a decent reply. [/quote]

Taking time and carefully typing out a post, makes people look at it more seriously, and it shows that you are serious about your post. Not everyone can understand Jibberish :P

(KeyBoard is Craptastic)
September 23, 2003, 6:57 PM

Search