Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bot Not trading items less than ignore rate #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gassman123
Copy link

@gassman123 gassman123 commented Dec 25, 2019

Currently if your bots inventory has a item that's price is less than the site's ignore rate, it will get its value set to zero just like it would for the user. This fix lets users trade for an item from the bot that is worth less than the ignore rate while still not allowing the user to trade the site items that have a price less than your ignore rate.
For example:
The bot has a item worth .49 cents, your ignore rate is set to ignore all skins less than .50 cents. When a user would try to trade for the skin that is worth less than the ignore rate they would get the error "Could not get a price for item(s). Trade has been cancelled". This is because the bot was using the same getprice function as the user and it would set the price to zero because it is less than the ignore rate.

Currently if your bots inventory has a item that's price is less than the site's ignore rate, it will get its value set to zero just like it would for the user. This fix lets users trade for an item from the bot that is worth less than the ignore rate while still not  allowing the user to trade the site items that have a price less than your ignore rate.
For example:
The bot has a item worth .49 cents, your ignore rate is set to ignore all skins less than .50 cents. When a user would try to trade for the skin that is worth less than the ignore rate they would get the error "Could not get a price for item(s). Trade has been cancelled". This is because the bot was using the same getprice function as the user would and it would set the price too zero because it is less than the ignore rate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant