Ok I am usin the w3 code that was released a few days ago. I can send 0x51 just fine but when ever I do I get sent back &H101 and I cant understand why.
Private Function Send0x51(Hash As String, MPQName As String, SessionID As Long)
Dim Version As Long, CheckRevision As Long, checksum As Long
Dim exeinfo As String, ClientKey As Long
Dim lngProdID As Long, lngValue1 As Long
Dim OutBuffer As String
ClientKey = GetTickCount()
exeinfo = Space(256)
CheckRevision = z(HashPath & ExeName, HashPath & "Storm.dll", HashPath & "Game.dll", Hash, Version, checksum, exeinfo, MPQName)
If CheckRevision = 0 Then
AddC vbRed, "Hashes did not pass CheckRevision."
frmMain.sckBNCS.Close
Exit Function
End If
exeinfo = PBuffer.KillNull(exeinfo)
Call DecodeHashCDKey(BNCS.Cdkey, ClientKey, ServerToken, lngProdID, lngValue1, OutBuffer)
With PBuffer
.InsertDWORD ClientKey
.InsertDWORD Version
.InsertDWORD checksum
.InsertDWORD &H1
.InsertDWORD &H0
.InsertDWORD Len(BNCS.Cdkey)
.InsertDWORD lngProdID
.InsertDWORD lngValue1
.InsertDWORD &H0
.InsertNonNTString OutBuffer
.InsertNTString exeinfo
.InsertNTString Bot.Title
.SendPacket &H51
End With
End Function
Let's see your KillNull function
Public Function KillNull(ByVal Text As String) As String
Dim i As Integer
i = InStr(1, Text, Chr(0))
If i = 0 Then
KillNull = Text
Exit Function
End If
KillNull = Left(Text, i - 1)
End Function
I am 100% baffled as to why it does not work, so all I can suggest is that your using the wrong exe's or an older version.
Edit: You won't get my 100% attention with this post, because Yoni is pretty angry involving the whole W3 hash thing, so I won't comment all that much. I may help with the cdkey/checkrevision part, but definitely not the password part, which I know will give many people some problems.
Exactly what I expected to happen from this. People taking the code having no clue how to use it, expecting it to work.
Quote from: UserLoser. on July 12, 2004, 09:58 PM
Exactly what I expected to happen from this. People taking the code having no clue how to use it, expecting it to work.
I suggest providing no help on this topic because it is obviously not worthy of 98% of the users who will come across it. GosuGaming and BaddBlood were banned due to it's exposure (I believe), so no help shall be given.
PS: Fix that ugly 0x51....I've seen it about 999999 times when people ask for help on 0x51. I am getting sick of seeing it, and although it works, it's really YUCKY >:(
Quote from: UserLoser. on July 12, 2004, 09:58 PM
Exactly what I expected to happen from this. People taking the code having no clue how to use it, expecting it to work.
What do you expect? 95% of the boards can't code a bot from scratch, they expect anything in a DLL to work.
Ok after I recoded 0x51 I still got the error &h101 and I found out the prob was with my hashes :'( but problem fixed now and now I am movin on.
Edit: BaDDBLooD found out my problem and also helped with 0x51
I told you to check the hashes in my first post, why does it take everybody so long to try my suggestions >:(
Edit: My mistake, it was in my second post.
sry I didnt think it was the problem b/c I was told the hashes were uptodate
I told everyone in channel to use the link I gave out silly.
I would like to give a thx to the ppl who helped me on this and to the ppl who made the dlls
Quote from: DueL on July 13, 2004, 03:31 AM
I would like to give a thx to the ppl who helped me on this and to the ppl who made the dlls
You're thanking people whose stolen code you're using...
well I thought it was nice of me to say thx.
iago , open source is good for people programming , because it gives them more to look at and if you're bitching about DueL using someone else's code look at Bill Gates before you bitch at other people first!
Quote from: Factor on July 13, 2004, 08:18 AM
iago , open source is good for people programming , because it gives them more to look at and if you're bitching about DueL using someone else's code look at Bill Gates before you bitch at other people first!
You clearly don't know me. I'm an open source zealot, 98% of the time. I love open source. But it's _stealing_ that I don't agree with. And the war3 login code was _stolen_.
Well I thought it was open source.... I did not know that someone stole the source and leaked it out.
Factor I see your new http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=7657 (http://forum.valhallalegends.com/phpbbs/index.php?board=17;action=display;threadid=7657)
Edit: Read that to see what has happened
Quote from: iago on July 13, 2004, 08:46 AM
Quote from: Factor on July 13, 2004, 08:18 AM
iago , open source is good for people programming , because it gives them more to look at and if you're bitching about DueL using someone else's code look at Bill Gates before you bitch at other people first!
You clearly don't know me. I'm an open source zealot, 98% of the time. I love open source. But it's _stealing_ that I don't agree with. And the war3 login code was _stolen_.
Not true. iago is a spy sent by the man. He continuously spreads pro-Microsoft propaganda and chastises me for programming in Java, saying that it supports Terrorism by ruining our economy :'(.
Quote from: DaRk-FeAnOr on July 13, 2004, 10:19 AM
Quote from: iago on July 13, 2004, 08:46 AM
Quote from: Factor on July 13, 2004, 08:18 AM
iago , open source is good for people programming , because it gives them more to look at and if you're bitching about DueL using someone else's code look at Bill Gates before you bitch at other people first!
You clearly don't know me. I'm an open source zealot, 98% of the time. I love open source. But it's _stealing_ that I don't agree with. And the war3 login code was _stolen_.
Not true. iago is a spy sent by the man. He continuously spreads pro-Microsoft propaganda and chastises me for programming in Java, saying that it supports Terrorism by ruining our economy :'(.
You just said the exact opposite of everything I believe in >:'-(
Quote from: DaRk-FeAnOr on July 13, 2004, 10:19 AM
Quote from: iago on July 13, 2004, 08:46 AM
Quote from: Factor on July 13, 2004, 08:18 AM
iago , open source is good for people programming , because it gives them more to look at and if you're bitching about DueL using someone else's code look at Bill Gates before you bitch at other people first!
You clearly don't know me. I'm an open source zealot, 98% of the time. I love open source. But it's _stealing_ that I don't agree with. And the war3 login code was _stolen_.
Not true. iago is a spy sent by the man. He continuously spreads pro-Microsoft propaganda and chastises me for programming in Java, saying that it supports Terrorism by ruining our economy :'(.
Next time I see iago on webcam I'll be sure to look for this (http://www.digitaldoozie.net/images/opensource.png) hanging in the background. :P
Quote from: hismajesty[yL] on July 13, 2004, 11:32 AM
Next time I see iago on webcam I'll be sure to look for this (http://www.digitaldoozie.net/images/opensource.png) hanging in the background. :P
HOLY **** !!! :-\