Jump to content
McKay Development

Reset value of new items


PonyExpress

Recommended Posts

 

You can reset the count to 0 by loading your inventory page (https://steamcommunity.com/my/inventory) while logged in.

 

I do not understand how to reset the value. 

I want it to be reset after how the value was shown in the console.

client.on("newItems", function(count) {
    if (parseInt(count) > 0) {
        console.log("New items: " + count);
        // RESET
    }
});
Link to comment
Share on other sites

  • 2 weeks later...

Solved.

            community.httpRequestGet("https://steamcommunity.com/my/inventory/", (ERR) => {
                if (ERR) {
                    console.log("ERR");
                } else {
                    console.log("OK");
                }
            });

To just reset the count to 0, if I have a large steam inventory, is there any difference to use "https://steamcommunity.com/my/inventory/"or "https://steamcommunity.com/my/inventory/#440"?

Edited by PonyExpress
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...