Advertisement
Guest User

Fixing addon

a guest
Oct 20th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. STRING #1:
  2. function MasterLootManager:AwardLootClicked(buttonFrame)
  3.     local itemLink = MasterLootTable:GetItemLink(self.currentItemIndex)
  4.     if AssignLoot(itemLink, MasterLootRolls.winningPlayer) then
  5.         MasterLootLogger:ProcessItem(itemLink, MasterLootRolls.winningPlayer, self.lastRollType, MasterLootRolls:GetWinningValue());
  6.         self:Speak(string.format(MLM_Local["Congratutlations to on winning"], MasterLootRolls.winningPlayer, itemLink))
  7.     end
  8. end
  9.  
  10.  
  11. STRING #2
  12. function MasterLootManager:PlayerSelectionButtonClicked(buttonFrame)
  13.     local buttonName = buttonFrame:GetName()
  14.     local playerNameLabel = getglobal(buttonName .. "_PlayerName")
  15.     MasterLootRolls.winningPlayer = playerNameLabel:GetText()
  16.     MasterLootRolls:UpdateRollList()
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement