/run function SwapByName(n1,n2) local function G(n) for i=1,GetNumRaidMembers()do if n==GetRaidRosterInfo(i) then return i end end end SwapRaidSubgroup(G(n1), G(n2)) end
then to swap raid members use:
Code:
/run SwapByName("name1", "name2")
As in:
Code:
/run SwapByName("Kameril", "Leethe")
Would swap me and Leethe.
_________________ Another life saved by some girl on girl action. - Dr. House
Fri Feb 15, 2008 8:28 pm
Kameril
Member
Joined: Wed Jan 30, 2008 1:10 am Posts: 1141
Re: Random Scripts
Apparently doesn't work in combat, secured code, yay!
_________________ Another life saved by some girl on girl action. - Dr. House
Sat Feb 16, 2008 1:56 am
Kameril
Member
Joined: Wed Jan 30, 2008 1:10 am Posts: 1141
Re: Random Scripts
Code:
/run local f = CreateFrame"Frame" f:SetScript("OnEvent",function(s,e,m,a) DEFAULT_CHAT_FRAME:AddMessage(("[Raid][%s]: %s"):format(a,m)) end) f:RegisterEvent("CHAT_MSG_RAID") f:RegisterEvent("CHAT_MSG_RAID_LEADER")
Force raid chat to show up on PTR, yay!
_________________ Another life saved by some girl on girl action. - Dr. House
Sun Feb 24, 2008 8:20 pm
Nukez
Joined: Tue Jan 29, 2008 10:18 pm Posts: 41 Location: NYC,NJ USA
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum