Author |
Message |
L. Chance Newbie
Age:61 Gender: Joined: Jun 07 2003 Posts: 21 Offline
|
Posted: Thu Sep 02, 2004 6:11 pm Post subject: New plugin for MERV? |
 |
|
|
|
I was wondering if someone would be willing to write a plugin for MERV that would make changes to a zone's settings based on what day of the week it is? |
|
Back to top |
|
 |
Deadly Seasoned Helper
Age:34 Gender: Joined: Oct 15 2003 Posts: 148 Location: Ontario Canada Offline
|
Posted: Fri Sep 03, 2004 8:28 pm Post subject: |
 |
|
|
|
uhh.. i dont think it would be too hard but since I dont know C++.. i cant do it cuz i dont know how to get the current day
just get the day, make it check the day every 10 mins or so, if its monday, change setts and do like mondaysetts = true; then every 10 mins when it checks it goes if(mondaysetts != true){ }
and to set them.. ?set setting:setting:setting
Btw, 50, dont even reply to this thread if ur gonna mention my name _________________ Known as DeadlySoldier!! in-game..
http://deadly.sscentral.com -- My Bots |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Fri Sep 03, 2004 9:21 pm Post subject: |
 |
|
|
|
A. I made one long ago, it was easy, I dont want to do it again because
B. I was informed someone else is already making one that
C. Is supposed to be better.
Deadly wrote: | Btw, 50, dont even reply to this thread if ur gonna mention my name |
Now now, no need to invite a war. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
Deadly Seasoned Helper
Age:34 Gender: Joined: Oct 15 2003 Posts: 148 Location: Ontario Canada Offline
|
Posted: Fri Sep 03, 2004 10:45 pm Post subject: |
 |
|
|
|
He started it.. along with u and all the other ppl who think coding a bot, which is easy as hell that a 10 year old could do, shouldnt be done unless you totally kno C++ and sit at ur comp 24/7 and read C++ books and make programs.. yay! |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Fri Sep 03, 2004 11:26 pm Post subject: |
 |
|
|
|
Deadly wrote: | He started it.. |
What are you 4?
I dont think you need to be ubernerd to program a bot at all. I do think you need to know what youre doing before you think you can release code to the public.
Let make this no longer about flaming or stupid things, and keep arguements to your respective threads, make sure this thread stays about his plugin. |
|
Back to top |
|
 |
Deadly Seasoned Helper
Age:34 Gender: Joined: Oct 15 2003 Posts: 148 Location: Ontario Canada Offline
|
Posted: Sat Sep 04, 2004 2:06 am Post subject: |
 |
|
|
|
Theres like 2 very small flames in here..
But anyway.. when chance comes on hes gonna see all these posts and get excited til he sees what they are about so lets just stop until someone replys about the plugin (i was the first to do it ) |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Sat Sep 04, 2004 2:38 am Post subject: |
 |
|
|
|
There was this old man at my job, he was a hick named Tim who had red hair and drove the rattiest truck in the world...
that said:
dayofweek = date%7;
String s= "?set Setting:Settingmode";
switch(dayofweek)
{
case 0:s+=":setting";
break;
case 1:s+="setting";
break;
case 2:s+="setting";
break;
case 3:s+="setting";
break;
case 4:s+="setting";
break;
case 5:s+="setting";
break;
case 6:s+="setting";
break;
}
sendPublic(s);
please dont make fun of me for trying |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Sep 04, 2004 11:11 am Post subject: |
 |
|
|
|
Or really, it wouldn't be that difficult to do a whole server.cfg update; assuming the bot stays in the public arena. Just have it determine the name of the day, rename/copy/overwrite the file in the /get/ folder, *putfile server.cfg; badda bing. This should only occur on OLD_DAY != CURRENT_DAY ... :/ _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Sep 04, 2004 11:47 am Post subject: |
 |
|
|
|
I don't know if MERV supports *putfiling... _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sat Sep 04, 2004 11:58 am Post subject: |
 |
|
|
|
I doubt it too. |
|
Back to top |
|
 |
Muskrat Server Help Squatter

Age:38 Joined: Aug 24 2004 Posts: 829 Location: Swamp Offline
|
Posted: Sat Sep 04, 2004 12:54 pm Post subject: |
 |
|
|
|
I don't see why not, i've used 1 for some ?commands like that, put mervbot in a subspace folder?
Last edited by Muskrat on Sat Sep 04, 2004 1:00 pm, edited 1 time in total |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Sep 04, 2004 12:56 pm Post subject: |
 |
|
|
|
I'm pretty sure it supports both *getfile and *putfile; I know for sure getfile works... putfile should work as long as the file is in /get/ |
|
Back to top |
|
 |
L. Chance Newbie
Age:61 Gender: Joined: Jun 07 2003 Posts: 21 Offline
|
Posted: Sat Sep 04, 2004 8:19 pm Post subject: |
 |
|
|
|
CypherJF wrote: | Or really, it wouldn't be that difficult to |
A lot of people say that but noone has offered to make one.  |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Sep 04, 2004 8:28 pm Post subject: |
 |
|
|
|
rotfl.. |
|
Back to top |
|
 |
|