Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local f = CreateFrame("Button","ScrollUp",nil,"SecureActionButtonTemplate")
- f:SetAttribute("type","target")
- SecureHandlerWrapScript(f,"OnClick",f,[[
- local unit
- if (UnitIsUnit("target","player")) then
- unit = "party1"
- elseif (UnitIsUnit("target","party1")) then
- unit = "party2"
- elseif (UnitIsUnit("target","party2")) then
- unit = "party3"
- elseif (UnitIsUnit("target","party3")) then
- unit = "party4"
- else (UnitIsUnit("target","party4"))
- unit = "player"
- end
- if UnitExists(unit) then
- self:SetAttribute("unit",unit)
- break
- end
- end
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement