aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AuctionHouseBot/AuctionHouseBot.cpp
AgeCommit message (Collapse)Author
2025-06-10Core/Misc: Kill copy/move constructors for singleton classesShauren
2023-01-08Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard ↵Shauren
compatible api)
2022-02-13Core/Misc: Minor game include cleanupShauren
2022-02-04Core/Misc: Update Worldserver.conf for AhBot Pricing -make things more clear ↵Jinnaix
(#25341) * AhBot Pricing: Make things more clear * Change default value to BuyPrice and add some more information to how two sided AH works * Sync c++ configs with .conf ones Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> (cherry picked from commit 812c2af4dae555b742ed318f0a93458115618356)
2022-02-04Core/AHBot: Warn about different AHBot behavior when ↵jackpoz
AllowTwoSide.Interaction.Auction is enabled Closes #18243 (cherry picked from commit 92f9abab0607609ff7e6b7434bab66cc809084ca)
2022-02-02Scripts/Commands: Convert argument parsing of ahbot commands (PR #25264)Peter Keresztes Schmidt
(cherry picked from commit 426513ec8e154df7c13ba98371513dd9f6d2cb9d)
2022-01-23Core/Time: Rename GetGameTime{System, Steady}Point methodsTreeston
The names are a bit unhandy. Rename them (shorter but still meaningful). GetGameTimeSystemPoint() -> GetSystemTime() GetGameTimeSteadyPoint() -> Now() Also add 2 new typedefs: typedef std::chrono::steady_clock::time_point TimePoint; typedef std::chrono::system_clock::time_point SystemTimePoint; Closes #25042 (cherry picked from commit 896b68d5c297b06587645caebc98b704978ecaa7)
2020-04-27Core/AHBot: fix a typoariel-
(cherry picked from commit e594c2d096c101a5b722793612febb6276b3b48e)
2020-04-27Core/AHBot: Refactor of AuctionHouseBotSeller:ariel-
- Use AuctionHouseBot.Class.* for what they really are, priorities, factor them when calculating item amount per class, changed enums to CONFIG_AHBOT_CLASS_*_PRIORITY to reflect this change - Don't factor in the priority calc empty item lists: * Let's say you had AuctionHouseBot.Class.Glyph set to 10, sum of AuctionHouseBot.Class.* is 20, and AuctionHouseBot.Items.Amount.White is 5000 * If there were no glyphs on the item list, you automatically lost 50% of the total item amount, meaning only 2500 of original 5000 were alloted to fill - Fixed AuctionHouseBot.AH.Price.Ratio to be an actual percentage factor - Separated containers in SellerConfiguration, each one better reflects what kind of data is stored there, now we won't use magic index 0 from _ItemInfo :P - General cleanup, removal of bad voodoo and magical numbers - Use unordered_sets for loading item lists, as they were only used to check for item presence (cherry picked from commit 7f8bfe68d0f660643c8bd4c63d2129d220c2184c)
2020-04-20Core/AuctionHouse: After taking a break at the start of patch 8.3 auction ↵Shauren
house is now back in business.
2020-01-02New YearAokromes
2019-08-17Ensure that all actions are compared to fixed point in time (ie. world ↵xinef1
update start) (#18910) - Actions will not be dependent on processing moment - Increased GameObjects cooldown resolution to milliseconds, fixes arming time of traps to be exactly one second and not something from range (1000, 1999) - Created GameTime namespace and UpdateTime class and moved there some code out of world (cherrypicked from 7567cafec84080d26ea513242a1f540a823b8f9d)
2019-07-27Core/DBLayer: Prevent using prepared statements on wrong databaseShauren
2019-01-01Update copyright note for 2019vincent-michael
auto happy = new year(2019);
2018-03-18Fixed array size bug with the auction house bid price. Lowered the default ↵Ayrton Stout
max bid price (#18697) Closes #18698 (cherry picked from commit 4df1b28054e6712954dceb8c71b18b4b2ef2e972)
2018-03-18Core/AH: AuctionHouseBot BidPrice determined by config optionsAyrton Stout
(cherry picked from commit bed369e7c8d0ef848f710bac9b8ceacc3cbe38a2)
2018-01-01Update copyright note for 2018vincent-michael
auto happy = new year(2018);
2017-10-03Core/AuctionHouseBot: ahbot characters subsystem shake-upariel-
Bonus: fix moar static analysis issues (cherry picked from commit f4a10571f74450daf26a5b0c5bd0f3114c231120)
2017-10-03[3.3.5] AHBot Characters (#17885)iridinite
(cherry picked from commit 6dc0a9f04ad62e3bb7165a210b894d177ceffc05)
2017-01-01Update copyright note for 2017vincent-michael
Happy new year
2016-03-21Merge pull request #16101 from NathanHandley/3.3.5Duarte Duarte
Updated AuctionHouseSeller to have item class stack control (cherry picked from commit bddf9ec6febc9a77308d074bd10db2ddec4b48d5)
2016-03-11Core/Game: Move singleton instances into compilation unitsNaios
* Fixes issues when building shared libraries (prevents gcc and clang from providing several instance)
2016-01-01Update copyright note for 2016Vincent-Michael
Happy new year (Again new year with idiots ...)
2015-09-24Core/AHBot: Adjust AHBot bid and buyout chancesjackpoz
Apply an exponential formula to define the chance to bid/buyout an auction depending on auction price and item price ratio. The formula can be adjusted changing the new AuctionHouseBot.Buyer.ChanceFactor config parameter Chance = 100 ^ (1 + (1 - (auction_price / item_price) / k) k is the config parameter AuctionHouseBot.Buyer.ChanceFactor, the higher the number the higher chance to buy overpriced auctions. (cherry picked from commit 177b6319d1ad49a38fbd06f37671da1e3d1ae4e6) Conflicts: src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
2015-02-22Core/AHBot: Fix AHBot bidding and correct logged AH typejackpoz
Correct AuctionHouseType definition to log the right AH type. Handle auctions without bidder but with a bid as bought by the AH Bot Closes #14124 (cherry picked from commit 2eee1b349f599f92f78c58418d128f386ef3b86d) Conflicts: src/server/game/AuctionHouse/AuctionHouseMgr.cpp
2015-02-11Merge PR #14059 from 'Rochet2/ahbot_buyer' into 3.3.5jackpoz
(cherry picked from commit b69fd4ac682347b8b735ac7116ada25d79698933) Conflicts: src/server/game/AuctionHouseBot/AuctionHouseBotBuyer.cpp
2015-01-01Update copyright note for 2015Vincent-Michael
Happy new year
2014-12-21Core/Items: Refactored ItemTemplateShauren
2014-08-28Core/Misc: Remove unneeded NULL checksjackpoz
2014-08-25Core/AHBot: Implemented AHBot based on MaNGOS codeBlipi
Warning: CMake must be rerun Apply if you have crashes Rewrite Seller prices, add random properties and implement some suggestions on price calculations Core/AHBot: Update to latest suggestions Fix SQLs after merge, split the AH bot to spearate headers and cpps, fix the config default values Remove case 8 from GetBuyModifier. It was not correct Fix Gray Grey GRAY typos Change message config name Fix non pch build Fix switch ident, also earlier removed whitespace. Add missing include for non pch build Fix possible crash: if (forplayer || GetOwnerGUID()) changed to if (forplayer) Apply Nayd.diff - Code style fixes Fix leftovers from nayd Correct SQL transaction and change one SQL query to C++ instead Make loot items distinct