goddameit 52 Posted January 19, 2015 (edited) Preview: http://goo.gl/GUwpM5 Info: Tell you how long you're online. Download:script - http://pastebin.com/gYVYqgpFsql - http://pastebin.com/HTL3wEhz Edited January 19, 2015 by goddameit 7 evilpuncker, humble, Kong and 4 others reacted to this Quote Share this post Link to post Share on other sites
evilpuncker 503 Posted January 19, 2015 thanks =D Quote Share this post Link to post Share on other sites
Thunderbolt 3 Posted January 28, 2015 Simple script Online exchange Point ? Quote Share this post Link to post Share on other sites
goddameit 52 Posted February 18, 2015 (edited) Simple script Online exchange Point ? prontera,150,180,4 script OnlineGamingTime 100,{ .@tick = 0; query_sql "UPDATE `onlinetime` SET `total_sec` = `total_sec` + TIMESTAMPDIFF(SECOND, `start_time`, NOW()), `start_time` = NOW() WHERE `account_id` = "+getcharid(3); query_sql "SELECT `total_sec` FROM `onlinetime` WHERE `account_id` = "+getcharid(3), .@tick; mes "Your online time is:"; mes "[ "+callfunc("Time2Str", gettimetick(2)+.@tick)+" ]"; @tick = .@tick; if(prompt("[100t ---> 1p]", "[close]") == 1 && @tick >= 100) { @tick -= 100; #CASHPINTS += 1; } query_sql "UPDATE `onlinetime` SET `total_sec` = "+@tick+" WHERE `account_id` = "+getcharid(3); .@tick = 0; @tick = 0; close; Edited February 18, 2015 by goddameit Quote Share this post Link to post Share on other sites
Thunderbolt 3 Posted February 18, 2015 Thank you sir ^ ^ Quote Share this post Link to post Share on other sites
Kong 9 Posted April 15, 2015 @@goddameit Is it possible to capture a player's entire online time? Like it would help determine if a player has been playing for 20 hours (that could be used in a referral system where GMs need to check if the player has been active for a definite time before reward will be given to the referrer) Quote Share this post Link to post Share on other sites
InFiNiTe 0 Posted June 3, 2018 Is it possible for this to count the actual online time and not the entire online time? Quote Share this post Link to post Share on other sites
Begin 11 Posted June 9, 2018 Hello Sir, I am getting this error when I query: MySQL said: #1067 - Invalid default value for 'start_time' Quote Share this post Link to post Share on other sites
minx123 2 Posted October 16, 2018 hi. i got this error [Debug]: script debug : 0 110012807 : [OnlineTime]: Auto-Backup player date. can i know what the problem? Quote Share this post Link to post Share on other sites