Jump to content

Recommended Posts

Posted

   1.
      Index: src/net/sf/l2j/Config.java
   2.
      ===================================================================
   3.
      --- src/net/sf/l2j/Config.java  (revision 117)
   4.
      +++ src/net/sf/l2j/Config.java  (working copy)
   5.
      @@ -870,6 +870,29 @@
   6.
           public static int L2JMOD_CHAMPION_REWARD_ID;
   7.
           public static int L2JMOD_CHAMPION_REWARD_QTY;
   8.
           
   9.
      +    /** Custom Title for PvPs */
  10.
      +    public static boolean PVP_TITLE_SYSTEM_ENABLED;
  11.
      +    public static int PVP_AMOUNT1;
  12.
      +    public static int PVP_AMOUNT2;
  13.
      +    public static int PVP_AMOUNT3;
  14.
      +    public static int PVP_AMOUNT4;
  15.
      +    public static int PVP_AMOUNT5;
  16.
      +    public static int PVP_AMOUNT6;
  17.
      +    public static int PVP_AMOUNT7;
  18.
      +    public static int PVP_AMOUNT8;
  19.
      +    public static int PVP_AMOUNT9;
  20.
      +    public static int PVP_AMOUNT10;
  21.
      +    public static String TITLE_FOR_PVP_AMOUNT1;
  22.
      +    public static String TITLE_FOR_PVP_AMOUNT2;
  23.
      +    public static String TITLE_FOR_PVP_AMOUNT3;
  24.
      +    public static String TITLE_FOR_PVP_AMOUNT4;
  25.
      +    public static String TITLE_FOR_PVP_AMOUNT5;
  26.
      +    public static String TITLE_FOR_PVP_AMOUNT6;
  27.
      +    public static String TITLE_FOR_PVP_AMOUNT7;
  28.
      +    public static String TITLE_FOR_PVP_AMOUNT8;
  29.
      +    public static String TITLE_FOR_PVP_AMOUNT9;
  30.
      +    public static String TITLE_FOR_PVP_AMOUNT10;
  31.
      +    
  32.
           public static boolean USE_CR_ITEM;
  33.
           public static int CR_ITEM_MIN_CLAN_LVL;
  34.
           public static int CR_ITEM_REPS_TO_BE_AWARDED;
  35.
      @@ -2069,6 +2092,29 @@
  36.
                       L2JMOD_CHAMPION_REWARD_ID             = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemID", "6393"));
  37.
                       L2JMOD_CHAMPION_REWARD_QTY            = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemQty", "1"));
  38.
       
  39.
      +                /** Custom Title for PvPs */
  40.
      +                PVP_TITLE_SYSTEM_ENABLED               = Boolean.parseBoolean(L2JModSettings.getProperty("EnableCustomTitleSystem", "false"));
  41.
      +                PVP_AMOUNT1                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount1", "0"));
  42.
      +                PVP_AMOUNT2                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount2", "0"));
  43.
      +                PVP_AMOUNT3                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount3", "0"));
  44.
      +                PVP_AMOUNT4                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount4", "0"));
  45.
      +                PVP_AMOUNT5                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount5", "0"));
  46.
      +                PVP_AMOUNT6                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount6", "0"));
  47.
      +                PVP_AMOUNT7                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount7", "0"));
  48.
      +                PVP_AMOUNT8                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount8", "0"));
  49.
      +                PVP_AMOUNT9                    = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount9", "0"));
  50.
      +                PVP_AMOUNT10           = Integer.parseInt(L2JModSettings.getProperty("PvPsAmmount10", "0"));
  51.
      +                TITLE_FOR_PVP_AMOUNT1          = L2JModSettings.getProperty("TitleForAmmount1", "something");
  52.
      +                TITLE_FOR_PVP_AMOUNT2          = L2JModSettings.getProperty("TitleForAmmount2", "something");
  53.
      +                TITLE_FOR_PVP_AMOUNT3          = L2JModSettings.getProperty("TitleForAmmount3", "something");
  54.
      +                TITLE_FOR_PVP_AMOUNT4          = L2JModSettings.getProperty("TitleForAmmount4", "something");
  55.
      +                TITLE_FOR_PVP_AMOUNT5          = L2JModSettings.getProperty("TitleForAmmount5", "something");
  56.
      +                TITLE_FOR_PVP_AMOUNT6          = L2JModSettings.getProperty("TitleForAmmount6", "something");
  57.
      +                TITLE_FOR_PVP_AMOUNT7          = L2JModSettings.getProperty("TitleForAmmount7", "something");
  58.
      +                TITLE_FOR_PVP_AMOUNT8          = L2JModSettings.getProperty("TitleForAmmount8", "something");
  59.
      +                TITLE_FOR_PVP_AMOUNT9          = L2JModSettings.getProperty("TitleForAmmount9", "something");
  60.
      +                TITLE_FOR_PVP_AMOUNT10         = L2JModSettings.getProperty("TitleForAmmount10", "something");
  61.
      +                
  62.
                       USE_CR_ITEM = Boolean.parseBoolean(L2JModSettings.getProperty("EnableTheClanRepPointsItem", "False"));
  63.
                       CR_ITEM_MIN_CLAN_LVL = Integer.parseInt(L2JModSettings.getProperty("ClanLevelNeededForCR", "7"));
  64.
                       CR_ITEM_REPS_TO_BE_AWARDED = Integer.parseInt(L2JModSettings.getProperty("HowManyClanRepsToGive", "500"));
  65.
      Index: src/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
  66.
      ===================================================================
  67.
      --- src/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (revision 117)
  68.
      +++ src/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
  69.
      @@ -3799,6 +3799,57 @@
  70.
               }
  71.
              }
  72.
             
  73.
      +       public void updatePvpRelatedStuff(int pvpKillAmount)
  74.
      +       {
  75.
      +               if (Config.PVP_TITLE_SYSTEM_ENABLED)
  76.
      +               {
  77.
      +                       if (isGM())
  78.
      +                               return;
  79.
      +                       {
  80.
      +                               if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
  81.
      +                               {
  82.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT1);
  83.
      +                               }
  84.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
  85.
      +                               {
  86.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT2);
  87.
      +                               }
  88.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
  89.
      +                               {
  90.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT3);
  91.
      +                               }
  92.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
  93.
      +                               {
  94.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT4);
  95.
      +                               }
  96.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT5)) && (pvpKillAmount <= (Config.PVP_AMOUNT6)))
  97.
      +                               {
  98.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT5);
  99.
      +                               }
