Jump to content

Recommended Posts

Posted

Καταρχήν πρέπει να κάνετε checkout το svn του project που έχετε επιλέξει, αλλά μην κάνετε build.

 

Ας πάρουμε ένα τυχαίο java code

Index: /trunk/L2_GameServer_It/java/config/other.properties
===================================================================

#Amount of adena that a new character is given
#Default is 0
StartingAdena = 0
+
+# Set true for custom spawn location.
+CustomSpawn = false
+SpawnX = x
+SpawnY = y
+SpawnZ = z
Index: /trunk/L2_GameServer_It/java/net/sf/l2j/Config.java
===================================================================

   public static float   RAID_MIN_RESPAWN_MULTIPLIER;
   /** Mulitplier for Raid boss maximum time respawn */
   public static float   RAID_MAX_RESPAWN_MULTIPLIER;
   /** Amount of adenas when starting a new character */
   public static int STARTING_ADENA;
+   
+	public static boolean SPAWN_CHAR;
+	public static int SPAWN_X;
+	public static int SPAWN_Y;
+	public static int SPAWN_Z;
+
@@
               RAID_MIN_RESPAWN_MULTIPLIER = Float.parseFloat(otherSettings.getProperty("RaidMinRespawnMultiplier", "1.0"));
               RAID_MAX_RESPAWN_MULTIPLIER = Float.parseFloat(otherSettings.getProperty("RaidMaxRespawnMultiplier", "1.0"));

               STARTING_ADENA      = Integer.parseInt(otherSettings.getProperty("StartingAdena", "100"));
+
+				SPAWN_CHAR = Boolean.parseBoolean(otherSettings.getProperty("CustomSpawn", "false"));
+				SPAWN_X = Integer.parseInt(otherSettings.getProperty("SpawnX", ""));
+				SPAWN_Y = Integer.parseInt(otherSettings.getProperty("SpawnY", ""));
+				SPAWN_Z = Integer.parseInt(otherSettings.getProperty("SpawnZ", ""));


Index: /trunk/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/CharacterCreate.java
===================================================================

@@ -177,7 +177,13 @@

-		
-		newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);
-				
+		if (Config.SPAWN_CHAR)
+		{
+			newChar.setXYZInvisible(Config.SPAWN_X, Config.SPAWN_Y, Config.SPAWN_Z);
+		} 
+       else
+		{
+			newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);
+		}
+
+		

του xAddytzu.

 

1) Θα αρχίσουμε να "κόβουμε" το code σε μικρά κομματάκια.

Πρώτα πηγαίντε /trunk/L2_GameServer_It/java/config/other.properties

και πατήστε control + f, (Θα προσπαθήτε κάθε φορά να κάνετε search μια κοντινή γραμμή κοντά στα lines με τα + ή τα -) βρείτε λοιπόν το

StartingAdena = 0

με το control + f και βάλτε απο κάτω

+
+# Set true for custom spawn location.
+CustomSpawn = false
+SpawnX = x
+SpawnY = y
+SpawnZ = z

Αρχήστε να σβήνετε τα + απο μπροστά και τελειώσατε με το 1ο part.

 

2) Τώρα πηγαίντε στο

/trunk/L2_GameServer_It/java/net/sf/l2j/Config.java

και κάντε search μια κοντινή line, π.χ

/** Amount of adenas when starting a new character */

και προσθέστε

+   
+	public static boolean SPAWN_CHAR;
+	public static int SPAWN_X;
+	public static int SPAWN_Y;
+	public static int SPAWN_Z;

και πάλι σβήστε τα + από μπροστά.

 

Ύστερα βρέιτε αυτό

STARTING_ADENA      = Integer.parseInt(otherSettings.getProperty("StartingAdena", "100"));

που είναι κοντά σε αυτό που θέλου με να προσθέσουμε. Και ξανά προσθέστε αυτές τις γραμμές απο κάτω

+
+				SPAWN_CHAR = Boolean.parseBoolean(otherSettings.getProperty("CustomSpawn", "false"));
+				SPAWN_X = Integer.parseInt(otherSettings.getProperty("SpawnX", ""));
+				SPAWN_Y = Integer.parseInt(otherSettings.getProperty("SpawnY", ""));
+				SPAWN_Z = Integer.parseInt(otherSettings.getProperty("SpawnZ", ""));

και σβήστε τα +.

 

3) και τελευταίο part. Πηγαίντε

/trunk/L2_GameServer_It/java/net/sf/l2j/gameserver/clientpackets/CharacterCreate.java

και βρείτε

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

. ΤΩΡΑ ΠΟΥ ΈΧΕΙ - ΔΙΑ ΓΡΑΦΟΥΜΕ ΑΥΤΑ ΠΟΥ ΜΑΣ ΛΕΕΙ. Δηλαδή διαγράφουμε την γραμμή

newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);

και τα κενά πάνω και κάτω απο αυτή. Στη συνέχεια προσθέστε αυτές τις γραμμές

+		if (Config.SPAWN_CHAR)
+		{
+			newChar.setXYZInvisible(Config.SPAWN_X, Config.SPAWN_Y, Config.SPAWN_Z);
+		} 
+       else
+		{
+			newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ);
+		}
+
+		

σβήστε και πάλι τα + και τελειώσατε.

 

 

Είναι πολύ απλό, αν έχετε όρεξη μπορείτε να κάνετε τα πάντα.

Guide από εμένα.

Posted

Πολύ ωραίο το guide αλλά νομίζω πως ολοι θα προτιμήσουν το αυτόματο τρόπο με 3 click.

 

Τεσπά είναι πολυ καλό πάντως.

Posted

