About the format you could use this snippet:
Lua Code:
local formattedText = zo_strformat('<<C:1>>', unformatedText)
unformatedText is your variable with the german names, containing e.g. "Sturmhang-Krypta^fd,in".
formatedText should be the new variable without the extra stuff, like "Die Sturmhang-Krypta".
For the double output Garkin is right. You could realize it like this:
Lua Code:
--local variable array in your addon, outside OnQuestCompleteXP
local helperVars = {}
helperVars.lastXPGainedQuestName = ""
helperVars.lastXPGainedXP = 0
-- Finish a Quest
local function OnQuestCompleteXP(event, questName, level, prevXP, newXP, rank, prevVP, newVP)
local xpGained = newXP - prevXP
if helperVars.lastXPGainedQuestName ~= questName and helperVars.lastXPGainedXP ~= xpGained then
PrintXP(colors.Quest, "Completed Quest: " .. questName ..". +" .. xpGained .. " XP")
helperVars.lastXPGainedQuestName = questName
helperVars.lastXPGainedXP = xpGained
end
end
Wenn du noch Fragen hast schreib mir 'ne PM