Advertisement
Aldarana

Untitled

Sep 19th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. function bdlc:removeUserConsidering(itemLink, playerName)
  2. playerName = FetchUnitName(playerName)
  3. playerNamePlain = FetchUnitNamePlain(playerName)
  4. local myName = GetUnitName("player")
  5. if bdlc:inLC() then
  6. local currententry = bdlc:returnEntry(itemLink, playerName)
  7.  
  8. if (currententry) then
  9. currententry:Hide()
  10. currententry.user_notes:Hide()
  11. currententry.active = false
  12. currententry.itemLink = 0
  13. currententry.notes = ""
  14. currententry.playerName = ""
  15. currententry.wantLevel = 0
  16. currententry.voteUser:Hide()
  17. currententry.voteUserML:Hide()
  18. currententry.votes.text:SetText("0")
  19. end
  20.  
  21. if (bdlc.loot_council_votes[itemLink]) then
  22. bdlc.loot_council_votes[itemLink][playerName] = nil
  23. end
  24. if (bdlc.loot_considering[itemLink]) then
  25. bdlc.loot_considering[itemLink][playerName] = nil
  26. end
  27. if (bdlc.loot_want[itemLink]) then
  28. bdlc.loot_want[itemLink][playerName] = nil
  29. end
  30. if (UnitExists(playerNamePlain)) then
  31. SendAddonMessage(bdlc.message_prefix, "removeUserRoll><"..itemLink, "WHISPER", playerName);
  32. if (myName == playerNamePlain) then
  33. print("|cffFF3333rslc:|r Your roll on "..itemLink.." has been canceled by the master looter")
  34. end
  35. end
  36. end
  37.  
  38. bdlc:repositionFrames()
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement