[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 116: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
How to set a timer routine correctly ?!? : VGExtreme General Discussion
taultunleashed logoHow to set a timer routine correctly ?!? : VGExtreme General Discussion
newtopic  postreply
 [ 8 posts ] 
blue large dot

How to set a timer routine correctly ?!? : VGExtreme General Discussion

Posted: March 26th, 2007, 9:31 am
 
kumpel100

Total Posts: 375
Location: Germany
Joined: October 24th, 2005, 12:29 pm
kumpel100's Reps: 969
User avatar
premium


Reply with quote
Posted: March 26th, 2007, 10:14 am
 
binafus

Total Posts: 154
Joined: November 3rd, 2006, 4:27 pm
binafus's Reps: 0
User avatar
Active User > 50 Posts


Reply with quote
Posted: March 26th, 2007, 10:44 am
 
kumpel100

Total Posts: 375
Location: Germany
Joined: October 24th, 2005, 12:29 pm
kumpel100's Reps: 969
User avatar
premium


Reply with quote
Posted: March 26th, 2007, 10:53 am
 
sinshar

Total Posts: 199
Joined: February 22nd, 2005, 3:07 pm
sinshar's Reps: 0
User avatar
Active User > 50 Posts


Reply with quote
Posted: March 26th, 2007, 11:34 am
 
binafus

Total Posts: 154
Joined: November 3rd, 2006, 4:27 pm
binafus's Reps: 0
User avatar
Active User > 50 Posts
Everytime you figure the difference you need to check to see if they number is negative if it is add 60 to it.


Diff15 = Minute(Now) - Timer15 'Ward

If Diff15 < 0 then
Diff15 = Diff15 + 60
End If

Do this for every timer check you have.


Reply with quote
Posted: March 26th, 2007, 12:20 pm
 
kumpel100

Total Posts: 375
Location: Germany
Joined: October 24th, 2005, 12:29 pm
kumpel100's Reps: 969
User avatar
premium


Reply with quote
Posted: March 26th, 2007, 12:53 pm
 
binafus

Total Posts: 154
Joined: November 3rd, 2006, 4:27 pm
binafus's Reps: 0
User avatar
Active User > 50 Posts
Start Time = 10 at ten after the hour
15 minutes later we do a Minute(Now) it would 25 after.
So your equation would work right and get buffs.

25 - 10 = 15 then buff ur 15 minute buff.

But if Start Time = 55 at 55 minutes after the hour.
Then 15 minutes later you do a Minute(Now) it would be 10 after so your equation would look like.

10 - 55 = -45 Which would never reach your buff timer

So you check for a negative number and if so you add 60

10 - 55 = -45
Diff = -45 + 60 = 15 minutes which would be correct.


Reply with quote
Posted: March 26th, 2007, 1:05 pm
 
kumpel100

Total Posts: 375
Location: Germany
Joined: October 24th, 2005, 12:29 pm
kumpel100's Reps: 969
User avatar
premium


Last edited by kumpel100 on April 1st, 2007, 4:57 am, edited 1 time in total.

Reply with quote
Want Advertisements After The Last Post Removed? Create A Free Account!

blue large dot Who is online
Users browsing this forum: No registered users and 3 guests

Popular Sections
SWTOR Cheats
Guild Wars 2 Cheats
Guild Wars 2 Hacks
Guild Wars 2 Bots
Diablo 3 Cheats
Guild Wars 2 Mods

Popular Sections
WoW Cataclysm Cheats & Exploits
WoW Cataclysm Hacks & Bots
Star Wars The Old Republic Cheats
SWTOR Mods
Torchlight 2 Cheats
SWTOR Space Mission Bots
Site Nav and RSS
RSS Feed of VGExtreme General Discussion RSS Feed 
Sitemap of VGExtreme General Discussion Sitemap 
SitemapIndex SitemapIndex
RSS Feed RSS Feed
Channel list Channel list
left bottom corner Site and Contents Copyright 2001-2012 All Rights Reserved TaultUnleashed.com bottom corner
top left
top right
createaccount
Username:   Password:   Remember Me?