Skip to content

[Share]How to have auto TvT(simply way for niebies)

Featured Replies

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.....

Thanks for guide;).

This is have one configuration to add one gift for team that wins? How I configure it? Can you post somes screen shot?

  • 1 month later...

yes how u add , awards ???

  • 4 weeks later...

it works perffect gj man!!

Tip: "...com.l2jfree.gameserver..." at l2jfree put the server pack that you use l2emu / l2archid

copy paste...at least put the creditor's name in the post....EzEraL

  • 2 weeks later...

ok nice share but we need a npc to?  :D

This is have one configuration to add one gift for team that wins? How I configure it? Can you post somes screen shot?

U need to configure all that In-Game with //tvt

yes how u add , awards ???

Same... //tvt

ok nice share but we need a npc to?  :D

LOL //tvt too

Very good and simple guide , with smart idea , thanx i will use it . :)

Nice !

 

PS: I like your signature :))))

Very good and simple guide , with smart idea , thanx i will use it

thanx for a nice quide, very good share.

  • 1 month later...

how to add deathmatch auto event?

 

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

 

does not work :S

I think DM cant be auto started...why ? Becouse You must manualy start registration , event starting and event finishing

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.