Jump to content

Recommended Posts

Posted

1)Go to your datapack in data/jscript/cron

2)Create a file and name it ctf.py(py is the extension so if you create a txt file and rename it,remove the txt and add py)

3)Open the file and paste

 

Script:

 

import sys

from com.l2jfree.gameserver.model.entity.events import CTF

CTF.loadData()

CTF.autoEvent()

 

If this script does not work, try this:

 

Script:

import sys

from net.sf.l2j.gameserver.model.entity.events import CTF

CTF.loadData()

CTF.autoEvent()

 

 

SQL:

INSERT INTO `global_tasks` (`id`, `task`, `type`, `last_activation`, `param1`, `param2`, `param3`) VALUES

(998, 'jython', 'TYPE_FIXED_SHEDULED', 1206595935732, '60000', '21600000', 'ctf.py');

 

"param1" means time since server restart.

"param2" means how much time that the event will repeat.

 

30 min : 1800000

1h : 3600000

2h : 7200000

4h : 14400000

8h : 28800000

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..