236 - Suggestion: Show the chance to get a skillpoint for that receipt.

as already sent you in a pm,i found the algorithm, which calculates the chance to get a profession skill point, on wow head (

It would be awesome to have it in skillet. I already added it by my self to the Rankframe by editing MainFrame.lua Many of my friends already using this hack and really like it as its the first addon which offers this stat. The numbers seems to fit very well so i guess the algorithm is right.

You can use my code if you want to as long as u give me credit for this :)

Row  2737 - MainFrame.lua (unfortunately BBC doesn't like my comments so i have to paste it as text)

function Skillet:getGuildPerk()
-- icy: calculate working overtime bonus
   local wot1 = 14
   local wot2 = 22
   local gLevel = GetGuildLevel()
   if (gLevel  < wot1 ) then
      return 0
   elseif ((gLevel >= wot1) and (gLevel < wot2)) then
      return 1.10
      return 1.20

function Skillet:getLvlUpChance()
-- icy: 03.03.2012:
--    according to pope (
--    % to level up with this receipt is calculated by: (greySkill - yourSkill) / (greySkill - yellowSkill
-- Lets add this information to skillet :)
    local currentLevelString, maxlevel = string.split(" ", self:GetSkillRanks(self.currentPlayer self.currentTrade or "0 0")
    local currentLevel = tonumber(currentLevelString)
    local gray = tonumber(
    local yellow = tonumber(
    local chance
    local guildperk = Skillet:getGuildPerk()
    if (currentLevel > gray) then
        return 0
    chance = ((gray - currentLevel) / ( gray - yellow ))
    chance = chance * guildperk
    chance = chance * 100
    return chance

-- Called when then mouse enters the rank status bar
function Skillet:RankFrame_OnEnter(button)

--    if button ~= SkilletRankFrame then
        GameTooltip:SetOwner(button, "ANCHOR_BOTTOMLEFT")
        local r,g,b = SkilletSkillName:GetTextColor()

        local gray =
        local green = SkilletRankFrame.subRanks.yellow:GetValue()
        local yellow =
        local orange =
        -- lets add the chance to level up that skill with that receipt
        local chance = Skillet:getLvlUpChance()
        GameTooltip:AddLine("|r/"..COLORYELLOW..yellow.."|r/""|r/"..COLORGRAY..gray.."|r/ Chance:"..chance.."|r%")
--    end


User When Change
bsmorgan Jul 21, 2014 at 04:28 UTC Changed status from Accepted to Fixed
yossa Mar 20, 2013 at 11:25 UTC Changed status from New to Accepted
ice0rl Mar 06, 2013 at 17:38 UTC Create

You must login to post a comment. Don't have an account? Register to get one!


Last updated
Jul 21, 2014
Mar 06, 2013
Fixed - Developer made requested changes. QA should verify.
Enhancement - A change which is intended to better the project in some way
Medium - Normal priority.

Reported by

Possible assignees