Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P Source Mega 16.06.2023
- diff --git java/com/l2jmega/Config.java
- index 781d421..973b099 100644
- --- java/com/l2jmega/Config.java
- +++ java/com/l2jmega/Config.java
- @@ -764,44 +764,44 @@
- /** Community Board */
- public static boolean ENABLE_COMMUNITY_BOARD;
- public static String BBS_DEFAULT;
- /** Flood Protectors */
- public static int ROLL_DICE_TIME;
- public static int HERO_VOICE_TIME;
- public static int SUBCLASS_TIME;
- public static int DROP_ITEM_TIME;
- public static int SERVER_BYPASS_TIME;
- public static int MULTISELL_TIME;
- public static int MANUFACTURE_TIME;
- public static int MANOR_TIME;
- public static int SENDMAIL_TIME;
- public static int CHARACTER_SELECT_TIME;
- public static int GLOBAL_CHAT_TIME;
- public static int TRADE_CHAT_TIME;
- public static int SOCIAL_TIME;
- /** ThreadPool */
- - public static int SCHEDULED_THREAD_POOL_COUNT;
- - public static int THREADS_PER_SCHEDULED_THREAD_POOL;
- - public static int INSTANT_THREAD_POOL_COUNT;
- - public static int THREADS_PER_INSTANT_THREAD_POOL;
- + public static int SCHEDULED_THREAD_POOL_COUNT = -1;
- + public static int THREADS_PER_SCHEDULED_THREAD_POOL = 1500;
- + public static int INSTANT_THREAD_POOL_COUNT = -1;
- + public static int THREADS_PER_INSTANT_THREAD_POOL = 8;
- /** Misc */
- public static boolean L2WALKER_PROTECTION;
- public static boolean SERVER_NEWS;
- public static int ZONE_TOWN;
- public static boolean DISABLE_TUTORIAL;
- /** Chat Filter **/
- public static int CHAT_FILTER_PUNISHMENT_PARAM1;
- public static int CHAT_FILTER_PUNISHMENT_PARAM2;
- public static int CHAT_FILTER_PUNISHMENT_PARAM3;
- public static boolean USE_SAY_FILTER;
- public static String CHAT_FILTER_CHARS;
- public static String CHAT_FILTER_PUNISHMENT;
- public static ArrayList<String> FILTER_LIST = new ArrayList<>();
- //----------------------------------------
- // party.properties
- //----------------------------------------
- /** Party */
- @@ -3830,45 +3830,40 @@
- LOG_ITEMS = options.getProperty("LogItems", false);
- GMAUDIT = options.getProperty("GMAudit", false);
- ENABLE_COMMUNITY_BOARD = options.getProperty("EnableCommunityBoard", false);
- BBS_DEFAULT = options.getProperty("BBSDefault", "_bbshome");
- ROLL_DICE_TIME = options.getProperty("RollDiceTime", 4200);
- HERO_VOICE_TIME = options.getProperty("HeroVoiceTime", 10000);
- SUBCLASS_TIME = options.getProperty("SubclassTime", 2000);
- DROP_ITEM_TIME = options.getProperty("DropItemTime", 1000);
- SERVER_BYPASS_TIME = options.getProperty("ServerBypassTime", 500);
- MULTISELL_TIME = options.getProperty("MultisellTime", 100);
- MANUFACTURE_TIME = options.getProperty("ManufactureTime", 300);
- MANOR_TIME = options.getProperty("ManorTime", 3000);
- SENDMAIL_TIME = options.getProperty("SendMailTime", 10000);
- CHARACTER_SELECT_TIME = options.getProperty("CharacterSelectTime", 3000);
- GLOBAL_CHAT_TIME = options.getProperty("GlobalChatTime", 0);
- TRADE_CHAT_TIME = options.getProperty("TradeChatTime", 0);
- SOCIAL_TIME = options.getProperty("SocialTime", 2000);
- - SCHEDULED_THREAD_POOL_COUNT = options.getProperty("ScheduledThreadPoolCount", -1);
- - THREADS_PER_SCHEDULED_THREAD_POOL = options.getProperty("ThreadsPerScheduledThreadPool", 4);
- - INSTANT_THREAD_POOL_COUNT = options.getProperty("InstantThreadPoolCount", -1);
- - THREADS_PER_INSTANT_THREAD_POOL = options.getProperty("ThreadsPerInstantThreadPool", 2);
- L2WALKER_PROTECTION = options.getProperty("L2WalkerProtection", false);
- ZONE_TOWN = options.getProperty("ZoneTown", 0);
- SERVER_NEWS = options.getProperty("ShowServerNews", false);
- DISABLE_TUTORIAL = options.getProperty("DisableTutorial", false);
- USE_SAY_FILTER = Boolean.parseBoolean(options.getProperty("UseChatFilter", "false"));
- CHAT_FILTER_CHARS = options.getProperty("ChatFilterChars", "[I love L2JMDS]");
- CHAT_FILTER_PUNISHMENT = options.getProperty("ChatFilterPunishment", "off");
- CHAT_FILTER_PUNISHMENT_PARAM1 = Integer.parseInt(options.getProperty("ChatFilterPunishmentParam1", "1"));
- CHAT_FILTER_PUNISHMENT_PARAM2 = Integer.parseInt(options.getProperty("ChatFilterPunishmentParam2", "1000"));
- LineNumberReader lnr = null;
- try
- {
- FILTER_LIST.clear();
- File filter_file = new File(FILTER_FILE);
- if (!filter_file.exists())
- {
- return;
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero15days.java
- index 65f96c9..ca5713b 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero15days.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero15days.java
- @@ -88,58 +88,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().updateHero(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().addHero(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = HeroManager.getInstance().getHeroDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero24h.java
- index ba73b64..77e2f5a 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero24h.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero24h.java
- @@ -88,58 +88,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().updateHero(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().addHero(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = HeroManager.getInstance().getHeroDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero30days.java
- index eb2ab3b..7892642 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero30days.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero30days.java
- @@ -90,56 +90,56 @@
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().updateHero(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- if (mes >= 30)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().addHero(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = HeroManager.getInstance().getHeroDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero7days.java
- index 6e44b07..7449215 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero7days.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/hero/Hero7days.java
- @@ -88,58 +88,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().updateHero(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- HeroManager.getInstance().addHero(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = HeroManager.getInstance().getHeroDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip15days.java
- index 1c954e3..45107c3 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip15days.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip15days.java
- @@ -89,58 +89,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().updateVip(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().addVip(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = VipManager.getInstance().getVipDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip24h.java
- index 49136a9..378be16 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip24h.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip24h.java
- @@ -89,58 +89,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().updateVip(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().addVip(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = VipManager.getInstance().getVipDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip30days.java
- index 3d30c65..f640bd3 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip30days.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip30days.java
- @@ -89,58 +89,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().updateVip(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().addVip(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = VipManager.getInstance().getVipDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip7days.java
- index 812c47c..b545b9d 100644
- --- java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip7days.java
- +++ java/com/l2jmega/gameserver/handler/itemhandlers/vip/Vip7days.java
- @@ -89,58 +89,58 @@
- calendar.roll(Calendar.MONTH, true);
- if (calendar.get(Calendar.DATE) == 30)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- _daysleft--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().updateVip(activeChar.getObjectId(), end_day);
- }
- else
- {
- long end_day;
- final Calendar calendar = Calendar.getInstance();
- - if (mes >= 30)
- + if (mes >= 31)
- {
- - while (mes >= 30)
- + while (mes >= 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- - mes -= 30;
- + mes -= 31;
- }
- }
- - if (mes < 30 && mes > 0)
- + if (mes < 31 && mes > 0)
- {
- while (mes > 0)
- {
- if (calendar.get(Calendar.DATE) == 28 && calendar.get(Calendar.MONTH) == 1)
- calendar.roll(Calendar.MONTH, true);
- - if (calendar.get(Calendar.DATE) == 30)
- + if (calendar.get(Calendar.DATE) == 31)
- {
- if (calendar.get(Calendar.MONTH) == 11)
- calendar.roll(Calendar.YEAR, true);
- calendar.roll(Calendar.MONTH, true);
- }
- calendar.roll(Calendar.DATE, true);
- mes--;
- }
- }
- end_day = calendar.getTimeInMillis();
- VipManager.getInstance().addVip(activeChar.getObjectId(), end_day);
- }
- long _daysleft;
- final long now = Calendar.getInstance().getTimeInMillis();
- long duration = VipManager.getInstance().getVipDuration(activeChar.getObjectId());
- final long endDay = duration;
- _daysleft = ((endDay - now) / 86400000);
- diff --git java/com/l2jmega/gameserver/model/actor/Creature.java
- index aabe628..c556ccf 100644
- --- java/com/l2jmega/gameserver/model/actor/Creature.java
- +++ java/com/l2jmega/gameserver/model/actor/Creature.java
- @@ -1290,41 +1290,40 @@
- if (skill.getSkillType() == L2SkillType.FUSION)
- startFusionSkill(target, skill);
- else
- callSkill(skill, targets);
- }
- // Get the Display Identifier for a skill that client can't display
- int displayId = skill.getId();
- // Get the level of the skill
- int level = skill.getLevel();
- if (level < 1)
- level = 1;
- // Broadcast MagicSkillUse for non toggle skills.
- if (!skill.isToggle())
- {
- if (!skill.isPotion())
- {
- - if (!(skill.isHeroSkill()))
- broadcastPacket(new MagicSkillUse(this, target, displayId, level, skillTime, reuseDelay, false));
- broadcastPacket(new MagicSkillLaunched(this, displayId, level, (targets == null || targets.length == 0) ? new WorldObject[]
- {
- target
- } : targets));
- }
- else
- broadcastPacket(new MagicSkillUse(this, target, displayId, level, 0, 0));
- }
- if (this instanceof Playable)
- {
- // Send a system message USE_S1 to the Creature
- if (this instanceof Player && skill.getId() != 1312 && skill.getId() != 2099)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_S1);
- sm.addSkillName(skill);
- sendPacket(sm);
- }
- diff --git java/config/main/options.ini java/config/main/options.ini
- index 7609fe7..05c2b05 100644
- --- java/config/main/options.ini
- +++ java/config/main/options.ini
- @@ -125,56 +125,40 @@
- # =================================================================
- # Flood Protectors
- # =================================================================
- # Os valores são mostrados em ms. Eles podem ser definidos como 0 para serem desativados.
- RollDiceTime = 4200
- HeroVoiceTime = 0
- SubclassTime = 2000
- DropItemTime = 1000
- ServerBypassTime = 500
- MultisellTime = 100
- ManufactureTime = 300
- ManorTime = 3000
- SendMailTime = 10000
- CharacterSelectTime = 3000
- GlobalChatTime = 0
- TradeChatTime = 0
- SocialTime = 2000
- -# =================================================================
- -# Threadpool
- -# =================================================================
- -
- -# Determina a quantidade de conjuntos de threads agendados. Se definido como -1, o servidor decidirá a quantidade dependendo dos processadores disponíveis.
- -ScheduledThreadPoolCount = -1
- -
- -# Especifica quantos threads estarão em um único pool agendado.
- -ThreadsPerScheduledThreadPool = 750
- -
- -# Determina a quantidade de pools de threads instantâneos. Se definido como -1, o servidor decidirá a quantidade dependendo dos processadores disponíveis.
- -InstantThreadPoolCount = -1
- -
- -# Especifica quantos threads estarão em um único pool instantâneo.
- -ThreadsPerInstantThreadPool = 8
- # =================================================================
- # Misc
- # =================================================================
- # Proteção básica contra L2Walker.
- L2WalkerProtection = False
- # Configuração de zona.
- # 0 = Paz o tempo todo
- # 1 = PVP durante a siege para os participantes da siege
- # 2 = PVP o tempo todo
- ZoneTown = 0
- # Mostra "data / html / servnews.htm" quando um personagem faz o login.
- ShowServerNews = false
- # Desative o tutorial na entrada do jogo para um novo jogador. Padrão: false.
- DisableTutorial = true
- # --------------------------------
- # Chat Filter System -
Add Comment
Please, Sign In to add comment