Jump to content

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


Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 2 weeks later...

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

Link to comment
Share on other sites

  • 1 month 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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock