• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - Bazaar and Barter flipping

HarveyUK

Member
Hello, I'm a very new player to EQ (first month still) and I've found I can make money by looking for items on Bazaar and selling to Barter for a profit, things like Sunshard Ore and Cobalt Ore etc. I was wondering if anyone knew of a way I could create an ini file of my /note list that would on command search the bazaar and barter and notify me if there was an item that a buyer was paying more than the seller was selling for. Ideally it would make a sound or pause or print out at the end of the list. I'm on about 20 items that I search through currently but as I level higher I seem to be adding more and more to it.
Thanks.
 
I'm not sure about beeping, but you can use Bazaar.mac for buyer or trader mode and it will buy/sell and check competing prices based on your ini file settings for that macro. You could probably grab Bazaar's auto-price check feature for the price notice and add some type of auto-buy code. mq2autoloot will also automate /barter if you set up that plugin's ini for certain items with a min sell price.

If you wanted to mess around with the code, you could probably build in that "arbitrage" function where it auto-buys stuff with an instant profit to /barter.
 
Last edited:
Hi @eqtrader74 , thanks for the reply. That was my next step to try build it myself with the help of the bazaar.mac and I found a macro called CheckBarter by @ChatWithThisName from a while back that parses your inventory for items and stores the max price. I could then instead have it do the same but from an INI instead, if it finds a buying in barter, it can then store the price (like it does already) and then all the items with buyers can do a search in bazaar using the bazaar.mac code. I have no experience with macro's or coding though so should be a fun learning experience.
 
OK, I'm not sure if I'm allowed to do this but could I ask a kinda related question.

I've started to build the macro I want but all the examples I've looked at (bazaar.mac, checkbarter.mac) look for a record in an INI file given the name already from the UI. I'd like to get the item names from an INI file.

So far. I have a macro file named mogul.mac ( Original right...:-P ) and an INI file called MogulShoppingList.ini . Because I'm just trying to figure stuff out I wanted to try and just call a single item into /echo but like I said, all the examples have the item name before the INI call so they look like:
Example Bazaar.mac
Code:
/if (${Ini[bazaar.ini,"${itemname}", SellPriceMax]}>1
so the itemname is already known. I had planned to set out my INI like this:
MogulShoppingList.ini
INI:
[Items]
    [Sunshard Ore]
    alltimeLowestBazaar = 0
    alltimeHighestBarter = 0
    currentLowestBazaar = 0
    currentHighestBarter = 0
With the idea being I could iterate over the list of items under [Items] and update the values as it goes.
 
You should be able to read/write items and prices to an ini file. What error do you get when you run the /echo in your mac? It can't find the item entry?

For quicker coding tips, you can also check out the Discord where kaen/chat/sic/ctaylor/dr/mori and other coders might be online and can troubleshoot coding questions.
 
Question - Bazaar and Barter flipping

Users who are viewing this thread

Back
Top
Cart