L2Exploiters DevTeam
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Guide]Pos na kanete to diko sas Ctf Event

Go down

[Guide]Pos na kanete to diko sas Ctf Event Empty [Guide]Pos na kanete to diko sas Ctf Event

Post  [Developer]AnGelL Sat Aug 08, 2009 11:03 pm

go to data/jscript/cron

create a file named ctf.py py is the extension, do not create it on .txt since it wont suit.

open the file you just created and insert this values


Script:
Code:

import sys
from net.sf.l2j.gameserver.model.entity.events import CTF
CTF.loadData()
CTF.autoEvent()

now this is the sql script that you are gonna insert on the data base with an sql file by the "import" button on your navicat



ok here is what you are gonna insert on the sql file

Code:

INSERT INTO `global_tasks` (`id`, `task`, `type`, `last_activation`, `param1`, `param2`, `param3`) VALUES
(998, 'jython', 'TYPE_FIXED_SHEDULED', 1206595935732, '60000', '21600000', 'ctf.py');

param1 is the time since the server restart.
param 2 is the time since the last event ended

well if you want it each 2 hours or 1 hour its
1hour=3600000
2hour=7200000
Credits : Hopzone Apla na sas help
[Developer]AnGelL
[Developer]AnGelL
Admin
Admin

Posts : 65
Join date : 2009-07-30
Age : 30
Location : Greece

http://www.l2exploiters.forumakers.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum