Not signed in (Sign In)
    •  
      CommentAuthormeridun
    • CommentTimeOct 20th 2007
     
    I had completely forgotten to suggest this a few days ago. I made this change on my version of Bottomscanner, because I think in terms of Unit Pricing and this helps me with my buying decisions.

    BtmScan.PromptPurchase = function(item)
    BtmScan.scanStage = 3
    BtmScan.Prompt.item = item

    -- format the profit percentage as an integer (can still be huge)
    local Vi, Vf, Vc = item.purchase, item.valuation, item.count

    local profit = Vf - Vi
    local roi = math.floor( (100 * profit / Vi) + 0.5 )
    local disc = math.floor( (100 * (1 - Vi / Vf)) + 0.5 )

    local bidText, BidText = "purchase", "Buyout"
    if (not item.canbuy or item.purchase < item.buy) then bidText, BidText = "bid on", "Bid" end

    local hours
    if (item.remain == 4) then hours = 24
    elseif (item.remain == 3) then hours = 8
    elseif (item.remain == 2) then hours = 2
    elseif (item.remain == 1) then hours = 0.5
    end

    BtmScan.Prompt.Lines[1]:SetLine(tr("Do you want to %1:", bidText))
    BtmScan.Prompt.Lines[2]:SetLine(" "..item.link.." x"..item.count)
    BtmScan.Prompt.Lines[3]:SetLine(" "..tr("Seller: %1, Remain: %2h", item.owner, hours))
    BtmScan.Prompt.Lines[4]:SetLine(" "..tr("%1 price:", BidText), BtmScan.Coins(Vi,true))
    BtmScan.Prompt.Lines[5]:SetLine(" "..tr("%1 unit price:", BidText), BtmScan.Coins(Vi / item.count,true))
    BtmScan.Prompt.Lines[6]:SetLine(" "..tr("Purchasing for:"), item.reason)
    BtmScan.Prompt.Lines[7]:SetLine(" "..tr("Valuation estimate:"), BtmScan.Coins(Vf,true))
    BtmScan.Prompt.Lines[8]:SetLine(" "..tr("Potential profit:"), BtmScan.Coins(profit,true))
    BtmScan.Prompt.Lines[9]:SetLine(" "..tr("Return on investment:"), roi.."%")
    BtmScan.Prompt.Lines[10]:SetLine(" "..tr("Discounted rate:"), disc.."%")
    --BtmScan.Prompt.Lines[11]:SetLine(" "..tr("Profit above requirements:"), BtmScan.Coins(item.profit,true))
    BtmScan.Prompt.Item:GetNormalTexture():SetTexture(item.tex)
    BtmScan.Prompt.Item:GetNormalTexture():SetTexCoord(0,1,0,1)
    if BtmScan.Settings.GetSetting("playSound") then PlaySoundFile("Interface\\AddOns\\btmScan\\Sounds\\DoorBell.mp3") end
    BtmScan.Prompt:Show()
    end


    Note that I removed the "Profit above requirements" section in mine; I find this irrelevant to my decision making.

    Feel free to do what you like with this code :)
    •  
      CommentAuthordinesh
    • CommentTimeOct 22nd 2007
     
    please feel free to add a JIRA issue for this. you can just link back to this post. thanks!
    •  
      CommentAuthormeridun
    • CommentTimeOct 22nd 2007
     
    I tried following this link http://jira.norganna.org/secure/CreateIssue!default.jspa from the FAQ and am receiving this error:
    You have not selected a valid project to create an issue in.


    I've fiddled around with it and can't actually find a way to associate the new ticket with a project or to create a new ticket from a project that I have browsed to. Is there a step that I'm missing here?
    •  
      CommentAuthordinesh
    • CommentTimeOct 22nd 2007
     
    just to clarify, you logged in first, correct? what do you see when you follow that link?
    •  
      CommentAuthormeridun
    • CommentTimeOct 23rd 2007
     
    I realized later that the different sub-domains meant I didn't stay logged in from one site to the other. I found the login prompt and added the ticket.

    Thanks Dinesh for the help :)
    • CommentAuthorNials
    • CommentTimeApr 9th 2008
     
    Very nice "hack" I must say. Have wished for a similar change for a long time now.

    I know the thread is old but I wanted to express my appreciation ;)
    •  
      CommentAuthordinesh
    • CommentTimeApr 9th 2008
     
    the latest dev builds actually have this functionality built in, so you should see them with the next release. you'll be able to select whether to see pricing per stack, per item, or both.
World of Warcraft™ and Blizzard Entertainment™ are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.