It is currently Sat May 25, 2013 7:00 pm



Reply to topic  [ 4 posts ] 
Random Scripts 
Author Message
Member
User avatar

Joined: Wed Jan 30, 2008 1:10 am
Posts: 1141
Post Random Scripts
Swap raid members by name:

first use this script ONCE (per session)
Code:
/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
Profile
Member
User avatar

Joined: Wed Jan 30, 2008 1:10 am
Posts: 1141
Post 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
Profile
Member
User avatar

Joined: Wed Jan 30, 2008 1:10 am
Posts: 1141
Post 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
Profile
User avatar

Joined: Tue Jan 29, 2008 10:18 pm
Posts: 41
Location: NYC,NJ USA
Post Re: Random Scripts
Thanks.

_________________
Image Image


Sun Feb 24, 2008 9:18 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

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

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.