Automatic shoutdown

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
SlosMister
Posts: 1
Joined: Sat Jun 02, 2007 5:24 pm

Automatic shoutdown

Post by SlosMister »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:

Hi i need automatic server ShoutDown.
Every Sunday on 5:00 o'clock.

Can you help me ? pls
User avatar
kimeraweb
Posts: 55
Joined: Sat Jul 31, 2010 5:33 pm
Location: Deutschland
Contact:

Re: Automatic shoutdown

Post by kimeraweb »

What you want is not fully developed.

Make a new class extends Task with your preferences, using Calendar (my suggestion).

Add new class to taskmanager/TaskManager.java (where other class are creating new instances).

Now you are available to insert your new task into global_tasks.
GS: 4470
DP: 7733
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Automatic shoutdown

Post by JIV »

ofc it is implemented, just search little.
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: Automatic shoutdown

Post by momo61 »

i think you need to add an entry to global_tasks table for it to shut down whenever you want. Try searching a bit like JIV said.
User avatar
kimeraweb
Posts: 55
Joined: Sat Jul 31, 2010 5:33 pm
Location: Deutschland
Contact:

Re: Automatic shoutdown

Post by kimeraweb »

JIV wrote:ofc it is implemented, just search little.
But it is done for diary, no weekly.

If restart are done just one per week, then can use TYPE_FIXED_SHEDULED and calculate in miliseconds the shutdown.

I think easier create a new command for weekly task.
GS: 4470
DP: 7733
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Automatic shoutdown

Post by JIV »

1. daily, not diary.
2. weekly is possible as well, if you don't know about something it doesn't mean its not there :)
User avatar
kimeraweb
Posts: 55
Joined: Sat Jul 31, 2010 5:33 pm
Location: Deutschland
Contact:

Re: Automatic shoutdown

Post by kimeraweb »

Well, uhm... thank you for "diary", I appreciate English support ^^ (really i do)

I was watching with atention, and you're right. It is there, just is not popular :)
GS: 4470
DP: 7733
Post Reply