Page 2 of 2 FirstFirst
1
2
  1. #21
    New Question:
    How do I create an Link for a currency, ie Valor Points?

    I can seem to figure out how to get an ItemId for any currency when even
    name, count, extraCurrencyType, icon, itemid = GetBackpackCurrencyInfo(id)
    returns nil for currencys???

  2. #22
    Quote Originally Posted by Fummockelchen View Post
    New Question:
    How do I create an Link for a currency, ie Valor Points?

    I can seem to figure out how to get an ItemId for any currency when even
    name, count, extraCurrencyType, icon, itemid = GetBackpackCurrencyInfo(id)
    returns nil for currencys???
    Code:
    for i=1,3 do
        local name,_,_,id=GetBackpackCurrencyInfo(i)
        if name=="Valor Points" then
            return GetCurrencyLink(id)
        end
    end

  3. #23
    If you want a link for a currency by ID, you'd need to use GetCurrencyInfo or GetCurrencyLink, both of which accept currency IDs.

    GetBackpackCurrencyInfo, which you used, accepts an index identifying one of the player's watched currencies between 1 and the static global MAX_WATCHED_TOKENS.
    UI & AddOns expert | Interface & Macros moderator - My work

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •