Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/game/AuctionHouseBot.cpp b/src/game/AuctionHouseBot.cpp
index 999e789..a917bdb 100644
--- a/src/game/AuctionHouseBot.cpp
+++ b/src/game/AuctionHouseBot.cpp
@@ -752,7 +752,7 @@ void AuctionHouseBot::Update()
ObjectAccessor::Instance().AddObject(&_AHBplayer);
// Add New Bids
- if (!sWorld.getConfig(CONFIG_ALLOW_TWO_SIDE_INTERACTION_AUCTION))
+ if (!sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_AUCTION))
#! /bin/bash
#GNU/Linux import Skript für SQL Dateien des GMDB Projekts
#username="loginname"
#userpass="loginpassword"
username=""
userpass=""
#database_udb="mangos"
diff --git a/src/game/AuctionHouseHandler.cpp b/src/game/AuctionHouseHandler.cpp
index 9f29a99..9700af3 100644
--- a/src/game/AuctionHouseHandler.cpp
+++ b/src/game/AuctionHouseHandler.cpp
@@ -27,6 +27,7 @@
#include "UpdateMask.h"
#include "AuctionHouseMgr.h"
#include "Util.h"
+#include "AuctionHouseBot.h"
diff --git a/scripts/world/guards.cpp b/scripts/world/guards.cpp
index 98b03e6..faf472e 100644
--- a/scripts/world/guards.cpp
+++ b/scripts/world/guards.cpp
@@ -57,27 +57,27 @@ EndContentData */
#define GOSSIP_SENDER_SEC_AUCTIONHOUSE 102
//script spesific gossip text
-#define GOSSIP_TEXT_TAVERN "Worlds End Tavern"
-#define GOSSIP_TEXT_BANKSCYERS "Scyers bank"
diff --git a/src/game/AuctionHouseBot.cpp b/src/game/AuctionHouseBot.cpp
new file mode 100644
index 0000000..a917bdb
--- /dev/null
+++ b/src/game/AuctionHouseBot.cpp
@@ -0,0 +1,1487 @@
+#include "AuctionHouseBot.h"
+#include "ObjectMgr.h"
+#include "AuctionHouseMgr.h"
+
diff --git a/src/game/AuctionHouseHandler.cpp b/src/game/AuctionHouseHandler.cpp
index c0bc371..debed72 100644
--- a/src/game/AuctionHouseHandler.cpp
+++ b/src/game/AuctionHouseHandler.cpp
@@ -27,6 +27,7 @@
#include "UpdateMask.h"
#include "AuctionHouseMgr.h"
#include "Util.h"
+#include "AuctionHouseBot.h"
diff --git a/README.AHBOT b/README.AHBOT
new file mode 100644
index 0000000..dc42018
--- /dev/null
+++ b/README.AHBOT
@@ -0,0 +1,179 @@
+This patch modifies the core so it populates the auction houses with items. It
+makes the game feel a bit more like official. Items and prices are chosen
+randomly based on the parameters you define. If an auction expires, auctions
+are deleted quietly. AHBot will not buy it's own items, and will not receive
diff --git a/README.AHBOT b/README.AHBOT
new file mode 100644
index 0000000..dc42018
--- /dev/null
+++ b/README.AHBOT
@@ -0,0 +1,179 @@
+This patch modifies the core so it populates the auction houses with items. It
+makes the game feel a bit more like official. Items and prices are chosen
+randomly based on the parameters you define. If an auction expires, auctions
+are deleted quietly. AHBot will not buy it's own items, and will not receive
/*
* Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/include/sc_creature.cpp b/include/sc_creature.cpp
index 72f09dd..2f68396 100644
--- a/include/sc_creature.cpp
+++ b/include/sc_creature.cpp
@@ -449,7 +449,7 @@ void ScriptedAI::DoTeleportPlayer(Unit* pUnit, float fX, float fY, float fZ, flo
Unit* ScriptedAI::DoSelectLowestHpFriendly(float fRange, uint32 uiMinHPDiff)
{
- CellPair p(MaNGOS::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY()));
+ CellPair p(TerrainMgr::ComputeCellPair(m_creature->GetPositionX(), m_creature->GetPositionY()));