/whisper all - Addon / command?

Anyone have the name of the addon/command that allows you to whisper everyone on your friendlist?



Thanks,

Best regards,
 
I posted the macro, after writing it.



/run for x=1,GetNumFriends() do a,b,c,d,e,f,g=GetFriendInfo(x); if (e and string.match(tostring(g), "f2p")) then SendChatMessage("[to F2PTWINK] - "..ChatFrame1EditBox:GetText(), "WHISPER",nil,a); end end; ChatFrame1EditBox:SetText("");



  1. They have to be in your friends list.
  2. They have to have 'f2p' in their friend notes (so you can have non-twinking friends and not send them whispers when you use this).
  3. Use the button instead of Enter to send to the people who satisfy the above criteria.





Problems with it are:

  • Only reads text from the first chat entry box. Not a problem if you have (Escape) > Interface > Social > Chat Syle > Classic Style.
  • Messages are still in pink, but start '[F2PTWINK] - ' so you can see they got sent to everyone.
  • If you're the one sending you see your outgoing message several times, once for each person it's sent to.
  • Blizzard's spam protection can disconnect you if you send a huge amount of whispers at once (probably way more than we're likely to have people online at any time).
  • Trial accounts can only whisper so many people at once, then some of them just don't get anything. Can't find how many, but again, not likely to be a problem yet. likely to be around 40, seeing as addons have to talk to each other in raids.
 
If one were to just send messages to everyone on friendlist because everyone is f2p, how would one go about removing the note requirement? I tried but can't get it to work. Thanks.



Edit: just tried the original and nothing happens when I press it instead of enter... *ponders*
 
lindenkron said:
If one were to just send messages to everyone on friendlist because everyone is f2p, how would one go about removing the note requirement? I tried but can't get it to work. Thanks.



Edit: just tried the original and nothing happens when I press it instead of enter... *ponders*



Just remove the if condition.
 
Fixed a problem with the check on notes (failed to work completely if someone has no note). The version in my previous post should work now.



For players on friends list and with 'f2p' in notes (doesn't have to be the only thing in notes, just there somewhere):

if (e and string.match(tostring(g), "f2p"))



For players just on friendslist:




You need at least that or it'll try to send to everyone who's offline, which could hit the spamfilter limits, and will probably give you loads of error messages in chat too.
 
That just send a whole [F2PTWINK] - to everyone, with no text haha. Spammer me.



"..ChatFrame1EditBox:GetText(), "WHISPER",nil,f); end end; ChatFrame1EditBox:SetText("");



Something not right here? :eek:



Edit: I tried it on another character and it worked there. I'll try and go back to the original char. Thanks!! :)
 
It reads the text from ChatFrame1EditBox, so if you have your chat frames set up as IM style, each with their own text entry area, instead of classic, you might be using the wrong box. There might not even be a box 1 with IM style. Not a lot I can do to read from the right one, because the macro is getting a bit long.
 

Users who are viewing this thread

Top