HeilShuckle
Member-
Posts
5 -
Joined
-
Last visited
HeilShuckle's Achievements
-
HeilShuckle reacted to a post in a topic: Send an offer with an item from a received offer?
-
HeilShuckle reacted to a post in a topic: Send an offer with an item from a received offer?
-
I'm trying to send an offer to an ID with an item the bot got from another offer whenever it accepts, the code looks something like this (this is the accept function I use whenever I want to accept an offer): function acceptOffer(offer) { var newOffer = manager.createOffer(SOMEID); newOffer.addMyItem(offer.itemsToReceive[0]); offer.accept((err) => { community.checkConfirmations(); if (err) console.log("There was an error accepting the offer."); }); newOffer.send(function(err, status) {console.log('error: '+err+'status: '+status)}); console.log(newOffer.state);}; When I run this, the state logs as 1, which means invalid, so Im not entirely sure on how to do this. Any ideas?
-
How to get inventory contents of a steamuser
HeilShuckle replied to HeilShuckle's topic in node-steam-user
I'm sorry, I've looked through it and tried a bunch of stuff, but I can't figure it out because the commands in steamcommunity are asking for a type of object that the client isn't. I may be entirely wrong here, but all I need is for you to show me an example, Im just so confused. -
How to get inventory contents of a steamuser
HeilShuckle replied to HeilShuckle's topic in node-steam-user
Well then how would I use node-steamcommunity to get the inventory of my client? -
I'm trying to figure out how to get the contents of the inventory of my own bot. I use const SteamUser = require('steam-user'); const client = new SteamUser(); but I haven't been able to find a way to load the inventory with something like client.getInventoryContents(); I'm sure there's a way to do it, but i'm flat lining in my head right now.