Jump to content

xtremex

Members
  • Posts

    129
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by xtremex

  1. unique advanced faction system we got a base, that mean is no the same engine.. anyway that is your point ok.. i respect it
  2. how do you know if no advanced? if the server is offline and you do not even play it
  3. We changed of hoster and we will stay online soon! please stay pending
  4. We got a strong Attack who shutdown our websites, we hope a fast fix for that. We have anti hack system and anti Ddos attack, but we do not know shutdown our server connection. sorry for any disadvantages. I hope all you come when we are online
  5. I can't understand nothing, god is full russian, why post here? ohh use a translator and later post
  6. Total agreged with you Versus, we need the DB Part.
  7. L2J are best and the users are the best too!! thanks for these great share but we need the DB part!
  8. very nice share, good job leluche.. good idea
  9. you are right, maybe he is not a scammer, but he only said that why I only offer him 5$
  10. I do not want prove nothing! OMG I'm just warning about that guy! I forgot add something in my previous post.. I asked him how much for the mod? he told me what can I offer? I asked again how much is the price and you are wasting my time I offer him 5$ only to know the attitude how he can answer! and see the bad works. About you Setekn.. what is my immaturity? with you respect YOU DO NOT KNOW ME! I do not try to fool here, I only do not want spammers and scammers here for the sake of MXC. they do not help anyone. only want money, like so much people here. l2j is GNU that word say to much ;)
  11. do not trust in these guy. he is scammer. I made a simple question about the price and offer him money and see what he said. I asked him how much for the mod? he told me what can I offer? I asked again how much is the price and you are wasting my time did I offer 5$ only to know the attitude how he can answer! Here is the proof: sorry for the before text in conversation but I closed by mistake. One moderator close these topic. Be cautious and careful with this guy!
  12. he is newbie here and I made a complete explaination, if you do not like it, do not post
  13. maybe is the htm code. open the htm file with a text editor like notepad++ and check if the code is writen bad
  14. sorry I mean leech that java code ;) I know is GNU lol! merry christmas :)
  15. what permission? this is a fake pack, if was the real why the owner do nothing to claim it? lol, that is to call atention and win karma check by yourself
  16. If you enter in world, why do you need get spawn to the faction base? lol! that can lag your sever if one ppl need fight if the worlds change. must make unstuck. I told you because server crash with that
  17. these forum is not for advertising.. is for SHARE
  18. Thank you for the feedback, I was think that when I made that topic
  19. sorry coyote, I only want help the new interlude developers with that share. maybe to other clean l2joff interlude pack need it ;) merry christmas brother!
  20. good luck tryskell, you like work ;)
  21. Hello to all MxC users. this forum really helped me so much about l2j and learn to code in java :) thanks everyone for share and is why I want to give a CHRISTMAS gift ;D : a small patch but is useful for many new and old l2j developers I took from l2joneo interlude version and I create a patch to L2J last Interlude Revision so? leech me: Index: java/config/l2jmods.properties =================================================================== --- java/config/l2jmods.properties (revision 4430) +++ java/config/l2jmods.properties (working copy) @@ -132,3 +132,16 @@ # ex.: 1;2;3;4;5;6 # no ";" at the start or end TvTEventDoorsCloseOpenOnStartEnd = + +#--------------------------------------------------------------- +# Skill Customizations - +#--------------------------------------------------------------- +# Enable to modify skill duration data +EnableModifySkillDuration = false +# Skill duration list +# Format : skillid,newtime;skillid,newtime.... +# Example : this enable 1h(3600) duration for songs +# SkillDurationList = 264,3600;265,3600;266,3600;267,3600;268,3600;\ +# 269,3600;270,3600;304,3600;305,1200;306,3600;308,3600;349,3600;\ +# 363,3600;364,3600 +SkillDurationList = \ No newline at end of file Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 4430) +++ java/net/sf/l2j/Config.java (working copy) @@ -25,10 +25,12 @@ import java.io.OutputStream; import java.math.BigInteger; import java.util.List; +import java.util.Map; import java.util.Properties; import java.util.logging.Logger; import javolution.util.FastList; +import javolution.util.FastMap; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; /** @@ -882,7 +884,12 @@ public static boolean L2JMOD_WEDDING_FORMALWEAR; public static int L2JMOD_WEDDING_DIVORCE_COSTS; - // Packet information + /** Enable skill duration mod */ + public static boolean ENABLE_MODIFY_SKILL_DURATION; + public static Map<Integer, Integer> SKILL_DURATION_LIST; + public static int MODIFIED_SKILL_COUNT; + + // Packet information /** Count the amount of packets per minute ? */ public static boolean COUNT_PACKETS = false; /** Dump packet count ? */ @@ -1858,7 +1865,37 @@ L2JMOD_WEDDING_SAMESEX = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False")); L2JMOD_WEDDING_FORMALWEAR = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True")); L2JMOD_WEDDING_DIVORCE_COSTS = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20")); - + ENABLE_MODIFY_SKILL_DURATION = Boolean.valueOf(L2JModSettings.getProperty("EnableModifySkillDuration", "false")); + + if (ENABLE_MODIFY_SKILL_DURATION) + { + SKILL_DURATION_LIST = new FastMap<Integer, Integer>(); + String[] propertySplit; + propertySplit = L2JModSettings.getProperty("SkillDurationList", "").split(";"); + for (String skill : propertySplit) + { + String[] skillSplit = skill.split(","); + if (skillSplit.length != 2) + { + System.out.println("[skillDurationList]: invalid config property -> SkillDurationList \"" + skill + "\""); + } + else + { + try + { + SKILL_DURATION_LIST.put(Integer.valueOf(skillSplit[0]), Integer.valueOf(skillSplit[1])); + } + catch (NumberFormatException nfe) + { + if (!skill.equals("")) + { + System.out.println("[skillDurationList]: invalid config property -> SkillList \"" + skillSplit[0] + "\"" + skillSplit[1]); + } + } + } + } + } + if (TVT_EVENT_PARTICIPATION_NPC_ID == 0) { TVT_EVENT_ENABLED = false; Index: java/net/sf/l2j/gameserver/skills/DocumentBase.java =================================================================== --- java/net/sf/l2j/gameserver/skills/DocumentBase.java (revision 4430) +++ java/net/sf/l2j/gameserver/skills/DocumentBase.java (working copy) @@ -30,6 +30,7 @@ import javolution.text.TextBuilder; import javolution.util.FastList; import javolution.util.FastMap; +import net.sf.l2j.Config; import net.sf.l2j.gameserver.datatables.SkillTable; import net.sf.l2j.gameserver.model.L2Character; import net.sf.l2j.gameserver.model.L2Skill; @@ -206,6 +207,29 @@ if (attrs.getNamedItem("time") != null) { time = Integer.decode(getValue(attrs.getNamedItem("time").getNodeValue(),template)); + if (Config.ENABLE_MODIFY_SKILL_DURATION) + { + if (Config.SKILL_DURATION_LIST.containsKey(((L2Skill) template).getId())) + { + if (((L2Skill) template).getLevel() < 100) + { + time = Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId()); + } + else if ((((L2Skill) template).getLevel() >= 100) && (((L2Skill) template).getLevel() < 140)) + { + time += Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId()); + } + else if (((L2Skill) template).getLevel() > 140) + { + time = Config.SKILL_DURATION_LIST.get(((L2Skill) template).getId()); + } + if (Config.DEBUG) + { + _log.info("*** Skill " + ((L2Skill) template).getName() + " (" + ((L2Skill) template).getLevel() + ") changed duration to " + time + " seconds."); + } + Config.MODIFIED_SKILL_COUNT += 1; + } + } } else time = ((L2Skill) template).getBuffDuration() / 1000 / count; boolean self = false; Credits: L2JOneo and Me (DarknightMarE) for stolen or borrow and test the code 8) Is working 100% I tested myself. MERRY CHRISTMAS and HAPPY NEW YEAR
  22. that pack is not good, have full java mistake
  23. very nice share, thank you
×
×
  • Create New...