Πολύ ωραίο το guide αλλά νομίζω πως ολοι θα προτιμήσουν το αυτόματο τρόπο με 3 click.

 

Τεσπά είναι πολυ καλό πάντως.

Ας το προτιμήσουνε, εμας θα μας γαμήσουνε τον server? Μακάρι να βγεί τπτ με το new rule για τα prepacks.

Posted

Poly oraio k xrhsimo to guide sou Rozdex™  +1 Karma apo mena ,an mporouses na pros8eseis to pos na broun kapoies grammes (p.x. line 840) pou mpainei to ka8e java 8a htan teleio

Posted

Poly oraio k xrhsimo to guide sou Rozdex™  +1 Karma apo mena ,an mporouses na pros8eseis to pos na broun kapoies grammes (p.x. line 840) pou mpainei to ka8e java 8a htan teleio

Thanks for karma ;)

y, θα το κάνω αύριο, τώρα βρμ

Posted

kapu toxo ksanadei  afto to guide...dn einai dika s logia...kane ipomoni 8a to ksanadw ;)

Πολλές βλακίες λες τελευταία, χώρις πλάκα γίνεσαι σπαστικός.

Το guide είναι 100% δικό μου. 100%. Το τονίζω για κάποιους σαν τον Ro21.

Posted

to idio ekanes k me tin buffer pitsirika...kane kati diko sou k oxi copy paste ton alon...

? Ρε είσαι μαλάκας? Μήπως με έχει μπερδέψει με κάποιον άλλο? Εγώ δεν έχω κάνει πότε share buffer. 16 χρωνών είμαι, προβλημα?

 

 

ΚΑΙ ΕΊΝΑΙ ΌΛΟ ΔΙΚΌ ΜΟΥ ΑΝ ΕΣΎ ΓΟΥΣΤΆΡΕΙς ΝΑ ΠΊΝΕΙΣ ΜΠΎΡΕΣ ΔΕΝ ΜΕ ΝΟΙΆΖΕΙ.

Posted

8a s kanw report gia ton tropo pou milas..

 

xaxaxxaxa .Kai report na ton kaneis den 8a ginei tpt...

 

Afto to Guide einai tou Rozdex .Ama to exeis ksanadei kapou apla dose to link na to doume kai emeis...

 

Posted

8a s kanw report gia ton tropo pou milas..

Επειδή σε είπα μαλάκα? Σιγά μην σε έθιξα κιόλας. Το μαλάκας πια δεν θεωρείτε βρισιά.

 

Ελά έξω από το topic μου, το guide είναι 100% δικό μου μην ψάχνεσε.

Posted

kapu toxo ksanadei  afto to guide...dn einai dika s logia...kane ipomoni 8a to ksanadw ;)

ahaha..afta mas tapan kialoi rozdex..arakse 8a er8i k i sira s...

ahaha..afta mas tapan kialoi rozdex..arakse 8a er8i k i sira s...

to idio ekanes k me tin buffer pitsirika...kane kati diko sou k oxi copy paste ton alon...

to idio ekanes k me tin buffer pitsirika...kane kati diko sou k oxi copy paste ton alon...

8a s kanw report gia ton tropo pou milas..

 

-1 Karma Gia To Spam Sou Sto Forum.Kaneis Sinexia Spam Kai Den Les Kai Tipota To Idietero.

 

btw Rozdex™ Nice Share !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • Hello, MaxCheaters community,   We are pleased to officially announce the development of our new Lineage II project: MightyProject MightyProject will be an Interlude Mastered server, developed on a modern game engine and technical foundation while preserving the gameplay, atmosphere, and identity that made Interlude one of the most memorable chronicles of Lineage II. Our objective is not to transform Interlude into something unrecognizable. We aim to modernize and improve the overall experience while remaining faithful to the original spirit and scope of the chronicle. Our Vision MightyProject will feature: Authentic Interlude-oriented gameplay supported by a modern engine. Retail quests, carefully simplified to provide a smoother and more enjoyable progression experience. Reworked classes and skills, focused on improving balance and strengthening class identity without departing from Interlude gameplay. A refined progression system that respects players’ time without removing the sense of achievement. Original development decisions rather than copied features, systems, concepts, or branding from other projects. We are not interested in creating another server filled with random features simply because they are currently popular. Every system introduced into MightyProject must have a clear purpose and fit naturally within the overall Interlude experience. A Serious and Familiar Team Many people within the community are already familiar with us and understand the level of commitment we bring to our projects. We know that trust cannot be built through promises alone. It must be earned through consistent development, professional management, transparency, and long-term support. MightyProject is being approached as a serious and sustainable project—not as a temporary server or a quick attempt to follow current market trends. Our ambition is to help revive the European Lineage II private-server community and contribute to a healthier market where players have more than one or two serious projects to choose from. We believe there is still room for a professionally developed European-based server that respects the identity of Interlude while offering the stability, presentation, and quality expected from a modern project. Partnership Opportunities We are open to discussions with serious investors and professional partners who understand the vision and long-term potential of MightyProject.   Investment partnerships will not alter the project’s established gameplay identity. Core decisions concerning balance, progression, and game design will remain under the responsibility of the development team.   Potential partners may contribute in areas such as: Marketing and media strategy Public relations and advertising Community growth Customer support Operational and promotional activities Every partnership will be discussed professionally, with clearly defined responsibilities, expectations, and boundaries. MightyProject is being created with one clear objective: to deliver a modern, polished, and sustainable Interlude experience without losing the character of the original game. More information regarding development progress, features, testing phases, media content, and the official roadmap will be shared as the project moves forward. Thank you to everyone who has supported us, worked with us, or followed our previous activities within the community. This is only the beginning. MightyProject
  • 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..