Thread Tools Display Modes
06-25-10, 04:11 PM   #1
Silberbüchse
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 6
Offline Duration

Iam searching a plugin to show offline duration on raidframes.
Could anybody help me please?
  Reply With Quote
06-26-10, 11:52 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Run a frequentupdate on the unitName-Tag and track for UnitIsConnected(unit)
Once the unit is not connected set "self.offlinesince = getTime()"
Now you have the time since when he is offline and you can do

user_offline_since = getTime() - self.offlinesince
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
06-26-10, 07:41 PM   #3
Silberbüchse
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 6
Servus Zork,
ich schreib dir mal auf deutsch das geht mir besser von der Hand
So LUA firm bin ich leider net das ich das vermünftig umgesetzt bekommen.
Ich kann mein Layout anpassen und Frames hin und herschieben. Aber dann hörts leider auf.

Ich würd mich freuen, wenn du mir das vielleicht als Codestück geben könntest,
so das ichs praktich nur in mein oUF Layout einbauen kann.

Danke schon mal im Vorfeld
Die Büchse
  Reply With Quote
06-27-10, 02:56 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Ist doch nicht so einfach, also über TAGs geht es nicht, da du da keinen Zugriff auf das self-Objekt hast. Du musst die Zeit immer für die jeweilige unit abspeichern. Ist nicht so einfach.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
06-27-10, 04:15 PM   #5
Silberbüchse
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 6
Servus Zork,
ich häng dir mal n lua dran, was ich derzeit für meine AFK Timer benutzt. Vielleicht weisst du ja ob man das sinnvoll abändern kann so das der statt dem "DND" eben die OFFLINER dann nimmt.

Grüßle

http://www.pastey.net/138097-86id
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Offline Duration


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