Jump to content

Recommended Posts

Posted

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

 

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

credits to me

Posted

BAN this noob.He give credits to himself...

btw look here who made this nice guide!TheMental you -beep-ed -beep-!

http://devs-spot.com/index.php?topic=291.msg612#msg612

 

just a proof.(maybe he will edit the post!)

http://shrani.si/f/1Z/eX/3vz9rMiG/omgasd.png

 

  • 1 month later...
Posted

BAN this noob.He give credits to himself...

btw look here who made this nice guide!TheMental you -beep-ed -beep-!

http://devs-spot.com/index.php?topic=291.msg612#msg612

 

just a proof.(maybe he will edit the post!)

http://shrani.si/f/1Z/eX/3vz9rMiG/omgasd.png

 

 

The Guide is originally from the L2jForum.

  • 1 month later...
  • 3 months later...
Posted

BAN this noob.He give credits to himself...

btw look here who made this nice guide!TheMental you -beep-ed -beep-!

http://devs-spot.com/index.php?topic=291.msg612#msg612

 

just a proof.(maybe he will edit the post!)

http://shrani.si/f/1Z/eX/3vz9rMiG/omgasd.png

 

 

its not rocket sience that he had "stolen" lawl xD anyway.. thnx, was looking where can i set auto event :/ now i found :)

  • 7 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...