Jump to content
McKay Development

hrrs01

Member
  • Posts

    2
  • Joined

  • Last visited

hrrs01's Achievements

  1. Jeez, thank you! Any special reason to why the constructer is not set by default?
  2. steamUser.on('tradeOffers', function(c){ manager.getOffers(TradeOfferManager.EOfferFilter.ActiveOnly, function(err, sent, received){ if(err){ console.log(err); return; } received.forEach(function(offer){ console.log(offer.isGlitched()); var money_give = 0; if(!offer.itemsToGive){ offer.decline(); return; } console.log(offer.itemsToGive); offer.itemsToGive.forEach(function(item){ console.log(item.market_hash_name); market.getItemPrice(730, item.market_hash_name, function(err, data){ if(err){ console.log(err); return; } money_give += data.lowest_price; console.log(money_give); },9); }); }); }); }); What is wrong with this snippet? The item object's market_hash_name is returning undefinded. Any reason for why that might be? - https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#market_hash_name
×
×
  • Create New...