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

    • Do you want stability? Lagless and bugless game? Instant support? Daily PVP? Long-Term playing? You are in the right place, time to start! Lineage2 X70 Interlude NEW Season 2025 February 8th 13:00 UTC+2 Greece/Lithuania: 13:00 UTC+2 Poland/Norway: 12:00 UTC+1 United Kingdom: 11:00 UTC+0 Brazil/Argentina: 8:00 UTC-3 Opening Bonus First 100 players after third class changing will automaticly get Premium Coin award in their inventory. All new players spawn in town of Gludio! All players start from 25 LvL with starter pack (adenas and equipment)! RATES XP: x70 | SP: x70 Party XP/ SP: x1.2 Adenas drop rate: x30 Drop Items: x25 | Spoil: x25 Drop SealStones rate: x1.2 Drop Manor rate: x1 Drop Quest rate: x5 | Reward rates: x2 (NOT FOR ALL) Raid Boss Drop: x10 Raid Boss Adenas Drop: x3 Grand Boss Drop: x1 Grand Boss Adenas Drop: x2 Information NPC Buffer 32 Buffs | 4 Debuffs PET Buffer for all classes [Except Necromancer] Scheme buffer: 3 Profiles. Buffs time: 2 Hours | Summons buffs - 60min. Global Gatekeeper. GM SHOP till weapon / armor / jewel B grade. Caradine letter 3rd part in GM Shop. Offline shop: SELL , PRIVATE CREATION , PACKAGE SALE from 35 LvL ! Mana potions: 500MP/2s. Spawn Protection: 20 Seconds. EVENTS Manager [TVT/DM]. Max Clients for one PC: 5 Rift | 4S Players: 3 Maximum inventory slots: 240 Maximum inventory slots for Dwarf: 250 Custom drop list: - Raid Boss Horus, Ember, Brakki, Nakondas: 1 VIP COIN (25%) | Korim (50%). - Raid Boss Apepi, Shacram, Atraiban, Korim: 1 BEWS (25%). - Raid Boss Glaki, Olkuth: 1-2 BEAS (40%). - Raid Boss Golkonda, Galaxia: 1-3 BEAS (60%). - Raid Boss Shyeed: 1-3 BEWS (30%) | 1-7 BEAS (40%) | 1-5 TOP LS 76 (50%). - Raid Boss Shuriel: 1-7 TOP LS 76 (50%) | 1-4 BEAS (60%). - Raid Boss Ashakiel: 1-2 BEWS (30%) | 1-7 TOP LS 76 (50%) | 1-4 BEAS (75%). - Raid Boss Antharas Priest Cloe: 1-3 BEWS (30%) | 1-7 TOP LS 76 (70%). ------------------------------------------------ - Hestia: Demon Splinters / Forgotten Blande (10%). - Ember: Arcana Mace / Draconic Bow (10%). - Galaxia: Angel Slayer / Heaven's Divider (10%). 1. Baium Lair and TOI 13/14 are PVP zones. 2. Valakas PVP zone near NPC "Klein" and inside Valakas room. 3. Antharas Lair and near "Heart Of Warding" are PVP zones. 4. Frintezza PVP zone is in first Imperial Tomb room. 5. Queen Ant PVP zone after the bridge and near Boss. 6. Zaken ship deck and rooms - PVP area. How to connect STEP BY STEP: 1. Install clear Lineage2 Interlude client 2. Download our patch, delete old system folder and add our 3. Delete, turn off anti virus or add our system folder to anti virus exceptions 4. Run l2.exe from Lineage2/system 5. Enter data on login window and enjoy the game! * You have to remove, turn off or use exceptions of antivirus because of our security protection. It is not a virus. * If you have connection issues with Windows 8 or 10, press right mouse button on l2.exe icon, press Properties, choose compatibility and unmark compatibility mode. Take your friends, clan, alliance, enemys, sharp your swords, clean your armors and meet your destiny at 2025 February 8th 13:00 UTC+2! WWW.L2BLAZE.NET INTERLUDE Empire X70 New Season: 2025 February 8th 13:00 UTC+2! WEBSITE: http://WWW.L2BLAZE.NET
    • Hello all,  i use L2jAcis 409 and i have problem with oly cycle, everyday is a different oly cycle and oly won't finish at the end of the month...almost 50 cycles and no end. I see oly matches in db but no points and after a day pass with /olympiadstat no points... Any help welcome, thank you.
    • Bump NEW USER IN TELEGRAM AND DISCORD IS "mileanum"  NEW USER IN TELEGRAM AND DISCORD IS "mileanum"  NEW USER IN TELEGRAM AND DISCORD IS "mileanum" NEW USER IN TELEGRAM AND DISCORD IS "mileanum" 
  • Topics

×
×
  • Create New...