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):
I hope someone might find this useful or inspire you to start coding from this basic example.
-Taz
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


There may already be something out there that I am just not aware of??