Jump to content


Photo

Reset value of new items

node.js node-steam-user

  • Please log in to reply
3 replies to this topic

#1 PonyExpress

PonyExpress

    Advanced Member

  • Member
  • PipPipPip
  • 35 posts

Posted 27 July 2019 - 07:53 AM

 

You can reset the count to 0 by loading your inventory page (https://steamcommuni...om/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
    }
});


#2 PonyExpress

PonyExpress

    Advanced Member

  • Member
  • PipPipPip
  • 35 posts

Posted 10 August 2019 - 03:34 PM

Up.

I still have not found a solution and am waiting for help.



#3 PonyExpress

PonyExpress

    Advanced Member

  • Member
  • PipPipPip
  • 35 posts

Posted 18 August 2019 - 12:25 AM

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://steamcommuni.../my/inventory/"or "https://steamcommuni...inventory/#440"?


Edited by PonyExpress, 18 August 2019 - 12:41 AM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,212 posts

Posted 19 August 2019 - 04:55 PM

No, those are the same exact URL.







Also tagged with one or more of these keywords: node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users