PDA

View Full Version : How test if party members are offline?


Duugu
31-01-2007, 12:53 AM
Any ideas?

Thx

Duugu

aspinkorgall
31-01-2007, 02:26 AM
Not fully tested this as I couldn't find a party with an offline person to try this with, but I believe it should work:


for n = 1, GetNumPartyMembers() do
local u = "party"..n local x=(UnitIsConnected(u)==1) and "connected" or "not connnected"
DEFAULT_CHAT_FRAME:AddMessage(u.." is "..x)
end

Duugu
31-01-2007, 01:06 PM
Men ... I searched half an hour for a function like this. I must be blind. ;)
Thank you for you help.

aspinkorgall
01-02-2007, 05:32 AM
Least I can do for you mate :)