eq-p99-tools / ninjalooter

Track loot drops/bidding for raids
MIT License
5 stars 2 forks source link

Autoselection of Event on EQDKP Upload #6

Open rm-you opened 2 years ago

rm-you commented 2 years ago

Add a list of "EQDKP Event Names" mapped to an "expected zone" and let the user choose one on/before export somehow, defaulting to the one that is the most likely for the tick's zone_name. Ideally this is configurable, but we can likely include the Castle defaults.

For example:

export_events = {
    "airplane": "Plane of Sky",
}

These are simply strings, and EQDKP will choose the event based on a line somewhere in the uploaded text that looks like a timestamp followed by an event name in parentheses:

~\[?<time>.*)\].*\((?<event>.*)\).*~'

For example, simply adding the following to the top of the export sheet would auto-set the event to "Plane of Hate":

[Sun Mar 20 20:21:09 2022] (Plane of Hate)