Skip to content

Fix various issues in code like AH restocking and proper item ratio due to not uising good enums values in AuctionHouseBot::Sell #139

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

Merged
merged 13 commits into from
Feb 18, 2025

Conversation

Jaytapp
Copy link

@Jaytapp Jaytapp commented Feb 16, 2025

Changes Proposed:

  • Fix AH items going to zero and not restocking until server restart because Bot internal item count was getting out of sync over time. ( since proper server AH parsing is done only at the start )
  • Fix wrong categories of items being sold because of errors with using magic numbers instead of defines.
  • Fix early exit of Bot Selling items if number of items is above min and not above max when using maxitems != minitems
  • Fix AH Bot SQL query when buying items not using correct faction's AH.
  • Correctly keep track of auctions in AHBot_AuctionHouseScript when auction expires, sold and are added.
  • Bot was not using the proper defines ( like AHB_GREY_I ) AuctionHouseBot::Sell and using hardcoded values that were not the correct one.
  • Bot now buys with configured price ratio since item categories are now fixed with using proper defines.
  • Added more logging to track issues

Issues Addressed:

Restocking items overtime correctly works with proper ratio.

SOURCE:

Tests Performed:

  • Ran server for multiple days. Items ratio and restocking is working correctly.

How to Test the Changes:

Jaytapp and others added 11 commits January 15, 2025 19:33
…\mod-ah-bot

azerothcore#129

remove break in AuctionHouseBot::getNofAuctions to avoid always returning 1 auction when using ConsiderOnlyBotAuctions true
Fix Bug: wrong variable read from the config azerothcore#123 from azerothcore / mod-ah-bot

azerothcore#123

Fix copy paste typo when reading config for ElapsingTimeClass
Merge some fix from multiple contriburors.

Thanks to code from PixelWeaver, Icemansparks

Added some sanity checks in AHBConfig::DecItemCounts

made sure to remove auctions when item is not found

Co-Authored-By: Dennis <[email protected]>
Co-Authored-By: Antoine Cajot <[email protected]>
fix mistake withj unsigned int while hunting for the missing item auctions
revert back sql file to default values, git usage mistake
fix log error in AuctionHouseBot::Buy
Fixed a bunch of magic number and define values mismatch.

AuctionHouseBotyConfig was getting out of sync with the actual Server database until a server restart ( where on initialization it would query the server AH for real)
Changed SQL query of buyer to only get auctions from relevant house.

better logging on auction events in script manager
No need to stop selling item if above minimum and under maximum.
@Helias
Copy link
Member

Helias commented Feb 16, 2025

Thanks for your PR, please, solve the merge conflicts

@Jaytapp
Copy link
Author

Jaytapp commented Feb 16, 2025

Conflicts resolved.

@Helias Helias merged commit d2d8353 into azerothcore:master Feb 18, 2025
1 check passed
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.

Bug: auto-restock fills AH with white items over time for medium elapsingtimeclass setting
2 participants