Server Help

Bot Questions - New plugin for MERV?

L. Chance - 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?
Deadly - 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
ExplodyThingy - 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.
Deadly - 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!
ExplodyThingy - 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.
Deadly - 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 biggrin.gif)
Muskrat - 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
CypherJF - 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 ... :/
Cyan~Fire - Sat Sep 04, 2004 11:47 am
Post subject:
I don't know if MERV supports *putfiling...
Solo Ace - Sat Sep 04, 2004 11:58 am
Post subject:
I doubt it too.
Muskrat - 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?
CypherJF - 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/
L. Chance - 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. icon_cry.gif
CypherJF - Sat Sep 04, 2004 8:28 pm
Post subject:
rotfl..
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group