soul4soul / ot-monster-converter

C# .NET 5 program for converting OpenTibia (OT) monsters between commonly used formats
10 stars 12 forks source link

[tibiawiki][input] Add support for pulling server ids in addition to the item name for the loot #42

Closed soul4soul closed 3 years ago

soul4soul commented 3 years ago

TibiaWiki is great, most items include an itemid. The itemids should be fetched and stored along with the item name when building the loot list. The implementation should continue to be as respectful as possible to tibiawiki resources. Making a request for every item page would be very slow and would require over 6000 requests. Instead we should make a new page on the wiki which includes all items and lists their names and itemids in a single table. The DPL_Table template has a parameter to cache the table.

WIP DPL_Table

{{DPL Table|
| headers= !Name!!Id!!pickupable!
| table_class = wikitable sortable
| table_style = text-align:center;
| caption_style = text-align:center;
| tablerow = [[%TITLE%]]¦¦%%,%%
| no_results = There are no results.
| categories = Objects
| notcategorymatch= Deprecated¦Lists
| order_method = title
| sortcol = 0
| not_category = *
| uses_template = Template:Infobox Object
| includes= {Infobox Object}:itemid:pickupable
}}
soul4soul commented 3 years ago

This is much faster https://tibia.fandom.com/wiki/User:Soul4Soul/List_of_Pickupable_Items

soul4soul commented 3 years ago

closed by #43