Author |
Message |
2000+ Novice

Age:37 Gender: Joined: Sep 07 2004 Posts: 32 Offline
|
Posted: Sun Sep 12, 2004 4:56 am Post subject: Day/night Checker. |
 |
|
|
|
I heard of this so I wanted to know if a plugin can be made easily that can turn objects 23 and 24 on from 6:00am to 6:00pm and 26 and 27 on at 6:00Pm to 6:00am but turn the other two off then the other two are running. I know the question of timezones comes up but I don't mind. Thanks for your help!
-2k+
|
|
Back to top |
|
 |
Night_Fox dark_mistress is too sexy for me
Age:54 Gender: Joined: Jan 24 2004 Posts: 252 Offline
|
Posted: Sun Sep 12, 2004 5:15 am Post subject: |
 |
|
|
|
Why dont you just !unload that slot, or even easy just !unload all
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sun Sep 12, 2004 10:01 am Post subject: |
 |
|
|
|
Obviously, if 2000 is unable to make it online; the bot would switch the modes... _________________ Performance is often the art of cheating carefully. - James Gosling
|
|
Back to top |
|
 |
2000+ Novice

Age:37 Gender: Joined: Sep 07 2004 Posts: 32 Offline
|
Posted: Tue Sep 14, 2004 12:05 am Post subject: |
 |
|
|
|
What I meant was at 6:00am the bot would *objoff one .lvz and *objon another. then do the oppsite at 6:00pm. You see that I mean? I don't know how to have the bot check the time, but I would think have it check once an hour? maybe 30 mins? An have it based on server time, I was also thinking about making a "clock where the one is now so it matches the server's timezone... unless there is a way to check each person's time... but that would get too wierd, one person could be playing in night and another in day, so basing on one set time, the server's would be best. If you want to whip one together for me, please, could you contact me on the other details before hand? Thanks in advance!
|
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Tue Sep 14, 2004 12:36 am Post subject: |
 |
|
|
|
http://www.cplusplus.com/ref/ctime/
So when the dll starts youll have to get the system time or however you want to do it and then caculate how many seconds until you want to change the lvz file. The above has all of the time.h information.
|
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Fri Sep 24, 2004 7:49 pm Post subject: |
 |
|
|
|
I made a quick little plugin that does time rotations for lvz objects, you just set it in the ini. I upgraded to the object packets a while ago, I don't remember if I tested it or not. _________________
LVZ Toggler
lvztoggle.zip - 88.41 KB
File downloaded or viewed 11 time(s)
|
|
Back to top |
|
 |
|