HighTech 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 comment Share on other sites More sharing options...
Dr. McKay Posted August 29, 2018 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 comment Share on other sites More sharing options...
HighTech Posted August 29, 2018 Author Report Share Posted August 29, 2018 (edited) . Edited October 28, 2018 by HighTech Quote Link to comment Share on other sites More sharing options...
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.