<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HopZones Community - [Share]Announce Hero Login]]></title>
	<link rel="self" href="http://www.hopzones.net/forum/feed/atom/topic/176/"/>
	<updated>2010-06-12T09:21:21Z</updated>
	<generator>PunBB</generator>
	<id>http://hopzones.net/forum/topic/176/</id>
		<entry>
			<title type="html"><![CDATA[Re: [Share]Announce Hero Login]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/311/#p311"/>
			<content type="html"><![CDATA[<p>hi i need one xml file for my server!!!!i need find this for make refining weapons and armors!!!if can help me plz send me this file <img src="http://hopzones.net/forum/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" />&nbsp; &nbsp;<img src="http://hopzones.net/forum/img/smilies/neutral.png" width="15" height="15" alt="neutral" />&nbsp; <img src="http://hopzones.net/forum/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></content>
			<author>
				<name><![CDATA[mpidas]]></name>
				<uri>http://hopzones.net/forum/user/704/</uri>
			</author>
			<updated>2010-06-12T09:21:21Z</updated>
			<id>http://hopzones.net/forum/post/311/#p311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[[Share]Announce Hero Login]]></title>
			<link rel="alternate" href="http://hopzones.net/forum/post/263/#p263"/>
			<content type="html"><![CDATA[<p>Well,hello again.PonyRider request me to make this code.<br />So i did it for him.<br />I guess it hasn&#039;t been shared again.<br />If yes,let me know it.<br />The code meaning is when a hero login announce it.</p><div class="quotebox"><blockquote><p>Index: java/net/sf/l2j/Config.java<br />===================================================================<br />--- java/net/sf/l2j/Config.java&nbsp; &nbsp; (revision 4092)<br />+++ java/net/sf/l2j/Config.java&nbsp; &nbsp; (working copy)<br />@@ -881,6 +881,18 @@<br />&nbsp; &nbsp; &nbsp;public static boolean L2JMOD_WEDDING_SAMESEX;<br />&nbsp; &nbsp; &nbsp;public static boolean L2JMOD_WEDDING_FORMALWEAR;<br />&nbsp; &nbsp; &nbsp;public static int L2JMOD_WEDDING_DIVORCE_COSTS;<br />+&nbsp; &nbsp; <br />+&nbsp; &nbsp; public static boolean ANNOUNCE_HERO_LOGIN;</p><p>&nbsp; &nbsp; &nbsp;// Packet information<br />&nbsp; &nbsp; &nbsp;/** Count the amount of packets per minute ? */<br />@@ -1858,6 +1870,18 @@<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;L2JMOD_WEDDING_SAMESEX&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = Boolean.parseBoolean(L2JModSettings.getProperty(&quot;WeddingAllowSameSex&quot;, &quot;False&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;L2JMOD_WEDDING_FORMALWEAR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= Boolean.parseBoolean(L2JModSettings.getProperty(&quot;WeddingFormalWear&quot;, &quot;True&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;L2JMOD_WEDDING_DIVORCE_COSTS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = Integer.parseInt(L2JModSettings.getProperty(&quot;WeddingDivorceCosts&quot;, &quot;20&quot;));<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ANNOUNCE_HERO_LOGIN&nbsp; &nbsp;= Boolean.parseBoolean(L2JModSettings.getProperty(&quot;AnnounceHeroLogin&quot;, &quot;False&quot;));</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{<br />Index: java/config/l2jmods.properties<br />===================================================================<br />--- java/config/l2jmods.properties&nbsp; &nbsp; (revision 4092)<br />+++ java/config/l2jmods.properties&nbsp; &nbsp; (working copy)<br />@@ -132,3 +132,47 @@<br /> # ex.: 1;2;3;4;5;6<br /> # no &quot;;&quot; at the start or end<br /> TvTEventDoorsCloseOpenOnStartEnd =<br />+<br />+#---------------------------------------------------------------<br />+# Announce Hero Login&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -<br />+#---------------------------------------------------------------<br />+# Announce Hero Name At Login<br />+# This sctipt will announce when Hero login.<br />+AnnounceHeroLogin = False<br />Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java<br />===================================================================<br />--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java&nbsp; &nbsp; (revision 4092)<br />+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java&nbsp; &nbsp; (working copy)<br />@@ -174,6 +174,59 @@<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;engage(activeChar);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;notifyPartner(activeChar,activeChar.getPartnerId());<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />+&nbsp; &nbsp; &nbsp; &nbsp; <br />+&nbsp; &nbsp; &nbsp; &nbsp; <br />+&nbsp; &nbsp; &nbsp; &nbsp; if (Config.ANNOUNCE_HERO_LOGIN)<br />+&nbsp; &nbsp; &nbsp; &nbsp; {<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (activeChar.isHero())<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Announcements.getInstance().announceToAll(&quot;Hero: &quot;+activeChar.getName()+&quot; has been logged in.&quot;);<br />+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />+&nbsp; &nbsp; &nbsp; &nbsp; }<br />+&nbsp; &nbsp; &nbsp; &nbsp; </p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (activeChar.getAllEffects() != null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</p></blockquote></div><p>Tested and Working 100%.</p>]]></content>
			<author>
				<name><![CDATA[Admin-Hz]]></name>
				<uri>http://hopzones.net/forum/user/5/</uri>
			</author>
			<updated>2010-05-06T19:39:25Z</updated>
			<id>http://hopzones.net/forum/post/263/#p263</id>
		</entry>
</feed>