100.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT6)) && (pvpKillAmount <= (Config.PVP_AMOUNT7)))
101.
      +                               {
102.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT6);
103.
      +                               }
104.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT7)) && (pvpKillAmount <= (Config.PVP_AMOUNT8)))
105.
      +                               {
106.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT7);
107.
      +                               }
108.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT8)) && (pvpKillAmount <= (Config.PVP_AMOUNT9)))
109.
      +                               {
110.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT8);
111.
      +                               }
112.
      +                               else if ((pvpKillAmount >= (Config.PVP_AMOUNT9)) && (pvpKillAmount <= (Config.PVP_AMOUNT10)))
113.
      +                               {
114.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT9);
115.
      +                               }
116.
      +                               else if (pvpKillAmount >= (Config.PVP_AMOUNT10))
117.
      +                               {
118.
      +                                       setTitle(Config.TITLE_FOR_PVP_AMOUNT10);
119.
      +                               }
120.
      +                       }
121.
      +               }
122.
      +       }
123.
      +      
124.
              public void updateRanks(int pvpKillAmount)
125.
              {
126.
                              if (Config.ENABLE_RANKING_SYSTEM)
127.
      @@ -4992,6 +5043,12 @@
128.
               // Add karma to attacker and increase its PK counter
129.
               setPvpKills(getPvpKills() + 1);
130.
               
131.
      +        if (Config.PVP_TITLE_SYSTEM_ENABLED)
132.
      +        {
133.
      +               updatePvpRelatedStuff(getPvpKills());
134.
      +               broadcastUserInfo();
135.
      +        }
136.
      +        
137.
               if (Config.ENABLE_DOMINATION_SYSTEM)
138.
               {
139.
                      quakeSystem++;
140.
      Index: src/config/l2jmods.properties
141.
      ===================================================================
142.
      --- src/config/l2jmods.properties       (revision 117)
143.
      +++ src/config/l2jmods.properties       (working copy)
144.
      @@ -29,6 +29,46 @@
145.
       ChampionRewardItemQty = 1
146.
       
147.
       #---------------------------------------------------------------
148.
      +# PvPs Title (Like ranking) Change
149.
      +#---------------------------------------------------------------
150.
      +
151.
      +# Enable the sys?
152.
      +EnableCustomTitleSystem = False
153.
      +
154.
      +# Set the proper values below.
155.
      +# For each pvp ammount, set the proper title.
156.
      +
157.
      +PvPsAmmount1 = 10
158.
      +TitleForAmmount1 = something
159.
      +
160.
      +PvPsAmmount2 = 20
161.
      +TitleForAmmount2 = something
162.
      +
163.
      +PvPsAmmount3 = 30
164.
      +TitleForAmmount3 = something
165.
      +
166.
      +PvPsAmmount4 = 40
167.
      +TitleForAmmount4 = something
168.
      +
169.
      +PvPsAmmount5 = 50
170.
      +TitleForAmmount5 = something
171.
      +
172.
      +PvPsAmmount6 = 60
173.
      +TitleForAmmount6 = something
174.
      +
175.
      +PvPsAmmount7 = 70
176.
      +TitleForAmmount7 = something
177.
      +
178.
      +PvPsAmmount8 = 80
179.
      +TitleForAmmount8 = something
180.
      +
181.
      +PvPsAmmount9 = 90
182.
      +TitleForAmmount9 = something
183.
      +
184.
      +PvPsAmmount10 = 100
185.
      +TitleForAmmount10 = something
186.
      +
187.
      +#---------------------------------------------------------------
188.
       # Wedding System (by evill33t)                    
189.
       #---------------------------------------------------------------
190.
       #True Allows Wedding, False disables Wedding.
191.
      Index: src/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
192.
      ===================================================================
193.
      --- src/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java     (revision 117)
194.
      +++ src/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java     (working copy)
195.
      @@ -322,6 +322,11 @@
196.
                      Quest.playerEnter(activeChar);
197.
                      activeChar.sendPacket(new QuestList());
198.
                     
199.
      +               if (activeChar.getPvpKills()>=(Config.PVP_AMOUNT1) && (Config.PVP_TITLE_SYSTEM_ENABLED))
200.
      +               {
201.
      +                       activeChar.updatePvpRelatedStuff(activeChar.getPvpKills());
202.
      +               }
203.
      +              
204.
                      if (Config.ENABLE_RANKING_SYSTEM)
205.
                      {
206.
                              if (activeChar.getPvpKills()>=(Config.PVPS_NEEDED_FOR_INTERMEDIATE) && activeChar.getPvpKills()<(Config.PVPS_NEEDED_FOR_MASTER))

Credit: thanks Coyote™ for help me and me...

Posted

Credit: thanks Coyote™ for help me and me...

 

1) You didn't do anything, just c/p what I added on pastebin.

2) I'm bored of shares like, pvps = title or pvps = color and since I own the copyrights, Locked.

Guest
This topic is now closed to further replies.


  • Posts

    • I’ve played around with similar growth setups, and what usually makes the whole thing smoother is pairing them with something steady on the side. For example, I once used famoid.com for a small boost so the main profile didn’t look empty while the Mother/Child flow warmed up. Your themed accounts idea can work nicely as long as the profiles stay active and feel human enough to spark replies.
    • I never said that, can you read? Are you going to start an argument when that isn't the main goal of this post? Or are you just used to the same old discussion mechanics?     Thank you very much for your recommendation. A few months ago, I worked on a project called 'L2Avalon' using a compiled Lucera2 (it was the only thing the project leader provided me), and based on my 20 years of experience playing Lineage 2, I feel like it's broken everywhere, unless the specific version of Lucera I was using was just old. I don't have a problem coding and fixing things, but I am looking for a solid base so I don't do unnecessary work.   Replying to the first guy: I would never discredit paid work; obviously, any paid work will be better than a free one for obvious reasons. But my reality is that I don't want to throw money away, mainly because saving up a large sum of money is a matter of several months in my current situation here in Argentina.
    • I was not expecting either system to be mentioned but to update this information  itopz is a topsite VDSystem is a server vote system   as the creator i gave the vote system free but made mandatory to use my topsite https://github.com/nightw0lv/VDSystem download free, needs an extensive configuration and all java versions to be installed so it can befully be build, but only if you plan to maintain the full solution for all projects in case you want to use only 1 project you just copy the files for example frozen https://github.com/nightw0lv/VDSystem/tree/master/Interlude/Frozen copy paste inside your project, apply the patch of call the main class to gameserver.java and done.   note for active projects minor changes will probably be required   about the latest version hopzone.eu my other topsite is also required to have a server and get an api key same reason system is free, appriciate it. there is a huge difference that also extends as example in l2j Note to the topic owner @zambog420 lucera is also an option specially if you feel coding ready with intellij  
    • good service...recommend.
    • NEW SEASON GRAND OPENING FROM - 23 JANUARY 2026, FRIDAY, 20:00 +2 GMT !
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock