Jump to content


Photo

various custom games


Best Answer SpiTik , 02 August 2018 - 06:58 AM

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',

Go to the full post


  • Please log in to reply
5 replies to this topic

#1 RedyyPT

RedyyPT

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 01 August 2018 - 05:17 PM

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
 
  


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,810 posts

Posted 01 August 2018 - 06:13 PM

Set up a timer, and call gamesPlayed with the next string in the rotation each time it fires.


  • RedyyPT likes this

#3 RedyyPT

RedyyPT

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 02 August 2018 - 04:58 AM

how i can do this? XD



#4 RedyyPT

RedyyPT

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 02 August 2018 - 05:14 AM

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]);
});


#5 SpiTik

SpiTik

    Advanced Member

  • Member
  • PipPipPip
  • 32 posts

Posted 02 August 2018 - 06:58 AM   Best Answer

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',


  • RedyyPT likes this

π“’π“Ÿπ“˜π“£π“˜π“š


#6 RedyyPT

RedyyPT

    Newbie

  • Member
  • Pip
  • 7 posts

Posted 02 August 2018 - 07:39 AM

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',
 
});





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users