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

searchable? #57

Open
gpedro opened this issue Apr 15, 2020 · 4 comments
Open

searchable? #57

gpedro opened this issue Apr 15, 2020 · 4 comments

Comments

@gpedro
Copy link

gpedro commented Apr 15, 2020

if I want to search an item when it contains "sword" keyword, this API has a search method or something related?

@benjaminkomen
Copy link
Owner

No, it doesn't. I could add such a feature. Would you want to search through only the item names, or also other item properties, like the notes of an item? In the latter case, you would of course also find items which only mention "sword" in the notes, but are not actually a sword.

@gpedro
Copy link
Author

gpedro commented Apr 15, 2020

currently, I use the TibiaWikiSQL to generate a JSON to make a client-searchable tool to search by itemid (clientid) and name. but every time I need to generate this JSON file; Check my tool: https://gpedro.github.io/tibia-clientid-finder/ (i will release open-source soon)

I have a project focused on developing an open tibia server: https://github.com/opentibiabr/otservbr-global

That's the reason why I need this tool. Because when we get a raw byte to implement some feature, I need to check if raw bytes matches with some itemid to predict the packet structure.

@benjaminkomen
Copy link
Owner

benjaminkomen commented Apr 15, 2020

Ok, thx for explaining the reason why you need this, but I'm still not really sure if you want to:

  • search only through item names?
  • search through the complete items?

Maybe you could add an example, i.e. "when I search through items for 'sword' I expect the following 3 items to be found."

@gpedro
Copy link
Author

gpedro commented Apr 15, 2020

search by item id and item name into all elements of the game (items, creatures, stones, walls, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants