Jump to content


Photo
Question

Can't get market_hash_name in trade

node.js node-steam-tradeoffer-manager

Best Answer Dr. McKay , 26 May 2018 - 02:25 PM

You need to set a language in the constructor.

Go to the full post


  • Please log in to reply
3 replies to this topic

#1 romatello

romatello

    Newbie

  • Member
  • Pip
  • 4 posts
  • LocationGomel

Posted 26 May 2018 - 07:27 AM

I've making my bot and I need to check item market hash name within trade offer, but in offer.itemsToGive and offer.itemsToReceive contains only following information:

EconItem {
    appid: 730,
    contextid: '2',
    assetid: '13984115215',
    classid: '310777179',
    instanceid: '302028390',
    amount: 1,
    missing: false,
    est_usd: '1',
    id: '13984115215',
    fraudwarnings: [],
    descriptions: [],
    owner_descriptions: [],
    actions: [],
    owner_actions: [],
    market_actions: [],
    tags: [],
    tradable: false,
    marketable: false,
    commodity: false,
    market_tradable_restriction: 0,
    market_marketable_restriction: 0 
}

So my question is: How to get market_hash_name?



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,815 posts

Posted 26 May 2018 - 02:25 PM   Best Answer

You need to set a language in the constructor.



#3 Go Fast

Go Fast

    Member

  • Member
  • PipPip
  • 22 posts

Posted 12 June 2018 - 02:12 AM

You need to set a language in the constructor.

I noticed that when you have language: 'en' in the constructor and have a big inventory the bot will be Killed

 

Is there a way to retrieve the name of the item in a different way?


Edited by Go Fast, 12 June 2018 - 02:36 AM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,815 posts

Posted 12 June 2018 - 10:36 AM

You could always call the API yourself. But your bot is getting killed because you don't have enough memory.







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

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users