Jump to content

Recommended Posts

  • 2 weeks later...
  • 2 weeks later...
Posted

Well this mod adds a custom skill if the player has X pvp kills :)

 

L2PcInstance.java

Find this

IncreasePvPKills;

NOTE!: There are 2 increases for pvp's .. One is for war ,other is not ,we need the one who's not ,so the first one:)

and after it add a new line and then

			if (getPvpKills() == Config.PVP_CUSTOM_SKILL_P && getKnownSkill(Config.PVP_CUSTOM_SKILL_ID) == null && Config.PVP_CUSTOM_SKILL)
			  addSkill(SkillTable.getInstance().getInfo(Config.PVP_CUSTOM_SKILL_ID, Config.PVP_CUSTOM_SKILL_LV));

Close & save.

Go to Config.java

find

LIFE_CRYSTAL_NEEDED = Boolean.parseBoolean(altSettings.getProperty("LifeCrystalNeeded", "True"));

after it insert

PVP_CUSTOM_SKILL = Boolean.parseBoolean(altSettings.getProperty("PvPCustomSkill", "False"));
PVP_CUSTOM_SKILL_P	= Integer.parseInt(altSettings.getProperty("PvPCustomSkillPoint", "0"));
PVP_CUSTOM_SKILL_ID	= Integer.parseInt(altSettings.getProperty("PvPCustomSkillID", "0"));
PVP_CUSTOM_SKILL_LV	= Integer.parseInt(altSettings.getProperty("PvPCustomSkillLV", "0"));

 

find

	public static boolean AUTO_LEARN_SKILLS;

and insert below it

	public static boolean 	PVP_CUSTOM_SKILL; /** Custom PvP skill */
public static int 	PVP_CUSTOM_SKILL_ID; /** Custom PvP skill ID */
public static int 	PVP_CUSTOM_SKILL_LV; /** Custom PvP skill Level */
public static int 	PVP_CUSTOM_SKILL_P; /** Custom PvP skill Points */

 

And finaly in the altSettings.properties file

find

AutoLearnSkills = True

make a new line and copy/paste this

#==============================================================
#       Custom PvP Skill Configuration                        =
#==============================================================

#Should we put it on?
PvPCustomSkill = True

#The skill ID that will be added to players 
PvPCustomSkillID = 200

#What level the skill will be?
PvPCustomSkillLV = 2

#How much points the player need to get it?
PvPCustomSkillPoint = 0

 

Its my first creation ,tested and it works on Interlude.For gracia+ tell me i`ll make it for it too ^^ I`m just a IL lover :)

Hope i wont be criticized so much ,afterall its my first java mod ^^ Hope you like it ,thanks for reading.

P.S. A special thanks to NB4L1 who helped me with this mod :) Cheerz!

 

Edited : Updated.Changed some values to the proper one & config file fixed.

 

 

please someone will have the java file for l2jserver ct2 already configured it for me, for I can not and does not edit :(

Sorry for mi inglish :)

 

 

Spanish

por favor alguien tendra el archivo java para l2jserver ct2 ya configurado para que me lo pase?, por que no puedo y no se editar :(

Guest
This topic is now closed to further replies.



  • Posts

    • Discord         :  utchiha_market Telegram        : https://t.me/utchiha_market  
    • HELLO EVERYONE. WE ARE SELLING A LOT OF ADENA ON L2 REBORN / E-Global x Lu4 DISCORD - GODDARDSHOP   HURRY TO BUY OR YOU MAY NOT MAKE IT!!!
    • Added: 🎁 Seasonal Bonus System When the seasonal bonus is enabled, players receive additional bonus coins equal to bonus_season_percent of their donation amount. 💡 How it works (example): A player donates through their personal account and immediately receives regular coins. At the same time, bonus coins equal to 30% of the donation are credited. Example: Donation: 1000 coins → Bonus: 300 coins (30%) These bonus coins are not available immediately — they can be claimed later when the next season begins. 📅 When the bonus can be claimed: bonus_season_claim_start_date – the date when the "Claim" button becomes available. bonus_season_claim_end_date – the date after which the bonus can no longer be claimed. During this time window, the "Claim" button will appear in the personal account, allowing players to collect their accumulated bonus. 'bonus_season_enabled' => true, // Enable/disable the seasonal bonus system 'bonus_season_percent' => 30, // Percentage of the donation to be given as bonus coins (30 = 30%) 'bonus_season_claim_start_date' => '2025-07-30 00:00:00', // Date when the Claim button becomes available in the new season   'bonus_season_enabled' => true, // Вкл./Выкл Сезонную бонусную систему? 'bonus_season_percent' => 30, // Процент, при донате получает монеты в процентах 30 = 30%, которые может использовать в следующем открытии 'bonus_season_claim_start_date' => '2025-07-30 00:00:00', // Дата когда доступна кнопка Claim в новом сезоне 'bonus_season_claim_end_date' => '2025-08-15 20:00:00', // Дата окончания когда кнопка Claim в новом сезоне
  • Topics

×
×
  • Create New...

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