Jump to content
  • 0

Start Location Character


Question

2 answers to this question

Recommended Posts

  • 0
Posted

Or you can do it via core side

 

### Eclipse Workspace Patch 1.0
#P gameserver
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 125)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -294,6 +294,10 @@

     /** Misc */
     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;
     public static boolean EFFECT_CANCELING;
     public static double HP_REGEN_MULTIPLIER;
     public static double MP_REGEN_MULTIPLIER;
@@ -899,6 +903,10 @@
                 is.close();
                 
                 STARTING_ADENA = Integer.parseInt(players.getProperty("StartingAdena", "100"));
+                SPAWN_CHAR = Boolean.parseBoolean(players.getProperty("CustomSpawn", "false"));
+                SPAWN_X = Integer.parseInt(players.getProperty("SpawnX", ""));
+                SPAWN_Y = Integer.parseInt(players.getProperty("SpawnY", ""));
+                SPAWN_Z = Integer.parseInt(players.getProperty("SpawnZ", ""));
                 EFFECT_CANCELING = Boolean.valueOf(players.getProperty("CancelLesserEffect", "True"));
                 HP_REGEN_MULTIPLIER = Double.parseDouble(players.getProperty("HpRegenMultiplier", "100")) /100;
                 MP_REGEN_MULTIPLIER = Double.parseDouble(players.getProperty("MpRegenMultiplier", "100")) /100;
Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java	(revision 125)
+++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java	(working copy)
@@ -192,7 +192,10 @@
		L2PcTemplate template = newChar.getTemplate();

		newChar.addAdena("Init", Config.STARTING_ADENA, null, false);
-		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);
		newChar.setTitle("");

		newChar.registerShortCut(new L2ShortCut(0,0,3,2,-1,1)); 	// attack shortcut

Players.properties
# Set true for custom spawn location.
CustomSpawn = True
SpawnX = 83414
SpawnY = 148628
SpawnZ = -3410

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Damn long time to see you. I think all the forum is settled,not only the GFX Area
    • What the tilte says....back in years i was one of the first mods here with MM (mostly being the reason that this section was born) and i was trying to keep it alive..Now i see no interest for GFX...That might occurs cause of MXC being  a bit bead and mostly a L2 forum.
    • Nice share, wish for a good update.
    • 🎮✨ DRIVING SERVICES ✨🎮 Your Ultimate Driving Service in Lineage 2 Reborn x1 Signature 🛡️ Too Busy to Farm? I Got You. 📜 Stuck on a Questline? We’ll Lead the Way. 🌾 Need Rare Drops or Materials? We Grow Gold While You Rest.   🎁 Services We Offer: 🔹 SPOILING & LOOTING – Need that rare drop or spoil drop? I'll get it while you work/sleep. 🔹 QUESTING – Stuck on a quest? 1st class, 2nd class, 3rd class, Subclass, Noblesse Quest. Let me finish it for you. 🔹 RESOURCE FARMING – Adena, rare drops, mats — you name it, I grind it. 🔹 CHARACTER PILOTING – We play your character directly — always safely, always securely.   🔥 Why Choose Me? 🔥 ⚔️ 100% Human-Driven – No bots, just top-tier gamer. 🕒 24/7 Availability – Play on your time, or let me play while you live your life. 💬 Live Updates – Know what’s happening every step of the grind. 🔐 Safe & Private Piloting – Your account is in expert hands. No afk, no hacks, no risks.   💸 Prices 💸 🔹 QUEST - 3 EURO/HOUR (negotiable depends on terms and conditions) 🔹 SPOIL - 3.5 EURO/HOUR (negotiable depends on terms and conditions) 🔹 FARM/EXP - 2.5 EURO/HOUR (negotiable depends on terms and conditions) 🔹 CASTLE SIEGE - 2 EURO/HOUR   💳 Payment Method Your security is our priority. We accept: 💰 PayPal – Fast, secure, and global. Friends and Family only   🎮 DM me now! 📍 Discord: garudaphoenix99
  • Topics

×
×
  • Create New...