Jump to content

[TUT - MaNGOS] Using Auction House Bot (AHbot)


Recommended Posts

Posted

Chris K did a marvelous job at writing a job for it, so I won't bother making my own. 100% credits to him <3

 

 

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. If the auction sells, you *can* get the in-game mail for that item.

 

Step 1.) Create a character that you are going to use as the auction house bot character. This character will be the auctions' owner for all the items created by the bot.

 

Step 2.) Go into the realm database and note the account number for the character.

 

Step 3.) Go into the mangos database and note the character's GUID.

 

Step 4.) Log in at least once with this character.

 

Step 5.) Apply the patch and rebuild MaNGOS. For unix, you will need to re-run "automake"

 

Step 6.) Tune the newly added configuration options in the configuration file. They are discussed below...

 

Code:

# Auction House Bot
AuctionHouseBot.Account = 0
AuctionHouseBot.GUID = 0
AuctionHouseBot.NoMail = 0
AuctionHouseBot.AllianceItems = 0
AuctionHouseBot.HordeItems = 0
AuctionHouseBot.NeutralItems = 0
AuctionHouseBot.MinTime = 8
AuctionHouseBot.MaxTime = 24
AuctionHouseBot.PercentWhiteTradeGoods = 30
AuctionHouseBot.PercentGreenTradeGoods = 13
AuctionHouseBot.PercentBlueTradeGoods = 9
AuctionHouseBot.PercentPurpleTradeGoods = 1
AuctionHouseBot.PercentWhiteItems = 6
AuctionHouseBot.PercentGreenItems = 30
AuctionHouseBot.PercentBlueItems = 9
AuctionHouseBot.PercentPurpleItems = 2
AuctionHouseBot.MinPriceWhite = 150
AuctionHouseBot.MaxPriceWhite = 250
AuctionHouseBot.BidPriceWhite = 100
AuctionHouseBot.MaxStackWhite = 0
AuctionHouseBot.MinPriceGreen = 200
AuctionHouseBot.MaxPriceGreen = 300
AuctionHouseBot.BidPriceGreen = 100
AuctionHouseBot.MaxStackGreen = 3
AuctionHouseBot.MinPriceBlue = 250
AuctionHouseBot.MaxPriceBlue = 350
AuctionHouseBot.BidPriceBlue = 100
AuctionHouseBot.MaxStackBlue = 2
AuctionHouseBot.MinPricePurple = 300
AuctionHouseBot.MaxPricePurple = 450
AuctionHouseBot.BidPricePurple = 100
AuctionHouseBot.MaxStackPurple = 1

 

AuctionHouseBot.Account is the account number (in realmd->account table) of the player you want to run as the auction bot. Note: a value of 0 will disable the bot.

 

AuctionHouseBot.GUID is the GUID (in mangos->character table) of the player you want to run as the auction bot. Note: a value of 0 will disable the bot.

 

AuctionHouseBot.NoMail is a flag to disable mail for successfull auctions. A value of 0 will allow mail for successful auctions to be sent, which is the default. Non-zero (e.g. AuctionHouseBot.NoMail = 1) will stop successful auction mail.

 

AuctionHouseBot.AllianceItems is the number of items you want to keep in the Alliance auction house.

 

AuctionHouseBot.HordeItems is the number of items you want to keep in the Horde auction house.

 

AuctionHouseBot.NeutralItems is the number of items you want to keep in the Neutral auction house.

 

AuctionHouseBot.MinTime is the minimum number of hours for an auction.

 

AuctionHouseBot.MaxTime is the maximum number of hours for an auction.

 

AuctionHouseBot.PercentWhiteTradeGoods is the percentage of the auction items that should be trade goods of white quality. A value of 0 will disable.

 

AuctionHouseBot.PercentGreenTradeGoods - see above

AuctionHouseBot.PercentBlueTradeGoods - see above

AuctionHouseBot.PercentPurpleTradeGoods - see above

