1

Topic: [Guide]how to make TvT and Ctf automatically

Hello everyone.
I wanna help you with l2jfree you dont know how to automate the events?
here your answer:

you must make 2 new files 1 is tvt.py and second ctf.py

in the codes must only this lines :

TvT.py
Code:

import sys
from com.l2jfree.gameserver.model.entity.events import TvT
TvT.loadData()
TvT.autoEvent()

ctf.py
Code:

import sys
from com.l2jfree.gameserver.model.entity.events import CTF
CTF.loadData()
CTF.autoEvent()

So if you made them correct you must put thise lines in a sql file
Code:

[INSERT INTO `global_tasks` VALUES ('4', 'jython', 'TYPE_FIXED_SHEDULED', '1230423757765', '1200000', '3600000', 'tvt.py');
INSERT INTO `global_tasks` VALUES ('5', 'jython', 'TYPE_FIXED_SHEDULED', '1230425559187', '3000000', '3600000', 'CTF.py');

you can edit the time when he starts after a restart and when comes the next event.
Have fun with that .

http://www.hopzones.net/hopzones_banner.gif

2

Re: [Guide]how to make TvT and Ctf automatically

These information given by you is really nice, I really like all these information, and also hope that many people will really like all these information.

Thumbs up Thumbs down

3

Re: [Guide]how to make TvT and Ctf automatically

Thanks .   smile

http://www.hopzones.net/hopzones_banner.gif

4

Re: [Guide]how to make TvT and Ctf automatically

I am agree that your post really nice and also very useful. You have given information that is very wonderful.
I am sure many people will like these.

Thumbs up Thumbs down

5

Re: [Guide]how to make TvT and Ctf automatically

These post is really very helpful in all these there are so many things which is really great. These information which you can share is really very wonderful in all these there are so many things which is really great.

Thumbs up Thumbs down

6

Re: [Guide]how to make TvT and Ctf automatically

Well most of users will know that but i share it because some ppl on my msn spam and ask me how to make an auto tvt in l2jfree

So i share a simply way for niebies...

1)Go to your datapack in data/scripts/cron/ directory
2)Create a file and name it tvt.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

import sys
from com.l2jfree.gameserver.model.entity.events import TvT
TvT.loadData()
TvT.autoEvent()

save and close it.

4)Finally add in your global tasks the following:
INSERT INTO `global_tasks` (`id`, `task`, `type`, `last_activation`, `param1`, `param2`, `param3`) VALUES
(996, 'jython', 'TYPE_FIXED_SHEDULED', 1206595935732, '60000', '14400000', 'tvt.py');

"param1" means time since server restart.So in what i share means that event will start 1 minite after restart
"param2" means how much time that the event will repeat.In what i share event will start automatic every 4 hours

You can change it by your needs(for example you may want every 3 hours)

Have fun.....

Thumbs up Thumbs down

7

Re: [Guide]how to make TvT and Ctf automatically

I wanna ask for event vote auto reward event , i mean server for example get 100 votes , and random raidboss spawn in the center of one of the towns. I wanna manage that , if can help me with it

Last edited by buGGhaCK (2011-01-19 12:52:25)

Thumbs up Thumbs down

8

Re: [Guide]how to make TvT and Ctf automatically

nedal wrote:

Well most of users will know that but i share it because some ppl on my msn spam and ask me how to make an auto tvt in l2jfree

So i share a simply way for niebies...

1)Go to your datapack in data/scripts/cron/ directory
2)Create a file and name it tvt.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

import sys
from com.l2jfree.gameserver.model.entity.events import TvT
TvT.loadData()
TvT.autoEvent()

save and close it.

4)Finally add in your global tasks the following:
INSERT INTO `global_tasks` (`id`, `task`, `type`, `last_activation`, `param1`, `param2`, `param3`) VALUES
(996, 'jython', 'TYPE_FIXED_SHEDULED', 1206595935732, '60000', '14400000', 'tvt.py');

"param1" means time since server restart.So in what i share means that event will start 1 minite after restart
"param2" means how much time that the event will repeat.In what i share event will start automatic every 4 hours

You can change it by your needs(for example you may want every 3 hours)

Have fun.....

Very Nice smile

http://www.hopzones.net/hopzones_banner.gif