The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regarding Time Online
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
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
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Regarding Time Online - pinku - 08-05-2013 01:56 PM
RE: Regarding Time Online - Rattlehead - 08-05-2013, 02:03 PM
RE: Regarding Time Online - pinku - 08-05-2013, 02:28 PM
RE: Regarding Time Online - Rattlehead - 08-05-2013, 05:53 PM
RE: Regarding Time Online - pinku - 08-06-2013, 01:15 AM
RE: Regarding Time Online - Mordaunt - 08-06-2013, 02:44 AM
RE: Regarding Time Online - darksun84 - 08-06-2013, 03:19 AM
RE: Regarding Time Online - pinku - 08-06-2013, 04:03 AM
RE: Regarding Time Online - darksun84 - 08-06-2013, 04:08 AM
RE: Regarding Time Online - Mordaunt - 08-06-2013, 05:28 AM
RE: Regarding Time Online - pinku - 08-06-2013, 05:35 AM
RE: Regarding Time Online - Mordaunt - 08-06-2013, 06:01 AM
RE: Regarding Time Online - Rattlehead - 08-06-2013, 07:42 AM
RE: Regarding Time Online - Coruja - 08-09-2013, 04:04 PM
RE: Regarding Time Online - Rattlehead - 08-13-2013, 07:43 AM
RE: Regarding Time Online - Coruja - 08-14-2013, 04:19 AM
RE: Regarding Time Online - Rattlehead - 08-14-2013, 08:16 AM
RE: Regarding Time Online - RanXerox - 08-15-2013, 12:42 AM
RE: Regarding Time Online - Mordaunt - 08-15-2013, 01:17 AM
RE: Regarding Time Online - Coruja - 08-15-2013, 03:26 AM
RE: Regarding Time Online - Rattlehead - 08-15-2013, 08:30 AM
RE: Regarding Time Online - Mordaunt - 08-15-2013, 09:07 AM
RE: Regarding Time Online - Rattlehead - 08-15-2013, 12:40 PM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)