-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function to Get Mob Respawn Timers From the Wiki #167
Comments
Individual mob timer data would be really helpful, the automatic timers based on zone defaults is way too general. Would it be possible to write a script in The produced json file could be added to This part of action.py could be updated to trigger on a mob slain line type, check if the mob that died exists in the mob timer file, and if not fall back to the default zone timer. |
Realizing now, a pre-requisite to that would be knowing every mob name in the game, which is a lot. I was mostly concerned for the time it would take action.py to get a response to move on to the next item in the queue. It's probably a lot simpler to dedicate a thread to wiki requests so all action.py need to do is push the mob slain line type and line to a queue for a wiki request thread to process and then set any timers. |
Yeah, there's pros/cons to either approach. "Cached Approach"
"On the Fly"
Your call which is better, but for now I'll just make the function work, and if we want to spider the wiki we can add code to do that (which will call the function I write, so it will be useful either way). |
So ... I realized a flaw in my wiki plan 😦 It turns out that the zone pages have the respawn timers in a fixed place, but the mobs (if their timer is different) just has that timer in the description. I could try to parse that timer out of a string like But ... since I already wrote enough code to go fetch any page from the wiki and parse it ... is there any other info that you'd like to be able to get out of the wiki? |
I think a generalized wiki request thread could be really useful, I'll add the stubs for one in PR #168. For specific mob timers, there may need to be a json file sorted by A function that checks a local file for a mob timer, thread request to check the wiki (and adds to the file if its missing), defaults to the zone time.
|
I need to dust off my Python skills and create a function (in
util/action.py
) that ...The text was updated successfully, but these errors were encountered: