HighTech 0 Posted August 29, 2018 Report Share Posted August 29, 2018 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/p70bwckfhttp://prntscr.com/kod0gg Quote Link to post Share on other sites
Solution Dr. McKay 360 Posted August 29, 2018 Solution Report Share Posted August 29, 2018 You're setting the amount property on an array of CEconItem objects. It needs to be set on the objects themselves. HighTech 1 Quote Link to post Share on other sites
HighTech 0 Posted August 29, 2018 Author Report Share Posted August 29, 2018 (edited) . Edited October 28, 2018 by HighTech Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.