Index: config/custom.properties
===================================================================
--- config/custom.properties (revision 2)
+++ config/custom.properties (working copy)
@@ -81,4 +81,9 @@
QuizEventTime = 10,20
# Quiz event questions.
# Must be set like: question,answer,rewardid,rewardcount;question,answer,rewardid,rewardcount;
-QuizEventQuestions = Who created this event?,Anarchy,3470,5;What is the name of this server?,L2Server,57,100000000;
\ No newline at end of file
+QuizEventQuestions = Who created this event?,Anarchy,3470,5;What is the name of this server?,L2Server,57,100000000;
+
+# Custom pvp skills.
+AllowPvpSkills = False
+# Custom pvp skills list. (like: pvpsneeded,skillid;pvpsneeded,skillid;
+PvpSkillsList = 100,3100;
\ No newline at end of file
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 6)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy)
@@ -4851,6 +4851,18 @@
// Add karma to attacker and increase its PK counter
setPvpKills(getPvpKills() + 1);
+ if (Config.ALLOW_PVP_SKILLS)
+ {
+ for (int i : Config.PVP_SKILLS_LIST.keySet())
+ {
+ if (getPvpKills() == i)
+ {
+ addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILLS_LIST.get(i), SkillTable.getInstance().getMaxLevel(Config.PVP_SKILLS_LIST.get(i))), true);
+ break;
+ }
+ }
+ }
+
// Increase the attacker's killing points by one.
setKillingPoints(getKillingPoints() + 1);
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java (revision 2)
+++ java/net/sf/l2j/Config.java (working copy)
@@ -745,7 +745,9 @@
public static int[] QUIZ_EVENT_TIME = new int[2];
public static Map<Map<String, String>, Map<Integer, Integer>> QUIZ_EVENT_QUESTIONS = new FastMap<Map<String, String>, Map<Integer, Integer>>();
public static Map<String, String> QUIZ_EVENT_QUESTIONS_KEYSET = new FastMap<String, String>(); // Hidden variable.
-
+ public static boolean ALLOW_PVP_SKILLS;
+ public static Map<Integer, Integer> PVP_SKILLS_LIST = new FastMap<Integer, Integer>();
+
/**
* This class initializes all global variables for configuration.<br>
* If key doesn't appear in properties file, a default value is setting on by this class.
@@ -1550,6 +1552,14 @@
QUIZ_EVENT_QUESTIONS.put(string_map, int_map);
QUIZ_EVENT_QUESTIONS_KEYSET.put(quiz_event_questions_splitted_2[0], quiz_event_questions_splitted_2[1]);
}
+ ALLOW_PVP_SKILLS = Boolean.parseBoolean(elcardia.getProperty("AllowPvpSkills", "false"));
+ String PVP_SKILLS_LIST_VALUE = elcardia.getProperty("PvpSkillsList", "100,3100;");
+ String[] pvp_skills_list_splitted_1 = PVP_SKILLS_LIST_VALUE.split(";");
+ for (String i : pvp_skills_list_splitted_1)
+ {
+ String[] pvp_skills_list_splitted_2 = i.split(",");
+ PVP_SKILLS_LIST.put(Integer.parseInt(pvp_skills_list_splitted_2[0]), Integer.parseInt(pvp_skills_list_splitted_2[1]));
+ }
}
catch (Exception e)
{
re magkes auto edw pws ginete adapt sto l2jfrozen interlude*
Prospathisa alla den evgala akri an mporei kapoios na m to kanei prosarmogi i na m eksigisi pws to kanw thelw na mathw apla edw auto leei alla k dn katalavenw.. otan vazw ta ++ m vgazi pola X red
We are entering another season, the year 2026, which marks 20 years since the beginning of preparations for the first Chronicle server - Gracia Final.
The plans are the same as 20 years ago: to prepare a new generation of the game with the help of our edited game client, New Era.
There will be special new locations and dungeons for solo players and clans, clan quests and a clan shop, as well as special items and jewelry with attributes.
Enjoy the game at Dark Dragon
https://www.darkdragon.club/wp-content/uploads/2025/12/Dark_Dragon_login_New_Era.mp4
Coming soon — New Year promotions across the entire SOCNET ecosystem
We are preparing special offers, bonuses, and surprises across all our projects.
Follow updates on our social media — you definitely don’t want to miss them.
News:
➡ Telegram channel: https://t.me/accsforyou_shop
➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t
➡ Discord server: https://discord.gg/y9AStFFsrh
Coming soon — New Year promotions across the entire SOCNET ecosystem
We are preparing special offers, bonuses, and surprises across all our projects.
Follow updates on our social media — you definitely don’t want to miss them.
News:
➡ Telegram channel: https://t.me/accsforyou_shop
➡ WhatsApp channel: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t
➡ Discord server: https://discord.gg/y9AStFFsrh
We are looking for partners and account suppliers for cooperation
We are open to partnerships with reliable account suppliers for the following services:
➡ Tinder
➡ Badoo
➡ Bumble
➡ Hinge
➡ Happn
➡ Meetic
➡ VK Dating
➡ LINE
➡ Snapchat
➡ Reddit
➡ LinkedIn
➡ Instagram
➡ Facebook
➡ Threads
➡ Google ADS
➡ E-mails
➡ WhatsApp
➡ Twitter
We are considering long-term cooperation, stable volumes, and mutually beneficial terms.
If you have any offers — we will be glad to discuss the details.
Contact us using the details below.
➡ Telegram: https://t.me/socnet_support
➡ WhatsApp: https://wa.me/79051904467
➡ Discord: socnet_support
➡ ✉ Email: solomonbog@socnet.store
Question
GsL
Index: config/custom.properties =================================================================== --- config/custom.properties (revision 2) +++ config/custom.properties (working copy) @@ -81,4 +81,9 @@ QuizEventTime = 10,20 # Quiz event questions. # Must be set like: question,answer,rewardid,rewardcount;question,answer,rewardid,rewardcount; -QuizEventQuestions = Who created this event?,Anarchy,3470,5;What is the name of this server?,L2Server,57,100000000; \ No newline at end of file +QuizEventQuestions = Who created this event?,Anarchy,3470,5;What is the name of this server?,L2Server,57,100000000; + +# Custom pvp skills. +AllowPvpSkills = False +# Custom pvp skills list. (like: pvpsneeded,skillid;pvpsneeded,skillid; +PvpSkillsList = 100,3100; \ No newline at end of file Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (revision 6) +++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -4851,6 +4851,18 @@ // Add karma to attacker and increase its PK counter setPvpKills(getPvpKills() + 1); + if (Config.ALLOW_PVP_SKILLS) + { + for (int i : Config.PVP_SKILLS_LIST.keySet()) + { + if (getPvpKills() == i) + { + addSkill(SkillTable.getInstance().getInfo(Config.PVP_SKILLS_LIST.get(i), SkillTable.getInstance().getMaxLevel(Config.PVP_SKILLS_LIST.get(i))), true); + break; + } + } + } + // Increase the attacker's killing points by one. setKillingPoints(getKillingPoints() + 1); Index: java/net/sf/l2j/Config.java =================================================================== --- java/net/sf/l2j/Config.java (revision 2) +++ java/net/sf/l2j/Config.java (working copy) @@ -745,7 +745,9 @@ public static int[] QUIZ_EVENT_TIME = new int[2]; public static Map<Map<String, String>, Map<Integer, Integer>> QUIZ_EVENT_QUESTIONS = new FastMap<Map<String, String>, Map<Integer, Integer>>(); public static Map<String, String> QUIZ_EVENT_QUESTIONS_KEYSET = new FastMap<String, String>(); // Hidden variable. - + public static boolean ALLOW_PVP_SKILLS; + public static Map<Integer, Integer> PVP_SKILLS_LIST = new FastMap<Integer, Integer>(); + /** * This class initializes all global variables for configuration.<br> * If key doesn't appear in properties file, a default value is setting on by this class. @@ -1550,6 +1552,14 @@ QUIZ_EVENT_QUESTIONS.put(string_map, int_map); QUIZ_EVENT_QUESTIONS_KEYSET.put(quiz_event_questions_splitted_2[0], quiz_event_questions_splitted_2[1]); } + ALLOW_PVP_SKILLS = Boolean.parseBoolean(elcardia.getProperty("AllowPvpSkills", "false")); + String PVP_SKILLS_LIST_VALUE = elcardia.getProperty("PvpSkillsList", "100,3100;"); + String[] pvp_skills_list_splitted_1 = PVP_SKILLS_LIST_VALUE.split(";"); + for (String i : pvp_skills_list_splitted_1) + { + String[] pvp_skills_list_splitted_2 = i.split(","); + PVP_SKILLS_LIST.put(Integer.parseInt(pvp_skills_list_splitted_2[0]), Integer.parseInt(pvp_skills_list_splitted_2[1])); + } } catch (Exception e) {re magkes auto edw pws ginete adapt sto l2jfrozen interlude*
Prospathisa alla den evgala akri an mporei kapoios na m to kanei prosarmogi i na m eksigisi pws to kanw thelw na mathw apla edw auto leei alla k dn katalavenw.. otan vazw ta ++ m vgazi pola X red
19 answers to this question
Recommended Posts