pinku
Journeyman
Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4
|
Regarding Time Online
Hey there!
With this function, I can calculate the total online time a player was online:
Code:
IF ( <TAG0.LASTCONNECTTIME> == 0 )
TAG0.LASTCONNECTTIME=<TIME>
IF (<TAG0.TOTALCONNECTTIME> == 0)
TAG0.TOTALCONNECTTIME=0
ENDIF
RETURN <eval ((<TAG0.TOTALCONNECTTIME> + <TIME> - <TAG0.LASTCONNECTTIME>)/10 )>
With this, they can grab prizes for 10 minutes online, 1 hour online, 1 day online, etc...
However, let's say I want to give my players one point (just +1 from a tag) per hour online:
Code:
<counts online time>
<1 hour online>
<eval tag bla +1>
<counts again online time from 0>
<1 hour online>
<eval tag bla +1>
...
...
How can I start it? Can someone enlighten me?
Thanks once again!
|
|
08-05-2013 01:56 PM |
|
|