• Welcome to Valhalla Legends Archive.
 

Spoofing Ping

Started by BlazingKnight, September 21, 2003, 02:14 PM

Previous topic - Next topic

BlazingKnight

When my bot logs on, it shows up as -1ms. How do I change this to the normal ping, or to 0ms?

Spht

Quote from: BlazingKnight on September 21, 2003, 02:14 PM
When my bot logs on, it shows up as -1ms. How do I change this to the normal ping, or to 0ms?

To have Battle.net properly calculate your ping, on receive of SID_PING (0x25), echo back the same message and contents.

______

#2
Quote from: BlazingKnight on September 21, 2003, 02:14 PM
When my bot logs on, it shows up as -1ms. How do I change this to the normal ping, or to 0ms?

sigh

http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=2607
normal ping , you just respond to packet 25

Freeware

     
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
 

Spht

#4
Quote from: Freeware on September 21, 2003, 04:45 PM
     
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
 


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.

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

______

Quote from: BlazingKnight on September 21, 2003, 07:02 PM
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



to get -1 just dont respond to packet 25

Death-Merchant

I know to get -1 you just don't respond to the packet, but how are you supossed to get 0ms?

UserLoser

Quote from: Death-Merchant on September 21, 2003, 08:27 PM
I know to get -1 you just don't respond to the packet, but how are you supossed to get 0ms?

Buy an OC-12.

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?

Soul Taker

Do not verify UDP support.

DarkMinion

Quote from: BlazingKnight on September 21, 2003, 09:30 PM
0ms is the plug right?

No, ping has nothing to do with the plug...

BlazingKnight

Oh. Sorry. I though that the plug was 0ms. My bad. So how do you now allow the UDP?

BlazingKnight


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.