Thread Tools Display Modes
04-19-12, 08:55 AM   #1
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
Mass Oficer Note

There is a macro or an addon that I seto notal officer for all members?

For example, type "/gn OK" aids all members of my guild receive an official note "OK" or if I type "/gn " all guild members receive an official note in white s possible to do this?
  Reply With Quote
04-19-12, 01:03 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Your post is not very clear... I have no idea what "all guild members receive an official note in white" means, for example.

Anyway, I would not recommend any code that blindly set everyone's note to "OK" (or anything else), as this would erase any note that was previously set, and this not only cause information to be lost, but also break the functionality of things like DKP addons that use officer notes to store DKP information.

If you more clearly explain what exactly you want to do, and why you think it would be useful, perhaps we can suggest a better method.
  Reply With Quote
04-19-12, 03:01 PM   #3
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
but what exactly what I would do, a way to set an official note to all the guild also, such as ok
  Reply With Quote
04-19-12, 04:10 PM   #4
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
Do you mean "set", as in "make an official Guild note on every member", or "send", like you would "send (or mail) a message to every Guild member"?
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!

Last edited by jeffy162 : 04-19-12 at 04:13 PM.
  Reply With Quote
04-19-12, 04:23 PM   #5
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
like which works in the following way.

when typing ...
"/gn Member OK"

All members of my guild are set in the Official Note well "Member OK"

and if I type
"/gn"

All official notices of all members are blank
  Reply With Quote
04-20-12, 01:21 AM   #6
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
That sounds like a really bad idea, but it's trivially easy to code:
Code:
SLASH_MASSGUILDNOTE1 = "/gn"
SlashCmdList["MASSGUILDNOTE"] = function(note)
	for i = 1, GetNumGuildMembers() do
		GuildRosterSetOfficerNote(i, note or "")
	end
end
I did not bother coding in any "safety checks", so:
  • Make sure you have viewed the guild roster frame recently before running the command, so that your game client has current guild roster information.
  • Make sure you have the "Show offline guild members" option enabled on the guild roster frame, so that the notes of offline guild members can also be set.
  • Do not run the command from a character that is not in a guild, or that cannot set officer notes.
If you want to add in such checks, or other features, there is a list of guild-related API functions here to get you started:
  Reply With Quote
04-20-12, 10:15 AM   #7
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
thank you my friend, tested and working perfectly.
I have a doubt, is the command I run own code and do the checking update rostes members and offline?
  Reply With Quote
04-20-12, 02:02 PM   #8
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
No, the code I posted does not do those things. That's why I said you need to do them yourself (by opening the guild roster window and checking "Show offline members") before running the command.

I don't know what you mean by "own code" though.
  Reply With Quote
04-20-12, 07:50 PM   #9
Caetan0
A Warpwood Thunder Caller
Join Date: Aug 2011
Posts: 99
is working perfectly as I expected .. thank you friend.
  Reply With Quote
04-20-12, 08:51 PM   #10
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Phanx your patience seems to be boundless, considering the OP's post history
  Reply With Quote
04-20-12, 09:15 PM   #11
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Unless someone is (a) a long-time regular poster, or (b) really obnoxious, I generally don't remember who they are, so I really don't know what else the OP has posted...
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Mass Oficer Note


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off