Jump to content
McKay Development

various custom games


RedyyPT

Recommended Posts

How do I get multiple custom games at the same time? for example, I put in the bot a custom game to say "hello" and after 5 seconds it changes to another custom game

 

How can I do it?

Goal:

I have a custom game on my bot to say "do! Commands to see all commands" and wanted to past 5 seconds to switch to another

 

  

Link to comment
Share on other sites

How do I get the timer here? 

 

client.logOn(logOnOptions);
 
client.on('loggedOn', () => {
console.log('login feito com sucesso');
client.setPersona(SteamUser.Steam.EPersonaState.Online);
client.gamesPlayed(["Digita !comandos para veres todos os comandos",10,730,440,570]);
});
Link to comment
Share on other sites

var random = [
'non steamgame1',

'non steamgame2',

'non steamgame3',

'non steamgame4',

];
  client.setPersona(SteamUser.Steam.EPersonaState.Online),
    sleep.sleep(2),
setInterval(function random1() {
  var randomnumber = Math.floor(Math.random() * (random.length));
  client.gamesPlayed([random[randomnumber], 668630, 20710, 200170, 504370, 431960, 207140, 368730, 484830, 356890, 262450, 210770, 730, 753, 466240, 602890, 526740, 238320, 610360, 433850, 428430, 361420, 359550, 242760, 12100, 12110, 581510, 431240, 422870, 716110, 718370, 365670, 479130, 448470, 533300, 485310,]);
}, 180000); //3min

'non steamgame1',

'non steamgame1',

Link to comment
Share on other sites

Whats wrong? 

 
});
^
 
SyntaxError: Unexpected token }
    at new Script (vm.js:74:7)
    at createScript (vm.js:246:10)
    at Object.runInThisContext (vm.js:298:10)
    at Module._compile (internal/modules/cjs/loader.js:657:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
    at startup (internal/bootstrap/node.js:266:19)
 
Config bot: 
 
var random = [
'Digita !comandos para veres todos os comandos',
 
'Queres salas permanentes e gratis? Digita !ts',
 
'Digita !vip para veres os preços dos vips',
 
'Ajuda a cheadcm a chegar aos 4k membros , digita !grupo',
 
];
  client.setPersona(SteamUser.Steam.EPersonaState.Online),
    sleep.sleep(2),
setInterval(function random1() {
  var randomnumber = Math.floor(Math.random() * (random.length));
  client.gamesPlayed([random[randomnumber], 668630, 20710, 200170, 504370, 431960, 207140, 368730, 484830, 356890, 262450, 210770, 730, 753, 466240, 602890, 526740, 238320, 610360, 433850, 428430, 361420, 359550, 242760, 12100, 12110, 581510, 431240, 422870, 716110, 718370, 365670, 479130, 448470, 533300, 485310,]);
}, 180000); //3min
'Digita !comandos para veres todos os comandos',
 
'Queres salas permanentes e gratis? Digita !ts',
 
});
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...