Commit Graph

21 Commits

Author SHA1 Message Date
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