• Welcome to Valhalla Legends Archive.
 

Client Token in AutoIt?

Started by Glyph, October 18, 2007, 12:58 AM

Previous topic - Next topic

Glyph

I've looked through the AutoIt commands, posted a post similair to this on the AutoIt forums and have found nothing at either place, I can't figure out how to get a Client Token in autoit, if anyone has a way to do this I would love to see it!

-thanks

MyndFyre

Quick: you have one post to clarify whether this is even Battle.net-related and how it's bot-related.  See this for reference.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Dale

I believe AutoIt is a scripting language for Silkroad Online, and other RPGs.

Don Cullen

No. Dale, close, but no cigar.

Yes, it's a scripting language. But not for those RPGs, although it can be used for them. It's actually a scripting language for a program called AutoIt (Automate it), that helps to automate tasks in windows.

quote from their website:

QuoteAutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required!

AutoIt was initially designed for PC "roll out" situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.

Link: http://www.autoitscript.com/autoit3/

Backstabbed, to answer your question (however indirectly), it is NOT possible to develop a bot in AutoIt. AutoIt is just a scripting language that mainly outputs keypresses and mouseclicks. Perhaps I'm wrong, perhaps it's possible, just very difficult.

That being said, the Client Token can be anything you choose. Usually, people use the GetTickCount api as a value for the Client Token.

Example:

Dim ClientToken
ClientToken = GetTickCount


If you make use of GetTickCount, don't forget to declare the API.
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

Glyph

Quote
That being said, the Client Token can be anything you choose. Usually, people use the GetTickCount api as a value for the Client Token.

So, what exactly is a Client Token?
Your saying i can decalre it as anything.... so i could call it $x = 1 and then in client token i can have it = $x ?
I don't think it's that simple.... Maybe it's something to do with time? there is a ticks to time and a time to ticks there is a way to get the amount of time from one point to another or get current time or subtract time etc. any of these have to do with a Client Token?

Hdx

#5
Yes, A client token of 1 would work. Hell, a client token of 0 used to work. Though I haven't tested in a while and they might not like that.

Heres the thing, A client token is a random number generated by the client and used for securing various parts of the connection sequence.
So yes, you can make it whatever you want.

People/the game, use Get Tick Count simply because it returns a 'random' number. Meaning theres really no was to predict it from an outside computer. And it changes often. It's just that it's more handy/reliable then writing your own random number generator.
~Hdx

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Glyph

Ah, thanks Hdx!
I understand it now :P

Don Cullen

Quote from: BackStabbed on October 18, 2007, 08:37 AM
Quote
That being said, the Client Token can be anything you choose. Usually, people use the GetTickCount api as a value for the Client Token.

So, what exactly is a Client Token?
Your saying i can decalre it as anything.... so i could call it $x = 1 and then in client token i can have it = $x ?
I don't think it's that simple.... Maybe it's something to do with time? there is a ticks to time and a time to ticks there is a way to get the amount of time from one point to another or get current time or subtract time etc. any of these have to do with a Client Token?

Yes, it's that simple. I suggested using GetTickCount because, like what Hdx said, the game uses it, and the majority of people use it. But again, like I said earlier, you can choose any value for it, you can even set it to 1 if you wanted. It would work fine. But in the interest of more closely emulating the client, I'd recommend using GetTickCount. ;p
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

UserLoser

Quote from: Hdx on October 18, 2007, 08:41 AM
Yes, A client token of 1 would work. Hell, a client token of 0 used to work. Though I haven't tested in a while and they might not like that.

Heres the thing, A client token is a random number generated by the client and used for securing various parts of the connection sequence.
So yes, you can make it whatever you want.

People/the game, use Get Tick Count simply because it returns a 'random' number. Meaning theres really no was to predict it from an outside computer. And it changes often. It's just that it's more handy/reliable then writing your own random number generator.
~Hdx

IIRC, a value of 0 doesn't work for some authentication things during login.  I believe on the realm stuff and CD-key stuff, I could be wrong though it's been a while.