Thread Tools Display Modes
07-16-10, 08:35 PM   #1
Tarumi
A Deviate Faerie Dragon
 
Tarumi's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 17
Guild Update

I can't seem to find an event that fires when a guild member logs on. I want it to show "Guildies: #" for how many guild members are online but it doesn't seem to update correctly since I'm trying to only use events to drive my addon, not a OnUpdate (unless I have to).

Any ideas?

Thanks!
  Reply With Quote
07-16-10, 08:42 PM   #2
yssaril
A Warpwood Thunder Caller
 
yssaril's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2007
Posts: 96
last i checked there was no event for this and you have to update and then check the guild roster periodically (every minute or so).

you have to fire GuildRoster() then wait for event "GUILD_ROSTER_UPDATE" to fire and then you can check out your roster with GetGuildRosterInfo()

more info here: http://wowprogramming.com/docs/api/GuildRoster
  Reply With Quote
07-17-10, 12:35 AM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,937
With my guild chat plugin for nUI I call GuildRoster when logging in and when key guild related events occur. They will then trigger the GUILD_ROSTER_UPDATE event which I then use to count the number of people online/offline/inguild etc. I also have a short burst of GuildRoster calling to trigger it outside of the events.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
07-17-10, 10:13 AM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You could turn on the chat feature that displays when guild members log on and watch that. However, that does not notify you when they log off... hmm...
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
07-17-10, 10:49 AM   #5
Tarumi
A Deviate Faerie Dragon
 
Tarumi's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 17
Thanks for the replies guys! It looks like I"ll add the GuildRoster() call every 30sec or so and update it from the event fired. Thanks!!!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Guild Update


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