Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local f = CreateFrame("Button","ScrollUp",nil,"SecureActionButtonTemplate")
  2. f:SetAttribute("type","target")
  3. SecureHandlerWrapScript(f,"OnClick",f,[[
  4. local unit
  5. if (UnitIsUnit("target","player")) then
  6. unit = "party1"
  7. elseif (UnitIsUnit("target","party1")) then
  8. unit = "party2"
  9. elseif (UnitIsUnit("target","party2")) then
  10. unit = "party3"
  11. elseif (UnitIsUnit("target","party3")) then
  12. unit = "party4"
  13. else (UnitIsUnit("target","party4"))
  14. unit = "player"
  15. end
  16. if UnitExists(unit) then
  17. self:SetAttribute("unit",unit)
  18. break
  19. end
  20. end
  21. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement