Jump to content


Photo
Question

Amount of gems added to the trade offer

node.js node-steam-tradeoffer-manager

Best Answer Dr. McKay , 29 August 2018 - 02:13 PM

You're setting the amount property on an array of CEconItem objects. It needs to be set on the objects themselves.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 HighTech

HighTech

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 29 August 2018 - 01:40 PM

Hello,

I used some open source bots, and configured it as I like it. Currently I want to add !buygems [n] option. I looked at many discussions, mostly on this site. My problem is I filter the gems, and type theirGems.amount = n * CONFIG.BUYINGGEMS(never mind what I put here). I tried to console.log theirGems and theirGems.amount and it says the same number as it should be n * CONFING.BUYINGGEMS but in the trade offer it adds whole sack of gems.

 

https://pastebin.com/p70bwckf

http://prntscr.com/kod0gg



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,817 posts

Posted 29 August 2018 - 02:13 PM   Best Answer

You're setting the amount property on an array of CEconItem objects. It needs to be set on the objects themselves.


  • HighTech likes this

#3 HighTech

HighTech

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 29 August 2018 - 02:20 PM

.


Edited by HighTech, 28 October 2018 - 06:55 AM.






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

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users