Q:
Best way to get Item Name from Chat Code?
A:
Here is a simple example to get the id from an item chatlink (only works for items, not for other types of chatlink): https://gist.github.com/darthmaim/b9df8ae919d0bc749712
Q:
I’m trying to, say, take ‘[&AgFKHQEA]’ and replace it with ‘Vial of Linseed Oil’ via Javascript.
I found how to get a chat code from an id from before the item ids got too large. What that made me think of was to convert the chat code to an item id and then API the item name from the item id.
I’d really rather not have to end up doing like a:
—items.forEach(function(item){
——if(item.chat_link === ‘[&AgFKHQEA]’) {
———$(‘#item_name’).html(item.name);
——}
—});
but it’s the best idea I’ve got going for me right now since the API only accepts ID as a param.
A:
Here is a simple example to get the id from an item chatlink (only works for items, not for other types of chatlink): https://gist.github.com/darthmaim/b9df8ae919d0bc749712
Not affiliated with ArenaNet or NCSOFT. No support is provided.
All assets, page layout, visual style belong to ArenaNet and are used solely to replicate the original design and preserve the original look and feel.
Contact /u/e-scrape-artist on reddit if you encounter a bug.