Jump to content

DrenepiaWorld

Members
  • Posts

    1,741
  • Credits

  • Joined

  • Last visited

  • Days Won

    8
  • Feedback

    0%

Community Answers

  1. DrenepiaWorld's post in [Help]Class Trader Dissapear was marked as the answer   
    gameserver/config/functions/l2jfrozen.properties
    lines 39-52
    # -------------------------- # Custom Tables - # -------------------------- # Enable / Disable custom tables. # The rest of the custom tables are already activated. # Custom Spawnlist Table CustomSpawnlistTable = True # Gm Spawn gets saved on custom_spawnlist Table? SaveGmSpawnOnCustom = True # Gm Spawn gets deleted on custom_spawnlist Table? DeleteGmSpawnOnCustom = True
  2. DrenepiaWorld's post in .xpon / .xpoff was marked as the answer   
    adapt this it's not hard just some small changes on the imports
    ### Eclipse Workspace Patch 1.0 #P L2jxCine_GameServer Index: head-src/net/xcine/Config.java =================================================================== --- head-src/net/xcine/Config.java (revision 59) +++ head-src/net/xcine/Config.java (working copy) @@ -305,6 +305,7 @@ public static String CHAT_FILTER_PUNISHMENT; public static ArrayList<String> FILTER_LIST = new ArrayList<>(); + public static boolean NOXPGAIN_ENABLED; public static int FS_TIME_ATTACK; public static int FS_TIME_COOLDOWN; public static int FS_TIME_ENTRY; //Rates @@ -2115,6 +2123,7 @@ CHAT_FILTER_PUNISHMENT = otherSettings.getProperty("ChatFilterPunishment", "off"); CHAT_FILTER_PUNISHMENT_PARAM1 = Integer.parseInt(otherSettings.getProperty("ChatFilterPunishmentParam1", "1")); CHAT_FILTER_PUNISHMENT_PARAM2 = Integer.parseInt(otherSettings.getProperty("ChatFilterPunishmentParam2", "1000")); + NOXPGAIN_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("NoXPGainEnable", "false")); FS_TIME_ATTACK = Integer.parseInt(otherSettings.getProperty("TimeOfAttack", "50")); FS_TIME_COOLDOWN = Integer.parseInt(otherSettings.getProperty("TimeOfCoolDown", "5")); FS_TIME_ENTRY = Integer.parseInt(otherSettings.getProperty("TimeOfEntry", "3")); Index: head-src/net/xcine/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- head-src/net/xcine/gameserver/model/actor/instance/L2PcInstance.java (revision 59) +++ head-src/net/xcine/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -1362,6 +1362,17 @@ private long timerToAttack; + private boolean _cantGainXP; + + public void cantGainXP(boolean b) + { + _cantGainXP = b; + } + + public boolean cantGainXP() + { + return _cantGainXP; + } //private boolean isInDangerArea; //////////////////////////////////////////////////////////////////// //START CHAT BAN SYSTEM Index: head-src/net/xcine/gameserver/handler/VoicedCommandHandler.java =================================================================== --- head-src/net/xcine/gameserver/handler/VoicedCommandHandler.java (revision 54) +++ head-src/net/xcine/gameserver/handler/VoicedCommandHandler.java (working copy) @@ -27,6 +27,7 @@ import net.xcine.gameserver.handler.voicedcommandhandlers.BankingCmd; import net.xcine.gameserver.handler.voicedcommandhandlers.CTFCmd; import net.xcine.gameserver.handler.voicedcommandhandlers.DMCmd; +import net.xcine.gameserver.handler.voicedcommandhandlers.NoExp; import net.xcine.gameserver.handler.voicedcommandhandlers.OfflineShop; import net.xcine.gameserver.handler.voicedcommandhandlers.Online; import net.xcine.gameserver.handler.voicedcommandhandlers.StatsCmd; @@ -98,7 +99,8 @@ { registerVoicedCommandHandler(new OfflineShop()); } - + if (Config.NOXPGAIN_ENABLED) + VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new NoExp()); _log.config("VoicedCommandHandler: Loaded " + _datatable.size() + " handlers."); } Index: head-src/net/xcine/gameserver/handler/voicedcommandhandlers/NoExp.java =================================================================== --- head-src/net/xcine/gameserver/handler/voicedcommandhandlers/NoExp.java (revision 0) +++ head-src/net/xcine/gameserver/handler/voicedcommandhandlers/NoExp.java (working copy) @@ -0,0 +1,62 @@ +/* + * 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.xcine.gameserver.handler.voicedcommandhandlers; + +import net.xcine.gameserver.handler.IVoicedCommandHandler; +import net.xcine.gameserver.model.actor.instance.L2PcInstance; + +/** + * This class allows user to turn XP-gain off and on. + * + * @author Notorious + */ +public class NoExp implements IVoicedCommandHandler +{ + private static final String[] _voicedCommands = + { + "xpoff", + "xpon" + }; + + /** + * + * @see net.xcine.gameserver.handler.IVoicedCommandHandler#useVoicedCommand(java.lang.String, net.xcine.gameserver.model.actor.instance.L2PcInstance, java.lang.String) + */ + @Override + public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) + { + if (command.equalsIgnoreCase("xpoff")) + { + activeChar.cantGainXP(true); + activeChar.sendMessage("You have turned XP-gain OFF!"); + } + else if (command.equalsIgnoreCase("xpon")) + { + activeChar.cantGainXP(false); + activeChar.sendMessage("You have turned XP-gain ON!"); + } + return true; + } + + /** + * + * @see net.xcine.gameserver.handler.IVoicedCommandHandler#getVoicedCommandList() + */ + @Override + public String[] getVoicedCommandList() + { + return _voicedCommands; + } +} \ No newline at end of file Index: head-src/net/xcine/gameserver/model/actor/stat/PcStat.java =================================================================== --- head-src/net/xcine/gameserver/model/actor/stat/PcStat.java (revision 54) +++ head-src/net/xcine/gameserver/model/actor/stat/PcStat.java (working copy) @@ -55,8 +55,8 @@ { L2PcInstance activeChar = getActiveChar(); - //Player is Gm and access level is below or equal to canGainExp and is in party, don't give Xp - if(!getActiveChar().getAccessLevel().canGainExp() && getActiveChar().isInParty()) + // Allowed to gain exp? + if (!getActiveChar().getAccessLevel().canGainExp() && getActiveChar().isInParty() || (Config.NOXPGAIN_ENABLED && getActiveChar().cantGainXP())) return false; if(!super.addExp(value)) @@ -109,7 +109,7 @@ //Player is Gm and acces level is below or equal to GM_DONT_TAKE_EXPSP and is in party, don't give Xp/Sp L2PcInstance activeChar = getActiveChar(); - if(!activeChar.getAccessLevel().canGainExp() && activeChar.isInParty()) + if (!activeChar.getAccessLevel().canGainExp() && activeChar.isInParty() || (Config.NOXPGAIN_ENABLED && getActiveChar().cantGainXP())) return false; // if this player has a pet that takes from the owner's Exp, give the pet Exp now Index: config/main/other.properties =================================================================== --- config/main/other.properties (revision 54) +++ config/main/other.properties (working copy) @@ -232,3 +232,10 @@ # Enable Messages to GMs on 4-5 consecutive pvp of a player # Why? to see if a char are farming! EnableAntiPvpFarmMsg = true + +#==============================================================# +# Voice-command for turning off XP-gain # +#==============================================================# +# Player can use .xpoff to disable XP-gain, and .xpon to enable again. +# Default: False +NoXPGainEnable = False
  3. DrenepiaWorld's post in Proplem was marked as the answer   
    your login is trying to register a second gameserver while loaded the server 1 maybe this is your problem cause your gameserver started on server 2 and probably it's not registered
  4. DrenepiaWorld's post in What Could It Be? was marked as the answer   
    you don't have the required java installed or you didn't set the path to read it.
  5. DrenepiaWorld's post in How To Modify All Splash L2 was marked as the answer   
    when you save the splash screen (for example the one that you created) you have to save the same image for all the splashes.
    decrypt all splash screens sp_32b and sp_256, then create your splash screen and save it as sp_32b_01.bmp,sp_32b_02,etc for all of them and do the same thing with sp_256 files, then encrypt them all and put them on your systextures folder and you're done
  6. DrenepiaWorld's post in Command was marked as the answer   
    alright, go to gameserver/head-src/com/l2jfrozen/gameserver/handler/voicedcommandhandlers
    and inside file FarmPvpCmd.java
    change for example these
    private static final String[] VOICED_COMMANDS = { "farm1", "farm2", "pvp1", "pvp2" }; to this
    private static final String[] VOICED_COMMANDS = { "easy_farm", "hard_farm", "solo_pvp", "mass_pvp" }; and then go to
    if (command.equalsIgnoreCase("farm1") && Config.ALLOW_FARM1_COMMAND) { placex = Config.FARM1_X; placey = Config.FARM1_Y; placez = Config.FARM1_Z; message = Config.FARM1_CUSTOM_MESSAGE; } else if (command.equalsIgnoreCase("farm2") && Config.ALLOW_FARM2_COMMAND) { placex = Config.FARM2_X; placey = Config.FARM2_Y; placez = Config.FARM2_Z; message = Config.FARM2_CUSTOM_MESSAGE; } else if (command.equalsIgnoreCase("pvp1") && Config.ALLOW_PVP1_COMMAND) { placex = Config.PVP1_X; placey = Config.PVP1_Y; placez = Config.PVP1_Z; message = Config.PVP1_CUSTOM_MESSAGE; } else if (command.equalsIgnoreCase("pvp2") && Config.ALLOW_PVP2_COMMAND) { placex = Config.PVP2_X; placey = Config.PVP2_Y; placez = Config.PVP2_Z; message = Config.PVP2_CUSTOM_MESSAGE; } and change it for example to this
    if (command.equalsIgnoreCase("easy_farm") && Config.ALLOW_FARM1_COMMAND) { placex = Config.FARM1_X; placey = Config.FARM1_Y; placez = Config.FARM1_Z; message = Config.FARM1_CUSTOM_MESSAGE; } else if (command.equalsIgnoreCase("hard_farm") && Config.ALLOW_FARM2_COMMAND) { placex = Config.FARM2_X; placey = Config.FARM2_Y; placez = Config.FARM2_Z; message = Config.FARM2_CUSTOM_MESSAGE; } else if (command.equalsIgnoreCase("solo_pvp") && Config.ALLOW_PVP1_COMMAND) { placex = Config.PVP1_X; placey = Config.PVP1_Y; placez = Config.PVP1_Z; message = Config.PVP1_CUSTOM_MESSAGE; } else if (command.equalsIgnoreCase("mass_pvp") && Config.ALLOW_PVP2_COMMAND) { placex = Config.PVP2_X; placey = Config.PVP2_Y; placez = Config.PVP2_Z; message = Config.PVP2_CUSTOM_MESSAGE; }
  7. DrenepiaWorld's post in Different Protocol Version was marked as the answer   
    1) Open your L2.exe by right click, properties

    2) Add this to end of target -L2ProtocolVersion , hit apply

    3) It should look like similar to this "C:\Program Files\Lineage 2\system\L2.exe" -L2protocolversion

    4) Start the L2.exe and it will display the protocol for whatever server you have setup it to connect in your host file
     
    then go to this:
     
    and type the protocol version you will find
  8. DrenepiaWorld's post in High Five Icon.utx was marked as the answer   
    here you are: https://mega.nz/#!lsNwTSIA!osOtmxhMbhApQiSsA7XJVJJyHQjEWI89asQM6fYE458
  9. DrenepiaWorld's post in Enchant Configs For Acis. was marked as the answer   
    Lock it.
    I "fixed" an old code and it's working.
     
    If someone need the code here you are
    Go to: gameserver/network/clientpacket/AbstractEnchantPacket.java  find this
    if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((L2Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_MAGIC; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC; } And replace it with this
    if (isBlessed()) { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR_BLESSED, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED : Config.ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED; } } else if (isCrystal()) { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR_CRYSTAL, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_CRYSTAL : Config.ENCHANT_CHANCE_WEAPON_MAGIC_CRYSTAL; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_CRYSTAL : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_CRYSTAL; } } else { if (enchantItem.isArmor()) chance = Math.pow(Config.ENCHANT_CHANCE_ARMOR, (enchantItem.getEnchantLevel() - 2)); // Weapon formula is 70% for fighter weapon, 40% for mage weapon. Special rates after +14. else if (enchantItem.isWeapon()) { if (((Weapon) enchantItem.getItem()).isMagical()) chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_MAGIC; else chance = (enchantItem.getEnchantLevel() > 14) ? Config.ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS : Config.ENCHANT_CHANCE_WEAPON_NONMAGIC; } } The Configs @ net.sf.l2j.Config.java
    public static double ENCHANT_CHANCE_WEAPON_MAGIC; public static double ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS; public static double ENCHANT_CHANCE_WEAPON_NONMAGIC; public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_CRYSTAL; +public static double ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_CRYSTAL; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_CRYSTAL; +public static double ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_CRYSTAL; public static double ENCHANT_CHANCE_ARMOR; +public static double ENCHANT_CHANCE_ARMOR_BLESSED; +public static double ENCHANT_CHANCE_ARMOR_CRYSTAL; ENCHANT_CHANCE_WEAPON_MAGIC = players.getProperty("EnchantChanceMagicWeapon", 0.4); ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS = players.getProperty("EnchantChanceMagicWeapon15Plus", 0.2); ENCHANT_CHANCE_WEAPON_NONMAGIC = players.getProperty("EnchantChanceNonMagicWeapon", 0.7); ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS = players.getProperty("EnchantChanceNonMagicWeapon15Plus", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_BLESSED = players.getProperty("EnchantChangeWeaponMagicBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_BLESSED = players.getProperty("EnchantChangeWeaponMagic15PlusBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_BLESSED = players.getProperty("EnchantChangeWeaponNonMagicBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_BLESSED = players.getProperty("EnchantChangeWeaponNonMagic15PlusBlessed", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_CRYSTAL = players.getProperty("EnchantChanceWeaponNonMagicCrystal", 0.35); +ENCHANT_CHANCE_WEAPON_NONMAGIC_15PLUS_CRYSTAL = players.getProperty("EnchantChanceWeaponNonMagic15PlusCrystal", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_CRYSTAL = players.getProperty("EnchantChanceWeaponMagicCrystal", 0.35); +ENCHANT_CHANCE_WEAPON_MAGIC_15PLUS_CRYSTAL = players.getProperty("EnchantChanceWeaponMagic15PlusCrystal", 0.35); ENCHANT_CHANCE_ARMOR = players.getProperty("EnchantChanceArmor", 0.66); +ENCHANT_CHANCE_ARMOR_BLESSED = players.getProperty("EnchantChanceArmorBlessed", 0.66); +ENCHANT_CHANCE_ARMOR_CRYSTAL = players.getProperty("EnchantChanceArmorCrystal", 0.66); And the properties
    # % chance of success to enchant a non magic weapon with normal scroll EnchantChanceNonMagicWeapon = 0.55 EnchantChanceNonMagicWeapon15Plus = 0.55 + +# % chance of success to enchant a magic weapon with blessed scroll +EnchantChangeWeaponMagicBlessed = 0.75 +EnchantChangeWeaponMagic15PlusBlessed = 0.75 + +# % chance of success to enchant a non magic weapon with blessed scroll +EnchantChangeWeaponNonMagicBlessed = 0.75 +EnchantChangeWeaponNonMagic15PlusBlessed = 0.75 + +# % chance of success to enchant a magic weapon with crystal scroll +EnchantChanceWeaponMagicCrystal = 0.95 +EnchantChanceWeaponMagic15PlusCrystal = 0.95 + +# % chance of success to enchant a non magic weapon with crystal scroll +EnchantChanceWeaponNonMagicCrystal = 0.95 +EnchantChanceWeaponNonMagic15PlusCrystal = 0.95 + # % chance of success for normal scrolls to enchant an armor part (both jewelry or armor) EnchantChanceArmor = 0.66 + +# % chance of success for blessed scrolls to enchant an armor part (both jewelry or armor) +EnchantChanceArmorBlessed = 0.75 + +# % chance of success for crystal scrolls to enchant an armor part (both jewelry or armor) +EnchantChanceArmorCrystal = 0.95 # Enchant limit [default = 0] EnchantMaxWeapon = 0 EnchantMaxArmor = 0
  10. DrenepiaWorld's post in Change Skills' Icons was marked as the answer   
    here you are http://www.maxcheaters.com/topic/168739-how-to-create-your-own-icon-how-to-import-it/
×
×
  • Create New...