Rattlehead 
Master
 
Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8
![]()
|
RE: Regarding Time Online
Code:
[function f_time_online]
src.tag.online_hours += 1
[events e_online_time]
on=@login
if ((<isempty <src.tag.online_hours>>) || (<src.tag.online_hours> > 0))
src.tag.online_hours = 0
endif
src.timerf 3600,f_time_online
they log in, the trigger fires it checks to see if they have the tag, or if the tag is more than 0, if so it makes the tag 0 and after 3600 seconds (one hour) the function fires adding 1 to the tag.
untested, wrote on the fly  gl
|
|
08-05-2013 05:53 PM |
|
|