Jump to content
  • 0

[HELP] Pws kanw prosarmogi s ena code?


Question

Posted

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

 

Recommended Posts

  • 0
Posted

adapt απο τι σε τι;

 

από έναν τυχαίο κώδικα σε frozen;

 

Auton ton code p sas edwsa auton ph ti alages prp na kanw gia na doulepsi se frozen den vrisko kamia omiotita gt uparxei idi 1 code sto frozen gia tin Backstab kai dn vrisko kanena kino simio

 

to code p thelw na kanw adapt einai gia backstab na mpori n gini mono apo piso*

  • 0
Posted

ακού θα σου δώσω 2-3 συμβουλές.

 

να ξέρεις γενικά ότι αν ο κώδικας σου είναι φτιαγμένος πάνω σε IL τότε δεν θα έχει μεγάλες διαφορές απο project σε project,εκτός απο τα imports.(Μιλάμε πάντα για IL).

Σπάνια ίσως χρειαστεί να αλλάξει η μέθοδος απο project σε project(αυτό είναι αρκετά σπάνια,και όταν(άμα) συμβεί θα σου έχει το quick fix,οπότε μην πονοκεφαλιάζεις για αυτό).

Τώρα απο client σε client είναι πιο δύσκολα τα πράγματα,γιατί το 80% των μεθόδων αλλάζουν και τα imports 100%.

Αν δεις ότι όλα είναι οκ αλλά ο κώδικας δεν δουλεύει αφού τον έκανες adapt για άλλο client τότε κάτι έχεις κάνει λάθος.

 

αυτά πάνω κάτω.

  • 0
Posted

file s euxaristw gia tin prosoxi sou , paratirisa ligo kalutera ton code k ontos vrika ta koina simia den kserw ti eixa pathi k eixa kolisi s ena simio sto code k den evriska kanena koino simio patousa CNTL + F kai dn m evgaze tpt.. telos pantws kapoios tha eprpe na ekane kana guide  wste na helpari pola atoma kai pali euxaristw 

 

 

Parakalw min gini akoma akoma LOCK dioti mpori na exw kapoia erwtisi na kanw*

  • 0
Posted

πες μας που σου βγάζει λάθη,κανονικά δεν πρέπει να σου βγάζει μιας και αυτός ο κώδικας δεν θα έχει καμία διαφορά σε φροζεν,ειναι coded σε clean l2j..

  • 0
Posted

ode: [select]
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

 

 

auto den kserw pou na to perasw ta upolipa isws kataferw ... prin meres m eksigise ena filaraki pws na pernaw ta codes dld eimai sto akoma mathenw pws pernaw codes k peftw sta <<vathia>> me tin prosarmogi twra ..

  • 0
Posted

ode: [select]
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

 

 

auto den kserw pou na to perasw ta upolipa isws kataferw ... prin meres m eksigise ena filaraki pws na pernaw ta codes dld eimai sto akoma mathenw pws pernaw codes k peftw sta <<vathia>> me tin prosarmogi twra ..

sigoura aftos pou eftia3e to project 8a eixe orisi 1arxio .properties mesa ston fakelo config pou eki 8a topo8eti8oun ola ta custom mods bres to kai balta mesa
  • 0
Posted

ode: [select]
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

 

 

auto den kserw pou na to perasw ta upolipa isws kataferw ... prin meres m eksigise ena filaraki pws na pernaw ta codes dld eimai sto akoma mathenw pws pernaw codes k peftw sta <<vathia>> me tin prosarmogi twra ..

όπου θες το βάζεις(σε όποιο config(file) δηλαδή) απλά να κοιτάξεις να βάλεις και τις συγκεκρίμενες γραμμές του config.java(αυτού του κώδικα(δηλαδή τα ++ που έχει στο config.java)) κάτω απο τα αντίστοιχα config.

 

πιστεύω να κατάλαβες ><

  • 0
Posted

