Commit Graph

34 Commits

Author SHA1 Message Date
Chaz Brown
7aa91dd81b * AHBot rewritten to cause less lag spikes when checking for bids and when 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-22 20:40:34 -04:00
Chaz Brown
8790bb68c6 Fix small omission in AuctionHouse.cpp caught by MrSmite, this may not make 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-12 01:04:08 -04:00
Kudlaty
b287288888 Fix compatibility problems with PostgreSQL. Patch by Azuritus
--HG--
branch : trunk
2009-09-10 22:40:40 +02:00
Chaz Brown
4ac7a2d072 AHBuyer now buys when it's supposed to.
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-19 15:20:10 -04:00
Chaz Brown
1a5da75838 AHBot - Fix maxstack DB option to correctly set stacks to a random choice between 1 and the maxstack setting of the item, instead of 1. - Thanks T`lexii for pointing this out
--HG--
branch : trunk
2009-08-18 00:06:11 -04:00
Chaz Brown
d0cd451f4f New Filters added to AHBot, moved into AI section for VS
--HG--
branch : trunk
2009-08-17 11:37:05 -04:00
Chaz Brown
c7aa2f64e3 Fix typo in AHBot
--HG--
branch : trunk
2009-08-14 20:10:17 -04:00
Chaz Brown
b88faec7b4 Fix Typo
--HG--
branch : trunk
2009-08-14 03:50:44 -04:00
Chaz Brown
51b6a028b1 Cleanup Debug Output for AHBot
--HG--
branch : trunk
2009-08-14 03:30:34 -04:00
Chaz Brown
df163bc63c Fix typo and add debug_Out_Filters (update your conf)
--HG--
branch : trunk
2009-08-13 03:33:09 -04:00
Chaz Brown
f6734066f9 AHBot - Clean up some debug messages, fix a couple of possible conditions 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-13 01:50:28 -04:00
Chaz Brown
afdd3837e8 Change/Add some debug output for Buyer and Seller in AHBot
--HG--
branch : trunk
2009-08-12 19:37:17 -04:00
Chaz Brown
a2c2bad94b Add config options for filters, add some, delete some, change others. Make sure you update your trinitycore.conf
--HG--
branch : trunk
2009-08-08 02:08:20 -04:00
Chaz Brown
b9eb4ddf2e AHBot rewrite, pulled from TC2-3.0.9 repo, in no particular order.
*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-06 03:00:45 -04:00
QAston
1d7375c545 *Use uint64 instead of uint32 in AHbot prizes calculation to prevent overflow - by MaXIMUS.
--HG--
branch : trunk
2009-08-04 15:15:02 +02:00
Chaz Brown
ab712b78ba Fix AHBot to calculate the deposit for auctions so it can be used to check 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-05 20:51:45 -04:00
panaut0lordv
f6447e8f34 *Including style fixing - part 1
--HG--
branch : trunk
2009-06-04 21:41:07 +02:00
megamage
00c55974d4 *Merge.
--HG--
branch : trunk
2009-05-06 16:33:06 -05:00
megamage
9bbde48afb *Fix a memory leak of aubot. But this should not cause crash.
--HG--
branch : trunk
2009-05-06 09:33:34 -05:00
megamage
6ff7d30004 *Use correct indent for aubot.
--HG--
branch : trunk
2009-05-06 09:32:24 -05:00
megamage
48dab8af91 *Merge.
--HG--
branch : trunk
2009-04-30 16:31:05 -05:00
Chaz Brown
83758cb2e0 Prevent multiple bid attempts on the same item if BidsPerInterval set to a high number - patch submitted by Naicisum
--HG--
branch : trunk
2009-04-30 14:15:54 -04:00
megamage
c5f7ab377d *Fix build.
--HG--
branch : trunk
2009-04-29 01:00:15 -05:00
Chaz Brown
101e1d51f5 Fix typo in AHBot Thanks for noticing it, Medwise.
--HG--
branch : trunk
2009-03-31 21:09:38 -04:00
Chaz Brown
3430bedb64 Re-Enable AHBot, in the future, the correct way is to have those with a problem check their config, not disabling it all together.
--HG--
branch : trunk
2009-03-31 19:36:02 -04:00
XTZGZoReX
104a67d59a * AuctionHouseBot buyer/seller forced to be disabled. This is the only solution until it is fixed. It appears AHBot was causing the many crashes TC2 users had.
--HG--
branch : trunk
2009-03-25 15:59:37 +01:00
XTZGZoReX
3197838902 * Fixes in AHBot:
** 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-21 12:29:12 +01:00
Paradox
7b47d509e3 New AHBot plus AuctionHouse changes
--HG--
branch : trunk
2009-03-06 17:47:11 -06:00
Paradox iamparadox@netscape.net
ef8d2ac080 AHBot/AH changes
--HG--
branch : trunk
2009-02-28 17:42:29 -05:00
megamage
31637d4aac *Merge.
--HG--
branch : trunk
2009-02-18 11:36:19 -06:00
KingPin
14234c86fa Newline added to bottom of all files.
--HG--
branch : trunk
2009-02-17 20:07:49 -06:00
megamage
a72c0d223d [7266] Use DBC data for auction cut/deposit percents and location (auiction house id in fact).
More auction related code refactoring,
Move auction related code from ObjectMgr to AuctionHouseMgr.
Author: VladimirMangos

--HG--
branch : trunk
2009-02-13 19:50:20 -06:00
megamage
d696381f32 [7250] Use bg type ids enum insted raw values and catch some bugs in result for fixing.
* Replace max bg type checks by DBC valid index check
    * Use in functions and fields BattlegroundTypeId type instead uint32
    * Fixed wrong use bg queue ids instead bg type ids in queue update/remove function calls.
      Many bg have same raw values for type id and queue id but some can be affected by this bug:
      BATTLEGROUND_EY, BATTLEGROUND_SA, and all areans (with small arena/team size exceptions)
    * Move Battlemaster to bg type ids map fron ObjectMgr to BatteleGroundMgr.
    * Remobe redundent for header itself includes for BG headers.
    * Use Auction location enum instead raw valus.
Author: VladimirMangos

--HG--
branch : trunk
2009-02-09 22:08:06 -06:00
KingPin
e1f765a972 AuctionHouseBot patch added. thanx to everyone who worked on it especially Paradox. Only apply 930_characters.sql if you dont already have AHBot installed. AHBot requires an account ID and a character ID to work with, set them in trinitycore.conf and also login atleast once to this character.
--HG--
branch : trunk
2009-01-20 16:44:05 -06:00