• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Python script to review your bazaar mule's sells

Joined
Dec 28, 2019
RedCents
4,627¢
If your like me, you have a mule in the bazaar that you parcel stuff too from many toons. I got curious about what I have been selling and wanted something that would show me that data. I wrote a quick and simple Python script to report this info. In the interest of keeping it simple, this will report back the player that purchased items, quantity of items, plat collected and the item name. This is just a jumping off point or the tip of the iceberg of what you can do with raw data.

Things I used for this are:
VS Code
Python 3.9
Regex Checker

[CODE title="What did I sell?"]
import re

# Path to player log
path = 'C:\\Everquest\\Logs'
# Name of player log
playerLog = 'bzrlog_Server_ToonName.txt'

file = open(f"{path}\\{playerLog}","r")
lines = file.readlines()
file.close

for line in lines:
# Hit on "purchased"
m = re.search(r"(\[.*\]\s(\w+)\spurchased\s(\d+)\s(.*)\s\w+\s\W(\d+)\S\W)", line)

if m:
# Player that made purchase, Quanity bought, total plat for purchase, Name of item purchased
print(f"Player: {m.group(2):12} Qty: {m.group(3):4} Plat: {m.group(5):8} Item: {m.group(4)}")
[/CODE]


Output snippet (Player names are made up):
Code:
...
Player: Malcome     Qty: 1    Plat: 2100     Item: Ring of Ill Touch
Player: Doug        Qty: 1    Plat: 7500     Item: Hammer of Greatness
Player: Jane        Qty: 96   Plat: 136800   Item: Ethernere Essence
Player: Leeroy      Qty: 1    Plat: 7000     Item: Aetemius' Bracer
Player: Link        Qty: 1    Plat: 10200    Item: Last Light Bolters
Player: Bloodlust   Qty: 1    Plat: 4275     Item: The Matriarch's Hunting Vest
Player: Blue        Qty: 1    Plat: 15000    Item: Black Vertebrae
...

I hope someone might find this useful or inspire you to start coding from this basic example.

-Taz
 
Great Idea!! Do you know if there is something out there that will check and entire account (all toons on that account) for any sellable item and the price of that item for sale in the bazaar. Sounds complicated to me, but you guys that are into coding in your sleep, this seems to be a pretty easy thing to do ...or not! :hfive: There may already be something out there that I am just not aware of??
 
Python script to review your bazaar mule's sells

Users who are viewing this thread

Back
Top
Cart