Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2J_DataPack_BETA
- Index: dist/game/data/html/infopanel/eventinfo.htm
- ===================================================================
- --- dist/game/data/html/infopanel/eventinfo.htm (revision 0)
- +++ dist/game/data/html/infopanel/eventinfo.htm (working copy)
- @@ -0,0 +1,13 @@
- +<html><head><title>Event Information - Info Panel (Dracule)</title></head><body>
- +<center><br>
- +Team Vs Team: %tvt%
- +<br>
- +Banking System: %bankingsystem%
- +<br>
- +Champions Mod: %champion%
- +<br>
- +Offline Trade: %offlinetrade%
- +<br></br>
- +<font color=\"A9A9A9\">Dracule www.devcheaters.net</font>
- +</center>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/handlers/voicedcommandhandlers/Info.java
- ===================================================================
- --- dist/game/data/scripts/handlers/voicedcommandhandlers/Info.java (revision 0)
- +++ dist/game/data/scripts/handlers/voicedcommandhandlers/Info.java (working copy)
- @@ -0,0 +1,217 @@
- +package handlers.voicedcommandhandlers;
- +
- +import com.l2jserver.Config;
- +import com.l2jserver.gameserver.cache.HtmCache;
- +import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
- +import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
- +import com.l2jserver.gameserver.network.serverpackets.ExShowScreenMessage;
- +import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
- +
- +/**
- + * @author Dracule
- + */
- +
- +public class Info implements IVoicedCommandHandler
- +{
- + public static final String[] VOICED_COMMANDS =
- + {
- + "info",
- + "ratesinfo",
- + "custominfo",
- + "eventinfo"
- + };
- +
- + @Override
- + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params)
- + {
- + if (Config.SHOW_INFO_PANEL)
- + {
- + if (command.equalsIgnoreCase("info"))
- + {
- + Info.showInfoPage(activeChar, "info.htm");
- + }
- + if (command.equalsIgnoreCase("ratesinfo"))
- + {
- + Info.showInfoPage(activeChar, "ratesinfo.htm");
- + }
- + if (command.equalsIgnoreCase("custominfo"))
- + {
- + Info.showInfoPage(activeChar, "custominfo.htm");
- + }
- + if (command.equalsIgnoreCase("eventinfo"))
- + {
- + Info.showInfoPage(activeChar, "eventinfo.htm");
- + }
- + }
- + else
- + {
- + activeChar.sendMessage("This command is disabled");
- + ExShowScreenMessage message1 = new ExShowScreenMessage("This command is disabled by admin!", 4000);
- + activeChar.sendPacket(message1);
- + return true;
- + }
- + return true;
- + }
- +
- + public static void showInfoPage(L2PcInstance targetChar, String filename)
- + {
- + String content = HtmCache.getInstance().getHtmForce(targetChar.getHtmlPrefix(), "data/html/infopanel/" + filename);
- + NpcHtmlMessage InfoPanelReply = new NpcHtmlMessage(5);
- + InfoPanelReply.setHtml(content);
- + InfoPanelReply.replace("%xp%", String.valueOf(Config.RATE_XP));
- + InfoPanelReply.replace("%sp%", String.valueOf(Config.RATE_SP));
- + InfoPanelReply.replace("%partyxp%", String.valueOf(Config.RATE_PARTY_XP));
- + InfoPanelReply.replace("%partysp%", String.valueOf(Config.RATE_PARTY_SP));
- + InfoPanelReply.replace("%dropitem%", String.valueOf(Config.RATE_DROP_ITEMS));
- + InfoPanelReply.replace("%chanceelementstone%", String.valueOf(Config.ENCHANT_CHANCE_ELEMENT_STONE));
- + InfoPanelReply.replace("%chanceelementcrystal%", String.valueOf(Config.ENCHANT_CHANCE_ELEMENT_CRYSTAL));
- + InfoPanelReply.replace("%chanceelementjewel%", String.valueOf(Config.ENCHANT_CHANCE_ELEMENT_JEWEL));
- + InfoPanelReply.replace("%chanceelementenergy%", String.valueOf(Config.ENCHANT_CHANCE_ELEMENT_ENERGY));
- + InfoPanelReply.replace("%enchantsafe%", String.valueOf(Config.ENCHANT_SAFE_MAX));
- + InfoPanelReply.replace("%enchantmax%", String.valueOf(Config.ENCHANT_SAFE_MAX_FULL));
- + InfoPanelReply.replace("%enchantchance%", String.valueOf(Config.ENCHANT_CHANCE));
- + InfoPanelReply.replace("%enchantmaxlevel%", String.valueOf(Config.MAX_ENCHANT_LEVEL));
- + InfoPanelReply.replace("%maxsubs%", String.valueOf(Config.MAX_SUBCLASS));
- + InfoPanelReply.replace("%maxsublvl%", String.valueOf(Config.MAX_SUBCLASS_LEVEL));
- + if (!Config.TVT_EVENT_ENABLED)
- + {
- + InfoPanelReply.replace("%tvt%", "OFF");
- + }
- + else if (!Config.TVT_EVENT_ENABLED == true)
- + {
- + InfoPanelReply.replace("%tvt%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%tvt%", "ON");
- + }
- +
- + if (!Config.L2JMOD_CHAMPION_ENABLE)
- + {
- + InfoPanelReply.replace("%champion%", "OFF");
- + }
- + else if (!Config.L2JMOD_CHAMPION_ENABLE == true)
- + {
- + InfoPanelReply.replace("%champion%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%champion%", "ON");
- + }
- + if (!Config.ALT_GAME_DELEVEL)
- + {
- + InfoPanelReply.replace("%delevel%", "OFF");
- + }
- + else if (!Config.ALT_GAME_DELEVEL == true)
- + {
- + InfoPanelReply.replace("%delevel%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%delevel%", "ON");
- + }
- + if (!Config.AUTO_LOOT)
- + {
- + InfoPanelReply.replace("%autoloot%", "OFF");
- + }
- + else if (!Config.AUTO_LOOT == true)
- + {
- + InfoPanelReply.replace("%autoloot%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%autoloot%", "ON");
- + }
- + if (!Config.AUTO_LOOT_RAIDS)
- + {
- + InfoPanelReply.replace("%autolootraids%", "OFF");
- + }
- + else if (!Config.AUTO_LOOT_RAIDS == true)
- + {
- + InfoPanelReply.replace("%autolootraids%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%autolootraids%", "ON");
- + }
- + if (!Config.ALLOW_CLASS_MASTERS)
- + {
- + InfoPanelReply.replace("%allowclassmaster%", "OFF");
- + }
- + else if (!Config.ALLOW_CLASS_MASTERS == true)
- + {
- + InfoPanelReply.replace("%allowclassmaster%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%allowclassmaster%", "ON");
- + }
- + if (!Config.ALT_GAME_SUBCLASS_WITHOUT_QUESTS)
- + {
- + InfoPanelReply.replace("%subquest%", "OFF");
- + }
- + else if (!Config.ALT_GAME_SUBCLASS_WITHOUT_QUESTS == true)
- + {
- + InfoPanelReply.replace("%subquest%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%subquest%", "ON");
- + }
- + if (!Config.AUTO_LEARN_SKILLS)
- + {
- + InfoPanelReply.replace("%autolearnskill%", "OFF");
- + }
- + else if (!Config.AUTO_LEARN_SKILLS == true)
- + {
- + InfoPanelReply.replace("%autolearnskill%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%autolearnskill%", "ON");
- + }
- + if (!Config.BANKING_SYSTEM_ENABLED)
- + {
- + InfoPanelReply.replace("%bankingsystem%", "OFF");
- + }
- + else if (!Config.BANKING_SYSTEM_ENABLED == true)
- + {
- + InfoPanelReply.replace("%bankingsystem%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%bankingsystem%", "ON");
- + }
- + if (!Config.AUTO_LEARN_FS_SKILLS)
- + {
- + InfoPanelReply.replace("%autolearnfs%", "OFF");
- + }
- + else if (!Config.AUTO_LEARN_FS_SKILLS == true)
- + {
- + InfoPanelReply.replace("%autolearnfs%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%autolearnfs%", "ON");
- + }
- + if (!Config.OFFLINE_TRADE_ENABLE)
- + {
- + InfoPanelReply.replace("%offlinetrade%", "OFF");
- + }
- + else if (!Config.OFFLINE_TRADE_ENABLE == true)
- + {
- + InfoPanelReply.replace("%offlinetrade%", "OFF");
- + }
- + else
- + {
- + InfoPanelReply.replace("%offlinetrade%", "ON");
- + }
- + targetChar.sendPacket(InfoPanelReply);
- + }
- +
- + @Override
- + public String[] getVoicedCommandList()
- + {
- + return VOICED_COMMANDS;
- + }
- +}
- \ No newline at end of file
- Index: dist/game/data/html/infopanel/ratesinfo.htm
- ===================================================================
- --- dist/game/data/html/infopanel/ratesinfo.htm (revision 0)
- +++ dist/game/data/html/infopanel/ratesinfo.htm (working copy)
- @@ -0,0 +1,34 @@
- +<html><head><title>Rates Information - Info Panel (Dracule)</title></head><body>
- +<center><br>
- +XP: %xp%
- +<br>
- +SP: %sp%
- +<br>
- +Party XP: %partyxp%
- +<br>
- +Party SP: %partysp%
- +<br>
- +Drop Item: %dropitem%
- +<br>
- +<br>
- +Chance Element Stone: %chanceelementstone%
- +<br>
- +Chance Element Crystal: %chanceelementcrystal%
- +<br>
- +Chance Element Jewel: %chanceelementjewel%
- +<br>
- +Chance Element Energy: %chanceelementenergy%
- +<br>
- +<br>
- +Enchant Safe: %enchantsafe%
- +<br>
- +Enchant Max: %enchantmax%
- +<br>
- +Enchant Chance: %enchantchance%
- +<br>
- +Enchant Max LvL: %enchantmaxlevel%
- +<br>
- +<br>
- +<font color=\"A9A9A9\">Dracule www.devcheaters.net</font>
- +</center>
- +</body></html>
- \ No newline at end of file
- Index: dist/game/data/scripts/handlers/MasterHandler.java
- ===================================================================
- --- dist/game/data/scripts/handlers/MasterHandler.java (revision 9404)
- +++ dist/game/data/scripts/handlers/MasterHandler.java (working copy)
- @@ -312,6 +312,7 @@
- import handlers.voicedcommandhandlers.ChatAdmin;
- import handlers.voicedcommandhandlers.Debug;
- import handlers.voicedcommandhandlers.Hellbound;
- +import handlers.voicedcommandhandlers.Info;
- import handlers.voicedcommandhandlers.Lang;
- import handlers.voicedcommandhandlers.StatsVCmd;
- import handlers.voicedcommandhandlers.TvTVoicedInfo;
- @@ -612,6 +613,7 @@
- (Config.L2JMOD_DEBUG_VOICE_COMMAND ? Debug.class : null),
- (Config.L2JMOD_ALLOW_CHANGE_PASSWORD ? ChangePassword.class : null),
- (Config.L2JMOD_HELLBOUND_STATUS ? Hellbound.class : null),
- + Info.class
- },
- {
- // Target Handlers
- Index: dist/game/data/html/infopanel/custominfo.htm
- ===================================================================
- --- dist/game/data/html/infopanel/custominfo.htm (revision 0)
- +++ dist/game/data/html/infopanel/custominfo.htm (working copy)
- @@ -0,0 +1,22 @@
- +<html><head><title>Custom Information - Info Panel (Dracule)</title></head><body>
- +<center><br>
- +Delevel: %delevel%
- +<br>
- +Auto Loot: %autoloot%
- +<br>
- +Auto Loot Raids: %autolootraids%
- +<br>
- +Auto Learn Skills: %autolearnskill%
- +<br>
- +Auto Learn Forb Skills: %autolearnfs%
- +<br>
- +Max Subs: %maxsubs%
- +<br>
- +Max Sub LvL: %maxsublvl%
- +<br>
- +Allow Class Master: %allowclassmaster%
- +<br>
- +Subclass without Quest : %subquest%
- +<br>
- +<font color=\"A9A9A9\">Dracule www.devcheaters.net</font>
- +</center>
- \ No newline at end of file
- Index: dist/game/data/html/infopanel/info.htm
- ===================================================================
- --- dist/game/data/html/infopanel/info.htm (revision 0)
- +++ dist/game/data/html/infopanel/info.htm (working copy)
- @@ -0,0 +1,12 @@
- +<html><head><title>Info Panel (Dracule)</title></head><body>
- +<center>
- +<br>
- +<button action="bypass -h voice .ratesinfo $Info" value="Rates Info" width=90 height=18 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
- +<br>
- +<button action="bypass -h voice .custominfo $Info" value="Custom Info" width=90 height=18 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
- +<br>
- +<button action="bypass -h voice .eventinfo $Info" value="Event Info" width=90 height=18 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">
- +<br>
- +<font color=\"A9A9A9\">Dracule www.devcheaters.net</font>
- +</tr></center><br><br>
- +</html></body>
- \ No newline at end of file
- #P L2J_Server_BETA
- Index: dist/game/config/L2JMods.properties
- ===================================================================
- --- dist/game/config/L2JMods.properties (revision 5768)
- +++ dist/game/config/L2JMods.properties (working copy)
- @@ -479,4 +479,11 @@
- # Enables .changepassword voiced command which allows the players to change their account's password ingame.
- # Default: False
- -AllowChangePassword = False
- \ No newline at end of file
- +AllowChangePassword = False
- +
- +# ---------------------------------------------------------------------------
- +# Show Info Panel By (Dracule) www.devcheaters.net
- +# ---------------------------------------------------------------------------
- +
- +# the voiced command is .info
- +ShowInfoPanel = True
- \ No newline at end of file
- Index: java/com/l2jserver/Config.java
- ===================================================================
- --- java/com/l2jserver/Config.java (revision 5768)
- +++ java/com/l2jserver/Config.java (working copy)
- @@ -781,6 +781,7 @@
- public static int L2JMOD_DUALBOX_CHECK_MAX_L2EVENT_PARTICIPANTS_PER_IP;
- public static Map<Integer, Integer> L2JMOD_DUALBOX_CHECK_WHITELIST;
- public static boolean L2JMOD_ALLOW_CHANGE_PASSWORD;
- + public static boolean SHOW_INFO_PANEL;
- // --------------------------------------------------
- // NPC Settings
- @@ -2687,6 +2688,7 @@
- }
- }
- L2JMOD_ALLOW_CHANGE_PASSWORD = Boolean.parseBoolean(L2JModSettings.getProperty("AllowChangePassword", "False"));
- + SHOW_INFO_PANEL = Boolean.parseBoolean(L2JModSettings.getProperty("ShowInfoPanel", "False"));
- // Load PvP L2Properties file (if exists)
- final File pvp = new File(PVP_CONFIG_FILE);
Add Comment
Please, Sign In to add comment