AuctionHouseBot.PercentWhiteItems - see above

AuctionHouseBot.PercentGreenItems - see above

AuctionHouseBot.PercentBlueItems - see above

AuctionHouseBot.PercentPurpleItems - see above

 

AuctionHouseBot.MinPriceWhite is the minimum price adjustment for white items. For example the default is 150, which means 150%. So if an item vendors for 1g it would go to auction for a minimum of 1.5g.

 

AuctionHouseBot.MaxPriceWhite is the maximum price adjustment for white items.

 

AuctionHouseBot.BidPriceWhite is the starting bid as a percent of the buyout price. For example, if this value is 50 and the buyout price is randomly chosen to be 1g, then the bid price will be 50s.

 

AuctionHouseBot.MaxStackWhite is maximum stack size to create for this quality type. A value of zero will disable the maximum stack size for this quality allowing the bot to create stacks (of random size) of items as big as the item type allows.

 

AuctionHouseBot.MinPriceGreen - see above

AuctionHouseBot.MaxPriceGreen - see above

AuctionHouseBot.BidPriceGreen - see above

AuctionHouseBot.MaxStackGreen - see above

AuctionHouseBot.MinPriceBlue - see above

AuctionHouseBot.MaxPriceBlue - see above

AuctionHouseBot.BidPriceBlue - see above

AuctionHouseBot.MaxStackBlue - see above

AuctionHouseBot.MinPricePurple - see above

AuctionHouseBot.MaxPricePurple - see above

AuctionHouseBot.BidPricePurple - see above

AuctionHouseBot.MaxStackPurple - see above

 

If you chose to include the ahcommands.patch, it will add the following commands for GM level 3 players:

ahexpire <house id> <player GUID>

ahdelete <house id> <player GUID>

 

ahexpire will expire all the auctions in the requested auction house with the player GUID as the owner.

ahdelete will delete all the auctions in the requested auction house with the player GUID as the owner.

 

The real difference between them is that 'ahexpire' will actually deliver the auction if some has bid on it, and ahdelete will just delete the auction regardless if someone has bid on it or not.

 

The auction house IDs are:

2 - Alliance

6 - Horde

7 - Neutral

 

Example, if my auction house bot character's GUID is 42, and I want to clear out all their auctions from the neutral auction house, I would run the following:

 

ahdelete 7 42

 

Please post any questions or bugs you have.

 

Thanks!

 

Last tried with MaNGOS v4671

 

