Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: R.a.B.B.i.T on January 02, 2004, 04:20 PM

Title: 0x1E Question
Post by: R.a.B.B.i.T on January 02, 2004, 04:20 PM
im not great with the login packets....but..w/e

Public Sub Send1E()
   InsertDWORD 0
   InsertDWORD 0
   InsertDWORD 0
   InsertDWORD 0
   InsertDWORD 0
   InsertNTString "SB"
   InsertNTString "SB"
   sendPacket &H1E
   InsertNonNTString "68XI" & strClient
   InsertDWORD GetVerByte()
   InsertDWORD 0
   sendPacket &H6
   If sPing = 0 Then
       InsertDWORD &H0
       sendPacket &H25
   End If
End Sub

just wondering what i should change to get EST in local time..
Title: Re:0x1E Question
Post by: UserLoser. on January 02, 2004, 05:08 PM
Edit: Neither 0x06 or 0x1e have anything to do with sending your time zone information, if you want to get the correct time (ex: /time), you should either use a newer logon sequence, or use 0x12 (SID_LOCALEINFO).  The 5th DWORD of 0x12 is your time zone information, which can be retrieved by using GetTimeZoneInformation (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettimezoneinformation.asp).
Title: Re:0x1E Question
Post by: R.a.B.B.i.T on January 02, 2004, 06:24 PM
of course, i dont wanna translate that c++ over 2 vb, make it easy...would ya?
Title: Re:0x1E Question
Post by: UserLoser. on January 02, 2004, 07:01 PM

Dim TZB as TIME_ZONE_INFORMATION
GetTimeZoneInformation TZB


What to send: TZB.Bias + TZB.StandardBias
Title: Re:0x1E Question
Post by: ChR0NiC on January 04, 2004, 04:19 AM
huh??????
I don't get it  :-[