-
Posts
8,223 -
Credits
0 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by `Rοmeο
-
you wont be disappointed dude :) and if the test is successful I will get +1 ? ;D
-
hmm hard to tell ... I thing its GTA 2 but im not so sure ;D
-
Hello there ! In order to make the l2 world better I have decide to make an music player. :o When you type .playsound1 you will listen an music ;D I have been pick up the song of Akon feat PitBull - Shut it Down but you can rename it and put another one :) You can also add more songs just rename the file from PlaySong1.java to any number that you whant :) In order to change the song folow this guide ~> http://www.maxcheaters.com/forum/index.php?topic=2963.0 Go at net.sf.l2j.gameserver.handler.voicedcommandhandlers and create new file named PlaySong1.java then paste the code there package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.serverpackets.PlaySound; /** * @author SkyLancer */ public class PlaySong1 implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = {"playsong1"}; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("playsong1")) { PlaySound _snd = new PlaySound(1, "song01", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd); activeChar.sendMessage("Now Playing - Pitbull Feat. Akon - Shut it down"); activeChar.broadcastUserInfo(); } return false; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } In order to feel the rhythm you must download the song from ~> http://www.4shared.com/file/141795922/15812bc7/music.html Then just paste it in your game folder and VOALA you are listening a music in l2 ;D Have fun with mine code dudes :)
-
meybe the way is wrong but it work perfect ;D
-
please man test it !!! Im begging you !!! You will see that is correct if you whant we can make an deal ? do you ? if the code is correct you will set me +1 if is wrong you will set me -1 ... I test it so many times ... It work perfect
-
I don't agree man ... test it first then tell me what is wrong ... couse I have been tested it before post here !
-
thanks I will keep my good work :) but one question I deserve karma for my share ??? :P ?
-
Thanks Orgyilkos For the Help :) I have been added config for rec reward too. Have fun :)
-
Albion™ your code don't work too ;) but thanks for trying to help me :)
-
Wizzy your way is not corect too :-X So I update it. Now you will earn only 1 rec :-\ I hope soon to fix it to more !
-
AWESOME :O I have never even thing about this ;D Thanks for making and share this THING ;D
-
Hello there ! I decide to make an new voiced command named Recomend Shop ! When you type .buyrec you earn 1 rec ! If you like it here is the code for the server core: 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 15) +++ D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/config/Mods.properties (working copy) @@ -63,3 +63,18 @@ #Enable Weight Penalty ? WeightPenalty = True + +#---------------------------------------# +# Custom Recomends System # +#---------------------------------------# +#.buyrec enable ? +AlowBuyRec = True + +#Whats the ID of item that is need to buy rec ? +RecItemID = 57 + +#How many it cost ? +RecPrice = 50000000 + +#How many recs will buy ? +RecReward = 1 + 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 15) +++ D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/Config.java (working copy) @@ -893,6 +893,12 @@ // Grade & Weight Penalty public static boolean GRADE_PENALTY; public static boolean WEIGHT_PENALTY; + + // Buy Rec System + public static boolean REC_BUY; + public static int REC_ITEM_ID; + public static int REC_PRICE; + public static int REC_REWARD; + // Packet information /** Count the amount of packets per minute ? */ @@ -1992,6 +1998,12 @@ GRADE_PENALTY = Boolean.parseBoolean(Mods.getProperty("GradePenalty", "True")); WEIGHT_PENALTY = Boolean.parseBoolean(Mods.getProperty("WeightPenalty", "True")); + REC_BUY = Boolean.parseBoolean(Mods.getProperty("AlowBuyRec", "True")); + REC_ITEM_ID = Integer.parseInt(Mods.getProperty("RecItemID", "57")); + REC_PRICE = Integer.parseInt(Mods.getProperty("RecPrice", "50000000")); + REC_REWARD = Integer.parseInt(Mods.getProperty("RecReward", "1")); + } catch (Exception e) { Index: D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/gameserver/GameServer.java =================================================================== --- D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/gameserver/GameServer.java (revision 10) +++ D:/Games/Lineage 2/L2 Kingdom of Heaven Server/WorkSpace/GameServer/java/net/sf/l2j/gameserver/GameServer.java (working copy) @@ -198,6 +198,7 @@ import net.sf.l2j.gameserver.handler.usercommandhandlers.Time; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Wedding; import net.sf.l2j.gameserver.handler.voicedcommandhandlers.stats; +import net.sf.l2j.gameserver.handler.voicedcommandhandlers.BuyRec; import net.sf.l2j.gameserver.idfactory.IdFactory; import net.sf.l2j.gameserver.instancemanager.AuctionManager; import net.sf.l2j.gameserver.instancemanager.BoatManager; @@ -592,6 +593,9 @@ if(Config.ALLOW_WEDDING) _voicedCommandHandler.registerVoicedCommandHandler(new Wedding()); + + if(Config.REC_BUY) + _voicedCommandHandler.registerVoicedCommandHandler(new BuyRec()); _log.config("VoicedCommandHandler: Loaded " + _voicedCommandHandler.size() + " handlers."); Now create new file named BuyRec.java in net.sf.l2j.gameserver.handler.voicedcommandhandler and add this: /* * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) any later * version. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program. If not, see <http://www.gnu.org/licenses/>. */ package net.sf.l2j.gameserver.handler.voicedcommandhandlers; import net.sf.l2j.Config; import net.sf.l2j.gameserver.handler.IVoicedCommandHandler; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** * @author SkyLancer */ public class BuyRec implements IVoicedCommandHandler { private static final String[] VOICED_COMMANDS = {"buyrec"}; public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target) { if (command.equalsIgnoreCase("buyrec")) { if(activeChar.getInventory().getItemByItemId(Config.REC_ITEM_ID) != null && activeChar.getInventory().getItemByItemId(Config.REC_ITEM_ID).getCount() >= Config.REC_PRICE) { activeChar.getInventory().destroyItemByItemId("Rec", Config.REC_ITEM_ID, Config.REC_PRICE, activeChar, activeChar.getTarget()); activeChar.setRecomHave(activeChar.getRecomHave() + Config.REC_REWARD); activeChar.sendMessage("You Have Earned "+Config.REC_REWARD+" Recomends."); activeChar.broadcastUserInfo(); } else { activeChar.sendMessage("You don't have enought items"); return true; } } return false; } public String[] getVoicedCommandList() { return VOICED_COMMANDS; } } Hope its useful :) Have fun and enjoy it ;D Credits are fully mine ;)
-
[Share] Custom Info Message for Newbies
`Rοmeο replied to `Rοmeο's topic in Server Shares & Files [L2J]
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 -
[Share] Custom Info Message for Newbies
`Rοmeο replied to `Rοmeο's topic in Server Shares & Files [L2J]
The message apear only for newbie players and its under announcements -
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
-
it seems nice server I will give it a try :)
-
loooooooooooooooool :X 1. Absulute easy to hack 2. buff time is retail like 3. buffers don't work I don't see fearure in this server ... :(
-
great guide ! thanks for it :)