dahulk
Digital Asset Protection Specialist
2
MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1
300 XP
Hello guyz!
Here I'll explain how to idle hours while doing other things or even playing other games!
Step 1: Download and install node.js (http://nodejs.org/)
Step 2: Install node-steam for node.js (https://github.com/seishun/node-steam/)
Step 3: Create a file called "idle.js" or something like that and paste the following code in it.
If you want to idle other games, just replace the appid in line 27. Step 4: Add node to your path. In Windows 7 - Go to Start menu, right click on 'Computer', -> Properties -> Advanced system settings -> Advanced -> Environment Variables Then append the location of node.exe to the PATH variable. (i.e. add 'C:\Program Files (x86)\nodejs' using ';' as a seperator) Step 5: Create a .cmd-File in the same directory as your script file and write in: "node YOURFILENAME.js". Step 6: Open the file and idle! Have a nice day!
Edited by BL4CKL4W, 06 October 2015 - 02:47 AM.
Here I'll explain how to idle hours while doing other things or even playing other games!
Step 1: Download and install node.js (http://nodejs.org/)
Step 2: Install node-steam for node.js (https://github.com/seishun/node-steam/)
Step 3: Create a file called "idle.js" or something like that and paste the following code in it.
Code:
var Steam = require('steam');
var fs = require('fs');
var bot = new Steam.SteamClient();
if (fs.existsSync('sentryfile'))
{
var sentry = fs.readFileSync('sentryfile');
console.log('[STEAM] logging in with sentry ');
bot.logOn({
accountName: 'YOUR ACCOUNTNAME',
password: 'YOUR PASSWORD',
shaSentryfile: sentry
});
}
else
{
console.log('[STEAM] logging in without sentry');
bot.logOn({
accountName: 'YOUR ACCOUNTNAME',
password: 'YOUR PASSWORD',
authCode: 'STEAMGUARD CODE'
});
}
bot.on('loggedOn', function() {
console.log('[STEAM] Logged in.');
bot.setPersonaState(Steam.EPersonaState.Online);
bot.gamesPlayed([730]);
});
bot.on('sentry', function(sentryHash)
{//A sentry file is a file that is sent once you have
//passed steamguard verification.
console.log('[STEAM] Received sentry file.');
fs.writeFile('sentryfile',sentryHash,function(err) {
if(err){
console.log(err);
} else {
console.log('[FS] Saved sentry file to disk.');
}});
});
//Handle logon errors
bot.on('error', function(e) {
console.log('[STEAM] ERROR - Logon failed');
if (e.eresult == Steam.EResult.InvalidPassword)
{
console.log('Reason: invalid password');
}
else if (e.eresult == Steam.EResult.AlreadyLoggedInElsewhere)
{
console.log('Reason: already logged in elsewhere');
}
else if (e.eresult == Steam.EResult.AccountLogonDenied)
{
console.log('Reason: logon denied - steam guard needed');
}
})
Edited by BL4CKL4W, 06 October 2015 - 02:47 AM.