Jump to content

[Share]How to have auto CTF (simply way)


Recommended Posts

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

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...