hmm kati eixa katalavei  o elfocrash exei enan same code gia frozen tha kanw kapoia sugkrisi k tha dw ti tha kanw elpizw na doulepsi*

  • 0
Posted

hmm kati eixa katalavei  o elfocrash exei enan same code gia frozen tha kanw kapoia sugkrisi k tha dw ti tha kanw elpizw na doulepsi*

δεν χρειάζεται,θέλω να πω δεν είναι και απαραίτητο.

αυτός είναι αρκετά απλός κώδικας αν δεν μάθεις να προσαρμόζεις κώδικες σιγά σιγά(κλιμακοτά,απο ευκολότερους σε δυσκολότερους) δεν πρόκειται να ανταπεξέλθεις πιο μετά,πχ εαν σου τύχει κάτι πιο μεγάλο/σύνθετο.

(δεν στο λέω για κακό)

  • 0
Posted

twra ksekinaw file kathe arxi k duskoli :)

ναι συμφωνώ,όλοι απο κάπου αρχίσαμε.

το θέμα είναι που θα φτάσεις.

Guest
This topic is now closed to further replies.


  • Posts

    • I wouldn't expect something less, since you work with Psadek (or I maybe mistake you with NightW0lf from itopz, in that case soz) Let's throw rocks at Java Golds and elevate "original L2OFF Golds", no?
    • We are delighted to announce our partnership with the leading resource, Active Anticheat, specializing in protection against bot programs, clickers, and additional modules for the game client that enhance the experience for both you and the players!   When you purchase Active Anticheat for our product, you will also receive a $50 discount.   Here's a brief overview of the features of Active Anticheat: Best protection against bots, including private and premium versions. Window limitation. HWID spoofing protection. Virtual machine protection. File hash protection for client files, preventing players from modifying them (e.g., interface files). Encryption of any game files. Integration with Discord to attract new players! Additional plugins: - Window with saved player logins/passwords. Players no longer need to enter them every time! - HWID sending to the game server. - Game window optimizer for quick switching. - Background FPS adjustment. - Window name customization in the format "%character_name% - %server_name%". - Ctrl+C/V permission. - Login and password saving (for Interlude -> High Five). - Launching the browser via server packets. - Launching interface events via server packets. - Interlude: fixing a known game bug (History: UpdateAnimation <- AActor::Tick <- TickAllActors <- ULevel::Tick <- (NetMode=0) <- TickLevel <- UGameEngine::Tick <- UpdateWorld <- MainLoop). - Interlude: debuff feature. 9) All of this is available without modifying the game server code (some plugins may require minor changes). Take note of newest plugin, which is highly useful: Guides section
    • The Lucera2 Multiprotocol is an advanced server branch for Lineage 2 that enables seamless support for multiple client versions on a single server instance. This allows players to connect and play using either the legacy (old) client or the newer Classic client simultaneously, without any compatibility issues or loss of functionality. Key Benefits Dual Client Support: Both the old Interlude client and Classic: Secret of Empire 2.6 client can run concurrently on the same server. All features from the Classic client (e.g., enhanced UI, new mechanics) remain fully available, while the old client retains its alternative features (e.g., simplified interfaces for lower-end hardware). Expanded Player Base: Ideal for regions with limited access to modern gaming setups, as it accommodates a wider range of devices and preferences, merging Legacy and Classic communities into one forum section for unified discussions. No Functionality Gaps: Extensive testing ensures zero disruptions—players on either client experience complete game integrity, including quests, PvP, raids, and custom Lucera2 subsystems. You can fully test and explore all aspects of Multiprotocol on the dedicated Test Server. Supported Protocols C6 (Old Client): Protocol versions 740–770. Classic Client (Secret of Empire 2.6): Protocol versions 166–192.
    • Connect to the server you need to >>>download<<< game client launch from /system_en/. Login server setup on auto registration, admin rights in game by default . Or you can use a patch specifying the l2.ini Connect to address classic.lucera2.com if you already have a game client Download updated patch All major/minor subsystems operate in a proper view. Absolutely ready to combat the server.
  • 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