rsolomou.1754:

Hi there,

Is it possible to get items that are only obtainable through specific vendors for a certain amount of dungeon currency?

For example, I’d like to be able to fetch the items that can only be bought using Flame Legion Charr Carvings from the Citadel of Flame vendor in Lion’s Arch.

Would something like this be possible?

Thanks,
Rich

DarkSpirit.7046:

No you can’t right now as the items API does not provide such information. I have suggested a more generic solution before:

https://forum-en.guildwars2.com/forum/community/api/API-Suggestion-Items-Recipes-and-Crafting/first#post2093046

We can include all the other currencies in the game besides just GoldCost and KarmaCost in a similar way.

rsolomou.1754:

Yeah, only if half our suggestions were indeed implemented! The way I see it, to get the Citadel of Flame items, I’d have to get all the items from items.json and their details through item_details.json and find the specific ones I need, add their item_id to an array, and only fetch those from the items.json file the next time.

Unless anyone has a better workaround?

Edit: Oh, and I would have to hard-code the currency needed for each item. Which we all know is the number one “don’t” when it comes to application development.

Cheers.

DarkSpirit.7046:

Unless anyone has a better workaround?

Edit: Oh, and I would have to hard-code the currency needed for each item. Which we all know is the number one “don’t” when it comes to application development.

What you can do is to create a JSON file that has that information, then read it in with your app.

Pros: You still have the separation between your code and data. You only need to update your JSON file when the game changes.

Cons: You need to maintain your own JSON file. Coming up with your own database is a pain.

rsolomou.1754:

This is what I’m building: http://www.reddit.com/r/Guildwars2/comments/1ohp10/im_building_a_dungeon_item_and_currency_tool/

Already figured out how to do most stuff and I’ve started development. Hopefully I’ll have a working version soon!