Skip to content
Closed
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
5832a36
Fix crash if auctionsGuidsToConsider.size() < config->GetBidsPerInter…
lotjib Feb 28, 2025
8b824e2
fix crash if auctionsGuidsToConsider.size() > config->GetBidsPerInter…
lotjib Feb 28, 2025
4ab26ec
FIx
lotjib Feb 28, 2025
4f65a66
Fix
lotjib Feb 28, 2025
038bcae
fix
lotjib Feb 28, 2025
1bcd754
fix crash
lotjib Feb 28, 2025
1cb4f55
fix
lotjib Feb 28, 2025
4ffa372
Fix Crash Error
lotjib Feb 28, 2025
27fb2f5
Fix
lotjib Feb 28, 2025
45e40e4
Fix Crash
lotjib Feb 28, 2025
aace71a
Fix Crash Error
lotjib Feb 28, 2025
eefe099
fix
lotjib Feb 28, 2025
0470865
Fix Crash if BuyBidsPerInterval > 1 and "FROM `acore_characters`.`auc…
lotjib Mar 1, 2025
fc520c6
Fix
lotjib Mar 1, 2025
dc03a69
Fix
lotjib Mar 1, 2025
251ea3b
Fix
lotjib Mar 1, 2025
d47ad7b
Fix
lotjib Mar 1, 2025
73d794c
Revert
lotjib Mar 1, 2025
c953b4d
Fix
lotjib Mar 1, 2025
cce768f
Fix
lotjib Mar 1, 2025
a5bc197
hello test
lotjib Mar 1, 2025
01604c1
FF
lotjib Mar 1, 2025
bb513da
FF
lotjib Mar 1, 2025
ccee062
ff
lotjib Mar 1, 2025
4b35328
Fix
lotjib Mar 1, 2025
55d2e5d
ff
lotjib Mar 1, 2025
5e01853
ff
lotjib Mar 1, 2025
bd33a4e
F
lotjib Mar 1, 2025
e37bdc1
fix
lotjib Mar 1, 2025
af31815
ff
lotjib Mar 1, 2025
305a0ae
ff
lotjib Mar 1, 2025
f92246e
Fix Crash
lotjib Mar 1, 2025
ca61e27
fix
lotjib Mar 1, 2025
d3d6ce3
f
lotjib Mar 1, 2025
588cc04
ff
lotjib Mar 1, 2025
cafa712
ff
lotjib Mar 1, 2025
1a978c1
ff
lotjib Mar 1, 2025
edeb703
ff
lotjib Mar 1, 2025
53b5132
ff
lotjib Mar 1, 2025
99fdca2
fix
lotjib Mar 1, 2025
cd191da
Merge branch 'master' into master
lotjib Apr 5, 2025
f0f19d9
Merge branch 'azerothcore:master' into master
lotjib Apr 5, 2025
23931d9
Merge branch 'azerothcore:master' into master
lotjib Jul 28, 2025
2f4d700
Update AuctionHouseBot.cpp
lotjib Jul 28, 2025
bf8b6b3
Update AuctionHouseBot.cpp
lotjib Aug 9, 2025
3973923
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
e46da23
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
064f9d0
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
a0252e0
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
e50dfe2
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
aad5a5f
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
5c26105
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
dfee1c3
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
b7418b5
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
cd3d2f9
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
7d8537b
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
1647ce5
Update AuctionHouseBot.cpp
lotjib Aug 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/AuctionHouseBot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void AuctionHouseBot::Buy(Player* AHBplayer, AHBConfig* config, WorldSession* se
// Determine maximum bid and skip auctions with too high a currentPrice.
//

uint32 basePrice = static_cast<uint32>(config->UseBuyPriceForBuyer ? prototype->BuyPrice : prototype->SellPrice);
uint32 basePrice = static_cast<uint32>((config->UseBuyPriceForBuyer && prototype->BuyPrice > 0) ? prototype->BuyPrice : prototype->SellPrice);
uint32 maximumBid = static_cast<uint32>(basePrice * pItem->GetCount() * config->GetBuyerPrice(prototype->Quality));

if (config->TraceBuyer)
Expand Down Expand Up @@ -1028,9 +1028,8 @@ void AuctionHouseBot::Update()

std::string accountName = "AuctionHouseBot" + std::to_string(_account);

WorldSession _session(_account, std::move(accountName), 0, nullptr, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), 0, LOCALE_enUS, 0, false, false, 0);

Player _AHBplayer(&_session);
WorldSession _ahbot_session(_account, std::move(accountName), 0x0, nullptr, SEC_PLAYER, sWorld->getIntConfig(CONFIG_EXPANSION), time_t(0), LOCALE_enUS, 0, false, false, 0);
Player _AHBplayer(&_ahbot_session);
_AHBplayer.Initialize(_id);

ObjectAccessor::AddObject(&_AHBplayer);
Expand Down Expand Up @@ -1063,7 +1062,7 @@ void AuctionHouseBot::Update()
LOG_INFO("module", "AHBot [{}]: Begin Buy for Alliance...", _id);
}

Buy(&_AHBplayer, _allianceConfig, &_session);
Buy(&_AHBplayer, _allianceConfig, &_ahbot_session);
_lastrun_a_sec = _newrun;
}
}
Expand All @@ -1086,7 +1085,7 @@ void AuctionHouseBot::Update()
{
LOG_INFO("module", "AHBot [{}]: Begin Buy for Horde...", _id);
}
Buy(&_AHBplayer, _hordeConfig, &_session);
Buy(&_AHBplayer, _hordeConfig, &_ahbot_session);
_lastrun_h_sec = _newrun;
}
}
Expand All @@ -1111,7 +1110,7 @@ void AuctionHouseBot::Update()
{
LOG_INFO("module", "AHBot [{}]: Begin Buy for Neutral...", _id);
}
Buy(&_AHBplayer, _neutralConfig, &_session);
Buy(&_AHBplayer, _neutralConfig, &_ahbot_session);
_lastrun_n_sec = _newrun;
}
}
Expand Down