Arithmancer.5307:

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.

darthmaim.6017:

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