Jump to content
McKay Development

Fastmancz

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Fastmancz

  1. Hello,

     

    I don't know where is the problem, but after 30 March day stopped working function gamesPlayed.

     

    Steam update: http://blog.counter-strike.net/index.php/2018/03/20308/

     

    I made the latest updates via: npm update ; npm update express.

     

    Here is the simple code for status:

    client.on('loggedOn', () => {
        console.log('BOT is Online.');
        client.setPersona(SteamUser.Steam.EPersonaState.Online);
        client.gamesPlayed(["My MiniBot",730]); // client.gamesPlayed(730); or client.gamesPlayed(440); - It's same. I see constantly Online without changes.
    });

    Thanks for answer.

  2. Hello,

     

    can you tell me, how to make conditions for:

     

     

    You have logged in from a new device. In order to protect the items in your inventory, you will be unable to trade from this device for 7 days.

     

    Is it possible to make a condition that immediately rejects a bid on any mistake by Steam? I tried to list (offer.state) in (console.log) and always I get = 2 (to this error message - You have logged....).

    function processOffer(offer) {
        if (offer.isGlitched() || offer.state === 11) {
            //console.log("Offer was glitched, declining.");
            declineOffer(offer);
        } else if (offer.partner.getSteamID64() === config.ownerID) {
            acceptOffer(offer);
            var item = ourItems[i].market_name;
        } else {
    
         //my_code
    
        }
    function acceptOffer(offer) {
        offer.accept((err) => {
            community.checkConfirmations();
            //console.log("We Accepted an offer");
            if (err); //console.log("There was an error accepting the offer.");
        });
    }
     
    function declineOffer(offer) {
        offer.decline((err) => {
            //console.log("We Declined an offer");
            if (err); //console.log("There was an error declining the offer.");
        });
    }
    

    Thanks for help and answer.

×
×
  • Create New...