Download

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • L2Lusty 50x Essence High Version Open day 27/06  12:00 GMT London WebSite: https://l2lusty.com/ General Information If you are looking for a High Five retail server, this project is not for you, our gameplay and farming system is based on the Essence version. If you are looking for something new and different to play, this server is for you. Our server is using its own version that mixes High Five and the latest Essence version. With this, we have a good part of the items from the Lineage2 Essence version, with classes and bosses from High Five. An auto-balance system in onlympiad games, which will bring greater equality in combats. We added the Chaos Zone and Peace Zone events, for a better LCoin farm, these events are 24h and can be accessed with the commands .chaos or .peace. All essence items are purchased in our alt+b and cost an average of 300k LCoins. LCoins are obtained by killing any mob, with better drops in the Chaos zone and the Peace Zone. Server Version High Five + Essence Game Play Experience 50x Spoil 8x Drop 8x Adena 8x Normal Enchant 50% (+3 to +12) (40% 12 to 20) Blessed Enchant 50% (+3 to +12) (40% 12 to 20) Safe Enchant +3 Max Enchant +20 Max Windows / IP 6 Accounts Anti-Bot system ON Champions System ON TerritoryWar Saturday 20:00 Siege Every Sunday Olympiads 18:00 / 23:50 Oly End Days 1, 11 and 22 Max Register 1 For IP Minimum Players for Start 4 Players Subclass FREE MAX LVL 85 SHOP GRADE-S Party Diff 30 Level 55/85   Essence Items Price   Items Lvl 1 300k / 1.200kk LCoins Upgrade to Lvl 2 2 items Lvl 1 + 2b Adenas Upgrade to Lvl 3 2 items Lvl 2 + 2b Adenas Upgrade to Lvl 4 2 items Lvl 3 + 2b Adenas Upgrade Chance 25%   Exchange Items   As in other MMORPGs, we have a system of exchanging items for better items.       GrandBoss All Grand Boss Time Fixed Raids Status 50% Change Drop Queen Ant / Core / Orfen / Baium Queen ant Level: 80 Every day 18:30 / Drop Jewel 40% Core Level: 80 Every day 18:40 / Drop Jewel 90% Orfem Level: 80 Every day 18:50 / Drop Jewel 90% Baium Level: 80 Every Friday 18:00 / Drop Jewel 100% Beleth Every Friday 22:00 / Drop Jewel 100% Valakas Every Saturday 18:00 / Drop Jewel 100% Antharas Every Sunday 17:00 / Drop Jewel 100% Max Character in Zone Boss 1 For IP   Instances Party All Intances 5 Players Raids Status 50% Zaken Day 61 5 Players / Jewel Chance 10% Zaken Day Hard 83 5 Players / Jewel Chance Normal / 10% / Blessed 1.9% Zaken Nightmare 61 5 Players / Jewel Chance 90% Frintezza 5 Players / Jewel Chance 40% Freya Normal 5 Players / Jewel Chance 40% Freya Hard 5 Players / Jewel Chance 40% Tiat 5 Players / Weapon Chance 10%   Instances Solo   All Intances Drop S84 Up Crystal Level 10 / 17 Baylor Solo Drop Moirai Set / Vesper Weapons Darion Solo Weapon Chance 1% Tiat Solo Weapon Chance 1% Frintezza Solo Jewel Chance 2% Freya Solo Jewel Chance 2% Zaken Solo Jewel Chance 2% Core Solo Jewel Chance 2% Orfen Solo Jewel Chance 2% Beleth Solo Jewel Chance 1%   Special Events Event Boss Lindvior Every day 16:40 - 22:40 Event Pig Invazion Every day 15:40 - 23:40 Event Dragon Invazion Every day 18:40 - 01:40 Event City War Every day 19:40 - 02:40   Commands .ach .achievements Opens the achievements interface .buffshield (anti-buff) .away .back (stay away / back) .menu .cfg (Character control panel) .combine .talisman (Combine all Talismans) .dressme (Visual Armor Added +1000 HP) .party .invite .partylist Our custom party creation system .offline (off line shop) .repair (repair character) .siege (See the siege time or register your clan) .stats (character status)   .offbuff (Open store buffs) .autofarm (Open Auto Farm Interface) .report (Report a suspicious bot player) .buffshop (Invoke a summon to sell your buffs.) .vote (Opens our vote system.) .aa (Exchange your seal stones for AA automatically.) .oly (Shows all players who are first in the oly ranking.) .status (See a player's status, he has to be in your target) .seeres (Look at a player's resistance, he has to be in his target) .equip (See all of a player's items, they have to be in their target) .regoly (Register with oly wherever you are.) .bagclean Delete all items from your inventory, use it knowing that you will lose everything that is not equipped!   WebSite: https://l2lusty.com/
    • Our sales are ongoing. Bump. 22 June 2025 Telegram: ContactDiscordAccS
    • 🔥 Special Offer – Limited Time Only! 🔥   I'm offering a 60% discount for: ✅ 1 license in Russia ✅ 1 license in Greece ✅ 1 license in Brazil This is a one-time opportunity to get access to one of the most complete and secure L2OFF Extenders at a special price. ⏳ First come, first served! Interested? Send me a private message. Let me know your project and why you want the discount. Let’s grow the community together! 💪
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock