TibiaWikiApi icon indicating copy to clipboard operation
TibiaWikiApi copied to clipboard

searchable?

Open gpedro opened this issue 5 years ago • 4 comments

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

gpedro avatar Apr 15 '20 05:04 gpedro

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.

benjaminkomen avatar Apr 15 '20 07:04 benjaminkomen

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.

gpedro avatar Apr 15 '20 13:04 gpedro

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."

benjaminkomen avatar Apr 15 '20 14:04 benjaminkomen

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

gpedro avatar Apr 15 '20 14:04 gpedro