one of many in the wild, wild net.
O C K E T S . N E T » Page 'Look!'

Look!

Made this in 45 mins. Alvin. :D

-- AVShouter
function lib:AVShouter()
local tradechan, msg;
msg = nil;
if GetNumRaidMembers() == 0 then
-- starting AV raid
msg = "Starting AV Premade. Have Enabler, be 70, follow directions, and open quickly. PST";
elseif GetNumRaidMembers() < 40 then
-- filling open AV raid
local rl, rotable;
rotable = {};
for raidMember=1,GetNumRaidMembers(),1 do
name, rank = GetRaidRosterInfo(raidMember)
if rank == 2 then rl = name end;
if rank == 1 then table.insert(rotable, name) end;
end
msg = "LFM AV Premade ("..rl.."). Have Enabler, be 70, follow directions, and open quickly. "..(40-GetNumRaidMembers()).." spots remaining.";
msg = msg.." PST ";
msg = msg..rl;
for i, v in ipairs(rotable) do
if i == # rotable then
if i == 1 then
msg = msg.." or "..v;
else
msg = msg..", or "..v;
end
else
msg = msg..", "..v;
end;
end
msg = msg.." for invite.";
end
if msg then
SendChatMessage(msg,"CHANNEL" ,nil , GetChannelName("Trade - City"));
else
DEFAULT_CHAT_FRAME:AddMessage("Raid is full dumbass.");
end
end
LibStub("AceConsole-3.0"):RegisterChatCommand("omavs", lib.AVShouter);
-- end AVShouter

Requires AceConsole-3.0 and LibStub

Like this post? Spread the word!
delicious digg google
stumbleupon technorati Yahoo!

One comment to “Look!”

  1. Nice. Only one error though. You need a comma between “full” and “dumbass”.

Leave a comment

XHTML - You can use:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Top of page / Subscribe to new Entries (RSS)