`Rοmeο Posted October 17, 2009 Posted October 17, 2009 Here Some Screen About My Share: Here Is The Code For It: Index: D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/config/Mods.properties =================================================================== --- D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/config/Mods.properties (revision 11) +++ D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/config/Mods.properties (working copy) @@ -44,10 +50,7 @@ +#---------------------------------------# +# Quick Info For Newbies # +#---------------------------------------# +#Enable Quick Info Message For Newbies ? +EnableInfoMessage = False +ServerName = L2 Kingdom of Heaven Index: D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/Config.java =================================================================== --- D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/Config.java (revision 11) +++ D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/Config.java (working copy) @@ -886,7 +889,6 @@ // Message for Newbies public static boolean NEWBIE_MESSAGE_ENABLE; public static String SERVER_NAME; // Packet information /** Count the amount of packets per minute ? */ @@ -1979,8 +1984,7 @@ CHAMPION_REWARD_ID = Integer.parseInt(Mods.getProperty("ChampionRewardItemID", "6393")); CHAMPION_REWARD_QTY = Integer.parseInt(Mods.getProperty("ChampionRewardItemQty", "1")); + NEWBIE_MESSAGE_ENABLE = Boolean.parseBoolean(Mods.getProperty("EnableInfoMessage", "False")); + SERVER_NAME = Mods.getProperty("ServerName", "L2 Kingdom of Heaven"); } catch (Exception e) Index: D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java =================================================================== --- D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (revision 11) +++ D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java (working copy) @@ -255,6 +250,17 @@ SevenSigns.getInstance().sendCurrentPeriodMsg(activeChar); Announcements.getInstance().showAnnouncements(activeChar); + + if (activeChar.getLevel() <= 40 && Config.NEWBIE_MESSAGE_ENABLE) + { + activeChar.sendMessage("Welcome to "+Config.SERVER_NAME+" !"); + activeChar.sendMessage("RateXP: "+Config.RATE_XP+"x"); + activeChar.sendMessage("RateAdena: "+Config.RATE_DROP_ADENA+"x"); + activeChar.sendMessage("RateDrop: "+Config.RATE_DROP_ITEMS+"x"); + activeChar.sendMessage("SaveEnchant: +"+Config.ENCHANT_SAFE_MAX+""); + activeChar.sendMessage("MaxEnchant: +"+Config.ENCHANT_MAX_WEAPON+""); + activeChar.sendMessage("Have fun on our server and VOTE every day !"); + } Quest.playerEnter(activeChar); activeChar.sendPacket(new QuestList()); Hope you like it :) Credits to me :P
npro Posted October 17, 2009 Posted October 17, 2009 Wow! Thank you for letting us know a good way. Is there a blue print is going to come out with?
`Rοmeο Posted October 17, 2009 Author Posted October 17, 2009 The message apear only for newbie players and its under announcements
xDunno Posted October 17, 2009 Posted October 17, 2009 dude nc work but all servers info exist on forum or web so i dunno or it sso usefull but thxx for sharing
`Rοmeο Posted October 17, 2009 Author Posted October 17, 2009 dude nc work but all servers info exist on forum or web so i dunno or it sso usefull but thxx for sharing Agree but there are HUGE Noobs ... ;D if you have been seen when some Noob log in he ask Save +? Rate %? etc... ;D so thats why this info is only for new characters :P
xDunno Posted October 17, 2009 Posted October 17, 2009 Agree but there are HUGE Noobs ... ;D if you have been seen when some Noob log in he ask Save +? Rate %? etc... ;D so thats why this info is only for new characters :P Yeah i saw lots shouts like this well sorry then its usefull for newbies like u told ;p
`Rοmeο Posted October 18, 2009 Author Posted October 18, 2009 the code has been fixed. now the message show only to players above 40 level :)
Stewie Posted October 12, 2012 Posted October 12, 2012 Good share, but since there are "Announcements" Why do we need this?
Recommended Posts