View Single Post
07/06/14, 10:09 AM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
It's not fully tested, but it seems to be working so far.

Replace function FCL.NewSkill in Combat Log Statistic.lua with:
Lua Code:
  1. function FCL.NewSkill(eventCode, Category, Type, MinXP, MaxXP, CurrentXP)
  2.     local diff = 0
  3.     local inLevel = 0
  4.     local display = ""
  5.  
  6.     if (FCL.SkillsXP[Category][Type][3] >= CurrentXP) or (FCL.SkillsXP[Category][Type][3] == nil) then return end
  7.     if (FCL.CText.Skills[Category][Type] == false) then return end
  8.  
  9.     diff = CurrentXP - FCL.SkillsXP[Category][Type][3]
  10.     if FCL.SkillsXP[Category][Type][2] < CurrentXP then
  11.         FCL.SkillsXP[Category][Type] = {GetSkillLineXPInfo(Category, Type)}
  12.     else  
  13.         FCL.SkillsXP[Category][Type][3] = CurrentXP
  14.     end
  15.     inLevel = FCL.SkillsXP[Category][Type][2] - FCL.SkillsXP[Category][Type][1]
  16.     percent = string.format( "%.2f" , ((CurrentXP - FCL.SkillsXP[Category][Type][1])/inLevel)*100)
  17.     display = "|cc8ff3a+" .. diff .. " " .. FCL.SkillXPNames[Category][Type] ..  " (" .. percent .. "%)"
  18.  
  19.     if (FCL.CText.Time == true) then
  20.         table.insert(FCL.CText.You, 1, "[" ..GetTimeString() .. "]" .. display)
  21.     else   
  22.         table.insert(FCL.CText.You, 1, display)
  23.     end
  24.  
  25.     if FCL.CText.Chat == true then
  26.         d(FCL.CText.You[1])
  27.     end
  28.  
  29.     if FCL.Hiden == "You" then
  30.         FCL.FadeTime = GetGameTimeMilliseconds()
  31.         for i = 1, FCL.CText.MaxLines do
  32.             if FCL.CText.You[FCL.Value + i] ~= nil then
  33.                 _G["CombatLog_Textbox"..i]:SetText(FCL.CText.You[FCL.Value + i])
  34.             end
  35.         end    
  36.     end
  37.  
  38. end

And in function FCL.NewExp replace XP_REASON_FINESSE with PROGRESS_REASON_FINESSE.

Last edited by Garkin : 07/08/14 at 07:40 AM. Reason: corrected "percent"
  Reply With Quote