Thread Tools Display Modes
08/09/17, 03:47 PM   #1
static_recharge
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 32
Get Collectible ID From Link

So I'm trying to use this function in my add-on:

Code:
GetCollectibleIdFromLink(link)
And it just throws an error no matter what link I put in there:

Click image for larger version

Name:	GetCollectibleIdFromLink_bug.PNG
Views:	272
Size:	242.6 KB
ID:	935

Am I just using this function wrong or is it really broken?
  Reply With Quote
08/09/17, 03:48 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
When an argument is a string, it must be between quotes.
  Reply With Quote
08/09/17, 04:07 PM   #3
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
Ayantir already explained the issue, as for the why: The links you see in game are just visually tweaked strings. They don't inherently have quotes around them.

If you place the achievement into your Say (but don't send it), then copy it and paste it into notepad, you'll realize the issue.
  Reply With Quote
08/09/17, 08:10 PM   #4
static_recharge
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 32
Thanks a bunch!
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Get Collectible ID From Link

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off