Date: prev next · Thread: first prev next last
2024 Archives by date, by thread · List index



Bonjour,

Je suis parvenu à automatiser exactement comme je le voulais le relevé de prix dans le jeu AlbionOnline.

- A été installer sur calc l'extension *LibreOfficeGetRestPlugin*
- la liste des noms des items de AlbionOnline se trouve là : https://github.com/ao-data/ao-bin-dumps/tree/master/formatted

Voici un exemple d'utilisation dans une cellule Calc :

- Demande les prix sur le serveur *Europe* d'AlibionOnline, sur le marché de la ville de Martlock des *Sacs de l'adepte* dans tous les enchantements, en qualité ordinaire.

=GET(CONCATENER("https://europe.albion-online-data.com/api/v2/stats/prices/T4_BAG,T4_BAG@1,T4_BAG@2,T4_BAG@3,T4_BAG@4?locations=Martlock&qualities=1";))

le résultat est :
[{"item_id":"T4_BAG","city":"Martlock","quality":1,"sell_price_min":3344,"sell_price_min_date":"2024-07-13T10:25:00","sell_price_max":3344,"sell_price_max_date":"2024-07-13T10:25:00","buy_price_min":1500,"buy_price_min_date":"2024-07-13T10:20:00","buy_price_max":2216,"buy_price_max_date":"2024-07-13T10:20:00"},{"item_id":"T4_BAG@1","city":"Martlock","quality":1,"sell_price_min":7447,"sell_price_min_date":"2024-07-13T05:25:00","sell_price_max":7459,"sell_price_max_date":"2024-07-13T05:25:00","buy_price_min":4,"buy_price_min_date":"2024-07-13T07:05:00","buy_price_max":4478,"buy_price_max_date":"2024-07-13T07:05:00"},{"item_id":"T4_BAG@2","city":"Martlock","quality":1,"sell_price_min":0,"sell_price_min_date":"0001-01-01T00:00:00","sell_price_max":0,"sell_price_max_date":"0001-01-01T00:00:00","buy_price_min":0,"buy_price_min_date":"0001-01-01T00:00:00","buy_price_max":0,"buy_price_max_date":"0001-01-01T00:00:00"},{"item_id":"T4_BAG@3","city":"Martlock","quality":1,"sell_price_min":119999,"sell_price_min_date":"2024-07-13T09:05:00","sell_price_max":149998,"sell_price_max_date":"2024-07-13T09:05:00","buy_price_min":4,"buy_price_min_date":"2024-07-13T09:05:00","buy_price_max":62269,"buy_price_max_date":"2024-07-13T09:05:00"},{"item_id":"T4_BAG@4","city":"Martlock","quality":1,"sell_price_min":0,"sell_price_min_date":"0001-01-01T00:00:00","sell_price_max":0,"sell_price_max_date":"0001-01-01T00:00:00","buy_price_min":0,"buy_price_min_date":"0001-01-01T00:00:00","buy_price_max":0,"buy_price_max_date":"0001-01-01T00:00:00"}]

- extraire les donnés d'intérêt de ce résultat, apparaissant dans la cellule A1
par exemple extraction du prix de vente maximum du sac T4.2 :
=CNUM(PARSEJSON(A1;CONCATENER("get(2).sell_price_max")))

- en construisant habilement un tableau, on peut recomposer les noms d'items *NoTier_ITEM_Enchantement* avec la commande CONCATENER(), pour les donner comme paramètre à la commande GET().

--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.