Thread Tools Display Modes
08/11/15, 11:37 PM   #1
Balver
 
Balver's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 39
Did someone messed up the API?

Since a few days the plant Wiesenschaumkraut (Lady's Smock) is shown as WiesenschaumOkrautH in LootDrop and CDGShowLoot.

Also, my modified version of El Chivato doesn't show the XP from completed delves anymore.
This is the code:
Lua Code:
  1. local function OnObjectiveCompleted(event, zoneIndex, poiIndex, level, prevXP, newXP, rank, prevVP, newVP)
  2. local objectiveName, objectiveLevel, startDescription, finishedDescription = GetPOIInfo(zoneIndex, poiIndex)
  3. local newCXP = GetPlayerChampionXP()
  4.     if (objectiveName ~= nil and objectiveName:len() > 0) and newXP > initialXP then
  5.     local xpGain = newXP - prevXP
  6.     local cxpGain = newCXP - initialCXP
  7.         PrintXP(colors.POI, zo_strformat("<<t:1>> abgeschlossen. +<<2>> XP/+<<3>> CXP", objectiveName, xpGain, cxpGain))
  8.         initialXP = newXP
  9.         initialCXP = newCXP
  10.     end
  11. end
It worked a few days ago and I didn't heard of any API changes.
  Reply With Quote
08/12/15, 06:55 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
the H in LootDrop is a LootDrop bug, because of items wich returns + link handler, it's like ths h of pChat of few months in fact, a bad linkhandler parsing.

ex :

item :
[Ring of Alliance] = EN
L' [L'anneau de l'alliance] = FR

You can notice that in french the item returns a text "L' " before the link.
I've fixed this internally and new version will be H-free.
  Reply With Quote
08/12/15, 06:37 PM   #3
Balver
 
Balver's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 39
Maybe the "H" was there before and I didn't noticed, but the "O" in front of krautH is new. It messes up the coloring, LootDrop shows it as "WiesenschaumOkrautH" and this definitely wasn't so before.
  Reply With Quote
08/20/15, 10:05 PM   #4
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
I modified LootDrop quite some time ago to fix ^H for quest drops its same beast in different coating.
  Reply With Quote
08/21/15, 02:47 AM   #5
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Why don't you just use zo_strformat(SI_TOOLTIP_ITEM_NAME, GetItemLinkName(itemLink))? There was this bug with Dietrich^p in it, but other then that, it's fine, or no?

Edit: or, for the code that actually puts the "prettified" item name back in a link, simply itemLink:gsub("|h.-|h", "|h|h")

Last edited by merlight : 08/21/15 at 02:52 AM.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Did someone messed up the API?

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