<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HopZones Community - [Guide]how to make TvT and Ctf automatically]]></title>
	<link rel="self" href="http://www.hopzones.net/forum/feed/atom/topic/119/"/>
	<updated>2011-01-19T13:34:41Z</updated>
	<generator>PunBB</generator>
	<id>http://hopzones.net/forum/topic/119/</id>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/933/#p933"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>nedal wrote:</cite><blockquote><p>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</p><p>So i share a simply way for niebies...</p><p>1)Go to your datapack in data/scripts/cron/ directory<br />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)<br />3)Open the file and paste</p><p>import sys<br />from com.l2jfree.gameserver.model.entity.events import TvT<br />TvT.loadData()<br />TvT.autoEvent()</p><p>save and close it.</p><p>4)Finally add in your global tasks the following:<br />INSERT INTO `global_tasks` (`id`, `task`, `type`, `last_activation`, `param1`, `param2`, `param3`) VALUES <br />(996, &#039;jython&#039;, &#039;TYPE_FIXED_SHEDULED&#039;, 1206595935732, &#039;60000&#039;, &#039;14400000&#039;, &#039;tvt.py&#039;);</p><p>&quot;param1&quot; means time since server restart.So in what i share means that event will start 1 minite after restart<br />&quot;param2&quot; means how much time that the event will repeat.In what i share event will start automatic every 4 hours</p><p>You can change it by your needs(for example you may want every 3 hours)</p><p>Have fun.....</p></blockquote></div><p> Very Nice <img src="http://hopzones.net/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Admin-Hz]]></name>
				<uri>http://hopzones.net/forum/user/5/</uri>
			</author>
			<updated>2011-01-19T13:34:41Z</updated>
			<id>http://hopzones.net/forum/post/933/#p933</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/932/#p932"/>
			<content type="html"><![CDATA[<p>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</p>]]></content>
			<author>
				<name><![CDATA[buGGhaCK]]></name>
				<uri>http://hopzones.net/forum/user/1869/</uri>
			</author>
			<updated>2011-01-19T12:42:38Z</updated>
			<id>http://hopzones.net/forum/post/932/#p932</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/572/#p572"/>
			<content type="html"><![CDATA[<p>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</p><p>So i share a simply way for niebies...</p><p>1)Go to your datapack in data/scripts/cron/ directory<br />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)<br />3)Open the file and paste</p><p>import sys<br />from com.l2jfree.gameserver.model.entity.events import TvT<br />TvT.loadData()<br />TvT.autoEvent()</p><p>save and close it.</p><p>4)Finally add in your global tasks the following:<br />INSERT INTO `global_tasks` (`id`, `task`, `type`, `last_activation`, `param1`, `param2`, `param3`) VALUES <br />(996, &#039;jython&#039;, &#039;TYPE_FIXED_SHEDULED&#039;, 1206595935732, &#039;60000&#039;, &#039;14400000&#039;, &#039;tvt.py&#039;);</p><p>&quot;param1&quot; means time since server restart.So in what i share means that event will start 1 minite after restart<br />&quot;param2&quot; means how much time that the event will repeat.In what i share event will start automatic every 4 hours</p><p>You can change it by your needs(for example you may want every 3 hours)</p><p>Have fun.....</p>]]></content>
			<author>
				<name><![CDATA[nedal]]></name>
				<uri>http://hopzones.net/forum/user/1278/</uri>
			</author>
			<updated>2010-09-14T05:25:49Z</updated>
			<id>http://hopzones.net/forum/post/572/#p572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/556/#p556"/>
			<content type="html"><![CDATA[<p>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.</p>]]></content>
			<author>
				<name><![CDATA[rogjack]]></name>
				<uri>http://hopzones.net/forum/user/1238/</uri>
			</author>
			<updated>2010-09-08T04:15:58Z</updated>
			<id>http://hopzones.net/forum/post/556/#p556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/483/#p483"/>
			<content type="html"><![CDATA[<p>I am agree that your post really nice and also very useful. You have given information that is very wonderful.<br />I am sure many people will like these.</p>]]></content>
			<author>
				<name><![CDATA[nicolajoseph1]]></name>
				<uri>http://hopzones.net/forum/user/1064/</uri>
			</author>
			<updated>2010-08-06T11:58:20Z</updated>
			<id>http://hopzones.net/forum/post/483/#p483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/372/#p372"/>
			<content type="html"><![CDATA[<p>Thanks .&nbsp; &nbsp;<img src="http://hopzones.net/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Admin-Hz]]></name>
				<uri>http://hopzones.net/forum/user/5/</uri>
			</author>
			<updated>2010-06-29T13:31:20Z</updated>
			<id>http://hopzones.net/forum/post/372/#p372</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: [Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/368/#p368"/>
			<content type="html"><![CDATA[<p>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.</p>]]></content>
			<author>
				<name><![CDATA[roystonparera]]></name>
				<uri>http://hopzones.net/forum/user/836/</uri>
			</author>
			<updated>2010-06-29T09:06:24Z</updated>
			<id>http://hopzones.net/forum/post/368/#p368</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Guide]how to make TvT and Ctf automatically]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/175/#p175"/>
			<content type="html"><![CDATA[<p>Hello everyone.<br />I wanna help you with l2jfree you dont know how to automate the events?<br />here your answer:</p><p>you must make 2 new files 1 is <strong>tvt.py</strong> and second <strong>ctf.py</strong></p><p>in the codes must only this lines :</p><p><strong>TvT.py</strong><br />Code:<br /></p><div class="quotebox"><blockquote><p>import sys<br />from com.l2jfree.gameserver.model.entity.events import TvT<br />TvT.loadData()<br />TvT.autoEvent()</p></blockquote></div><p><strong>ctf.py</strong><br />Code:<br /></p><div class="quotebox"><blockquote><p>import sys<br />from com.l2jfree.gameserver.model.entity.events import CTF<br />CTF.loadData()<br />CTF.autoEvent()</p></blockquote></div><p>So if you made them correct you must put thise lines in a sql file<br />Code:<br /></p><div class="quotebox"><blockquote><p>[INSERT INTO `global_tasks` VALUES (&#039;4&#039;, &#039;jython&#039;, &#039;TYPE_FIXED_SHEDULED&#039;, &#039;1230423757765&#039;, &#039;1200000&#039;, &#039;3600000&#039;, &#039;tvt.py&#039;);<br />INSERT INTO `global_tasks` VALUES (&#039;5&#039;, &#039;jython&#039;, &#039;TYPE_FIXED_SHEDULED&#039;, &#039;1230425559187&#039;, &#039;3000000&#039;, &#039;3600000&#039;, &#039;CTF.py&#039;);</p></blockquote></div><p>you can edit the time when he starts after a restart and when comes the next event.<br />Have fun with that .</p>]]></content>
			<author>
				<name><![CDATA[Admin-Hz]]></name>
				<uri>http://hopzones.net/forum/user/5/</uri>
			</author>
			<updated>2010-03-05T12:14:13Z</updated>
			<id>http://hopzones.net/forum/post/175/#p175</id>
		</entry>
</feed>

