Skip to content
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

Endpoint for Drome leaderboards #212

Open
mathiasbynens opened this issue May 19, 2023 · 2 comments
Open

Endpoint for Drome leaderboards #212

mathiasbynens opened this issue May 19, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@mathiasbynens
Copy link

Have you considered exposing an endpoint for getting the Drome leaderboard data? Parameters would be world and rotation, where rotation would default to the current one, just like on the website:

The source of truth would be, e.g.

https://www.tibia.com/community/?subtopic=leaderboards&world=Vunira&rotation=12

…for the Vunira leaderboard of Drome rotation 12.

@tobiasehlert tobiasehlert added the enhancement New feature or request label May 19, 2023
@tobiasehlert
Copy link
Member

@mathiasbynens good suggestion 👍
This would be something new for v4, but should be added I guess.

What is the rotation value?
Switched to two other worlds and it doesn't seem to be logic to me 🤔

@mathiasbynens
Copy link
Author

The rotation is a monotonically increasing number starting at 1, which indicates the first rotation, i.e. the first 2 weeks since the release of the Drome update.

E.g. https://www.tibia.com/community/?subtopic=leaderboards&world=Vunira&rotation=1 has the Vunira leaderboard for this very first rotation.

For servers that are created more recently, rotation 1 won't yield any results. The current rotation number is 49, and that's the same across all servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants