aboutsummaryrefslogtreecommitdiff
path: root/src/game/AuctionHouseBot.cpp
AgeCommit message (Collapse)Author
2010-04-30Replace some PQuery/PExecute by more simple Query/ExecuteSpp
Original patch by hunuza, extended to whole code Closses issue 1446 --HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--HG-- branch : trunk
2010-04-15Fix AHBot crashes. Patch based on code from Xeross' repoSpp
Closes issue 1649 --HG-- branch : trunk
2010-03-30* Remove remaining obsolete client version checks from AHbotBrian
--HG-- branch : trunk
2010-03-30* Allow AHbot to pull items from reference_loot_template for auction.Brian
* Credits to click * Remove no longer needed check for non-supported client versions for loot * Generation --HG-- branch : trunk
2010-03-26* Check for incorrect settings for AHbotBrian
* Patch by click --HG-- branch : trunk
2010-02-15* Removed credits from AuctionHouseBot loading.Brian
* Credits belong in commit logs, or THANKS files or we would have: * Loading Pool System: by Neo2003 * Loading Transport Event sytem: by TrullyOne --HG-- branch : trunk
2010-01-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers. Use this auto_ptr for every DB queries(except QueryNamedResult yet). This patch guarantees NO memory leaks from QueryResult pointers. Thanks to raczman for the idea and for the helping to make this patch. --HG-- branch : trunk
2009-12-24Temporary revert 6743 commit. I fix this patch across 1-2 days.n0n4m3
--HG-- branch : trunk
2009-12-23Replaced time(NULL) on sGameTime.GetGameTime() this is used for better ↵n0n4m3
performance. Original Timer.h divided into 2 parts. Shared project has no need to know about GameTime Singleton. 2 Identical structures with different types are now replaced with one generic templated structure and 2 typedefs. --HG-- branch : trunk
2009-12-14Fix AHexpire command not changing time in the DB when expiring auctions - ↵Paradox
original patch supplied by PainKiller --HG-- branch : trunk
2009-11-19*Some Auction House cleanup, Refs #331maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-10-12*Select only expired auctions when updating, by Paradoxmaximius
*Remove some useless code from AHBot, by Paradox --HG-- branch : trunk
2009-09-24* Hopefully, MTMaps will only be enabled in release, and not in debug modes ↵Chaz Brown
(This was causing debug builds to not run under windows) * Fixed a bug in AHBot where auctions being removed were sometimes seen as the wrong faction, leading to problems with replacing them with new auctions. * Added loopbreaker back in, just in case... --HG-- branch : trunk
2009-09-23A few more tweaks for LinuxChaz Brown
--HG-- branch : trunk
2009-09-23Fix some Linux build problemsChaz Brown
--HG-- branch : trunk
2009-09-22* AHBot rewritten to cause less lag spikes when checking for bids and when ↵Chaz Brown
adding new auctions. * AH Deposit function rewritten to generate deposits closer to official. * AH Mail system rewritten to fix some bugs. * MULTI_THREAD_MAP enabled by default (I have no idea why this was commented out before) * CLIENT_VER added for allowing parts of the code to be enabled/disabled depending on the client version supported. Only used in AHBot for now. * Various code cleanups. --HG-- branch : trunk
2009-09-12Fix small omission in AuctionHouse.cpp caught by MrSmite, this may not make ↵Chaz Brown
any difference at all, or it might make all the difference in the world for the distribution of items in the AH.... --HG-- branch : trunk
2009-09-10Fix compatibility problems with PostgreSQL. Patch by AzuritusKudlaty
--HG-- branch : trunk
2009-08-19AHBuyer now buys when it's supposed to.Chaz Brown
Fixed some mails using hardcoded HOUR instead of MailTimeDelay from config. AHBuyer once again sends out pending sale mails, and they use the correct time. (Thanks for helping, Aokromes) Still needs some work to make the time update every second, instead of every minute. Also, thesale pending mail doesn't get deleted when the timer runs out, but, on the next mail cleanup. --HG-- branch : trunk
2009-08-18AHBot - Fix maxstack DB option to correctly set stacks to a random choice ↵Chaz Brown
between 1 and the maxstack setting of the item, instead of 1. - Thanks T`lexii for pointing this out --HG-- branch : trunk
2009-08-17New Filters added to AHBot, moved into AI section for VSChaz Brown
--HG-- branch : trunk
2009-08-14Fix typo in AHBotChaz Brown
--HG-- branch : trunk
2009-08-14Fix TypoChaz Brown
--HG-- branch : trunk
2009-08-14Cleanup Debug Output for AHBotChaz Brown
--HG-- branch : trunk
2009-08-13Fix typo and add debug_Out_Filters (update your conf)Chaz Brown
--HG-- branch : trunk
2009-08-13AHBot - Clean up some debug messages, fix a couple of possible conditions ↵Chaz Brown
where performance could be affected, shorten some code to cut down on future typos - Even though your idea wasn't valid, it lead to some of this optimization, so, thanks MrSmite --HG-- branch : trunk
2009-08-12Change/Add some debug output for Buyer and Seller in AHBotChaz Brown
--HG-- branch : trunk
2009-08-08Add config options for filters, add some, delete some, change others. Make ↵Chaz Brown
sure you update your trinitycore.conf --HG-- branch : trunk
2009-08-06AHBot rewrite, pulled from TC2-3.0.9 repo, in no particular order.Chaz Brown
*Any file named README.Something (including the original README) will be copied to the build directory when compiled with VS *Converted AuctionHouseBot to class structure, implemented Singleton for class *Moved global variables inside of AuctionHouseBot class, *Minor code cleanups, reformated headers, fixed switch logic errors *Parts of this code are from Naicisum's Mangos version. *Prevent endless looping condition where Item Quality has no percentage *Fix situation where items in the AH would be less than the maxitems setting *Move AHBot item filters to initialization so the items that are not allowed only get evaluated once. *Change the way Bid prices are calculated, along with Maximius' uint64 fix, prices should look a lot better now. *Includes a fix for grey items from MrSmite --HG-- branch : trunk
2009-08-04*Use uint64 instead of uint32 in AHbot prizes calculation to prevent ↵QAston
overflow - by MaXIMUS. --HG-- branch : trunk
2009-06-05Fix AHBot to calculate the deposit for auctions so it can be used to check ↵Chaz Brown
the code for figuring deposit amount on a wide range of items. Fix ahbotoptions command so it works from the server console again. change commented out lines in GetAuctionDeposit so they display in debug loglevel. Min/Max Time settings replaced with a function that selects 12 24 and 48 randomly as the auction times. --HG-- branch : trunk
2009-06-04*Including style fixing - part 1panaut0lordv
--HG-- branch : trunk
2009-05-06*Merge.megamage
--HG-- branch : trunk
2009-05-06*Fix a memory leak of aubot. But this should not cause crash.megamage
--HG-- branch : trunk
2009-05-06*Use correct indent for aubot.megamage
--HG-- branch : trunk
2009-04-30*Merge.megamage
--HG-- branch : trunk
2009-04-30Prevent multiple bid attempts on the same item if BidsPerInterval set to a ↵Chaz Brown
high number - patch submitted by Naicisum --HG-- branch : trunk
2009-04-29*Fix build.megamage
--HG-- branch : trunk
2009-03-31Fix typo in AHBot Thanks for noticing it, Medwise.Chaz Brown
--HG-- branch : trunk
2009-03-31Re-Enable AHBot, in the future, the correct way is to have those with a ↵Chaz Brown
problem check their config, not disabling it all together. --HG-- branch : trunk
2009-03-25* AuctionHouseBot buyer/seller forced to be disabled. This is the only ↵XTZGZoReX
solution until it is fixed. It appears AHBot was causing the many crashes TC2 users had. --HG-- branch : trunk
2009-03-21* Fixes in AHBot:XTZGZoReX
** Use GetBoolDefault for booleans instead of GetIntDefault. ** Use %u (not %d) for size logging. std::size does not return a decimal, but an unsigned integral type. --HG-- branch : trunk
2009-03-06New AHBot plus AuctionHouse changesParadox
--HG-- branch : trunk
2009-02-28AHBot/AH changesParadox iamparadox@netscape.net
--HG-- branch : trunk
2009-02-18*Merge.megamage
--HG-- branch : trunk
2009-02-17Newline added to bottom of all files.KingPin
--HG-- branch : trunk