Valhalla Legends Forums Archive | Battle.net Bot Development | Client Key? (GTC)

AuthorMessageTime
Freeware
I have really never understood what the Client Key (GTC) is. Using BNLS, BNLS returns the GTC for you to use. However, in some bots, the GTC is hardcoded as 'GTC = 2140859764'. Can anybody really explain what this is?
November 8, 2003, 11:06 PM
CupHead
GTC means GetTickCount, which is a function in kernel32. It returns a long value containing the number of milliseconds since the system was started.
November 8, 2003, 11:20 PM
Freeware
[quote author=CupHead link=board=17;threadid=3488;start=0#msg28185 date=1068333617]
GTC means GetTickCount, which is a function in kernel32. It returns a long value containing the number of milliseconds since the system was started.
[/quote]

So you can use any random number in it and Battle.Net will still function?
November 8, 2003, 11:21 PM
Tuberload
It would probably be better if you just made use of the GetTickCount() method.
November 8, 2003, 11:34 PM
Spht
[quote author=Freeware link=board=17;threadid=3488;start=0#msg28186 date=1068333714]
[quote author=CupHead link=board=17;threadid=3488;start=0#msg28185 date=1068333617]
GTC means GetTickCount, which is a function in kernel32. It returns a long value containing the number of milliseconds since the system was started.
[/quote]

So you can use any random number in it and Battle.Net will still function?
[/quote]

Yes, any random number between zero and 0xffffffff. You can use GetTickCount(), but then you're telling Battle.net your system's uptime. So you may want to use something like rand().
November 8, 2003, 11:43 PM
iago
[quote author=Spht link=board=17;threadid=3488;start=0#msg28195 date=1068335017]
[quote author=Freeware link=board=17;threadid=3488;start=0#msg28186 date=1068333714]
[quote author=CupHead link=board=17;threadid=3488;start=0#msg28185 date=1068333617]
GTC means GetTickCount, which is a function in kernel32. It returns a long value containing the number of milliseconds since the system was started.
[/quote]

So you can use any random number in it and Battle.Net will still function?
[/quote]

Yes, any random number between zero and 0xffffffff. You can use GetTickCount(), but then you're telling Battle.net your system's uptime. So you may want to use something like rand().
[/quote]

So, any number between 0 and -1 ;)

It should be noted that you can use anything PROVIDED you are consistant throughout (ie, for 0x51 and for your password hash, etc.). That should be common sense, but I just thought I'd mention it :)
November 8, 2003, 11:47 PM

Search