Jump to content
  • 0

How To Change Starting Location


Question

Posted

Hello guys, after hours looking for it, trying doing changes at "startPoints.xml" and nothing i have to ask:

 

How the hell can i change the starting location when characters where made?

 

I do use L2jserver H5 Beta

 

Thanks in advance.

9 answers to this question

Recommended Posts

  • 0
Posted

Hello guys, after hours looking for it, trying doing changes at "startPoints.xml" and nothing i have to ask:

 

How the hell can i change the starting location when characters where made?

 

I do use L2jserver H5 Beta

 

Thanks in advance.

as devlin says go to com.l2jserver.gameserver.network.clientpackets.CharacterGreate.java and add these lines:

 

 

newChar.addAdena("Init", Config.STARTING_ADENA, null, false);

 

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

 

 

 

Config.java

 

+ public static boolean SPAWN_CHAR;
+ public static int SPAWN_X;
+ public static int SPAWN_Y;
+ public static int SPAWN_Z;
 
      +   SPAWN_CHAR = Boolean.parseBoolean(L2JModSettings.getProperty("CustomSpawn", "false"));
      +   SPAWN_X = Integer.parseInt(L2JModSettings.getProperty("SpawnX", ""));
      +   SPAWN_Y = Integer.parseInt(L2JModSettings.getProperty("SpawnY", ""));
      +   SPAWN_Z = Integer.parseInt(L2JModSettings.getProperty("SpawnZ", ""));
  • 0
Posted

Do not hardcode it.. Its static data. Xml or database. Search for character_template or w/e its called on l2j :P

  • 0
Posted

Yo guys! thanks for ur answer, ok lest go.

 

If you want to change for each race, check character_templates.

 

Otherwise, at CharacterCreate.java (clientpackets).

 

There is no "Character_templates table anymore, they change it to .xml, as i said i did some changes but nothing works

 

as devlin says go to com.l2jserver.gameserver.network.clientpackets.CharacterGreate.java and add these lines:

 

 

newChar.addAdena("Init", Config.STARTING_ADENA, null, false);

 

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

 

 

 

Config.java

 

+ public static boolean SPAWN_CHAR;
+ public static int SPAWN_X;
+ public static int SPAWN_Y;
+ public static int SPAWN_Z;
 
      +   SPAWN_CHAR = Boolean.parseBoolean(L2JModSettings.getProperty("CustomSpawn", "false"));
      +   SPAWN_X = Integer.parseInt(L2JModSettings.getProperty("SpawnX", ""));
      +   SPAWN_Y = Integer.parseInt(L2JModSettings.getProperty("SpawnY", ""));
      +   SPAWN_Z = Integer.parseInt(L2JModSettings.getProperty("SpawnZ", ""));

 

About this, i try to use it but eclipse shows some error's, i did "fixs" and had no errors and compile, but nothing happen in game

 

Do not hardcode it.. Its static data. Xml or database. Search for character_template or w/e its called on l2j :P

as i said firts character_template dont exist anymore, check this screen shot

 

and here the new xml file, its modified, i want tall races spawning at human fighter zone, but... x.x

<?xml version="1.0" encoding="UTF-8"?>
<!-- TODO: Require Support -->
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xsd/startPoints.xsd">
	<!-- Cedric's Training Hall -->
	<startPoints> <!-- 17_25 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>0</classId> <!-- human_fighter -->
	</startPoints>
	<!-- Einhobant's School of Magic -->
	<startPoints> <!-- 17_25 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>10</classId> <!-- human_magician -->
	</startPoints>
	<!-- Shadow of the Mother Tree -->
	<startPoints> <!-- 21_19 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>18</classId> <!-- elf_fighter -->
		<classId>25</classId> <!-- elf_magician -->
	</startPoints>
	<!-- The Shilen Temple -->
	<startPoints> <!-- 20_18 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>31</classId> <!-- darkelf_fighter -->
		<classId>38</classId> <!-- darkelf_magician -->
	</startPoints>
	<!-- Near Dwarven Village -->
	<startPoints> <!-- 23_12 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>53</classId> <!-- dwarf_apprentice -->
	</startPoints>
	<!-- Pa'agrio Temple -->
	<startPoints> <!-- 18_14 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>44</classId> <!-- orc_fighter -->
		<classId>49</classId> <!-- orc_shaman -->
	</startPoints>
	<!-- Cave of Souls -->
	<startPoints> <!-- 16_19 -->
		<spawn x="-71914" y="257718" z="-3113" />
		<spawn x="-72077" y="257721" z="-3113" />
		<spawn x="-71837" y="257561" z="-3113" />
		<classId>123</classId> <!-- kamael_m_soldier -->
		<classId>124</classId> <!-- kamael_f_soldier -->
	</startPoints>
</list>

i should do it by core side but idk wtf its happening :S

 

Shot:

2iaq03o.jpg

  • 0
Posted (edited)

i should do it by core side but idk wtf its happening :S

Cuz you miss configs at properties ..

 

Well, kinda weird .. Should work fine with this edit. So, with that edit they still keep spawning at their default location ?

Edited by SweeTs
  • 0
Posted

Cuz you miss configs at properties ..

 

Well, kinda weird .. Should work fine with this edit. So, with that edit they still keep spawning at their default location ?

1: i did your recomendation in other post answers, config.java and CharacterCreate.java

 

2. Yes they keep spawning at their default loc.

 

Also i tried with 4 locations and adding all races after it, and nothing happen

 

like:

 

<starPoints>

x

y

z

race 1

race 2 

race 3

</startPoints>

  • 0
Posted (edited)

1: i did your recomendation in other post answers, config.java and CharacterCreate.java

 

2. Yes they keep spawning at their default loc.

 

Also i tried with 4 locations and adding all races after it, and nothing happen

 

like:

 

<starPoints>

x

y

z

race 1

race 2 

race 3

</startPoints>

 

you add the configs in your server files? you make CustomSpawn = true?

you add in configs the correct locations?

just pm me with your teamviewer or add me on skype

Edited by nikosdevil20

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

    • Vesper Noble heavy set (RAR) 1800 att - 150e Eternal Core Dualsword +6 300 att 130e Ring of Baium 130e AQ ring 100e Antharas Earring 200e   Paypal payments only DM in discord narttu123
    • L2REBORN x10 - 1gb - 4.2$ l2reborn x1 ( signature ) - 1kk - 1.3$ LU4 - 1kk - 2.3$ MASTERWORRK - 1kk - 3.8kk  discord - adver745645
    • Hello, Skill Activation: The activation options from the Alt+K window work perfectly. However, when activating them from the skill bar, there is still a delay of approximately 1 second. I need to remove that delay
    • --- Interlude Faction/GvE PvP grand opening 2025-11-15 19:00 GMT+2 ---   Gameplay: Chronicle: Interlude Type: Faction/GvE (Angels vs Nature vs Demons) GM Shop: B-S grade Buff slots: 20+4 Starting level: 74 + rebirth system   New Features: Client: Modern interface based on Essence Balance: New class skills for better balance Achievement Rewards: Daily, Weekly, One-time TOP rankings: PvP, Event PvP, Map PvP, Clan PvP, Event MvP, Map MvP Zones: 70 different PvP zones,  18 different events (8 map events | 10 main events) 12 Grand/raid bosses. Castle siege Olympiad Clan Hall challenge Custom Enchant System: Dynamic success chance (greater enchant level or item grade less enchanting success chance) Enchant rate: Blessed scrolls dynamic from 100% to 25%. Crystal Scrolls: 100%; Max enchant weapon +12 Max enchant armor +8 Safe point enchant system Extra Features: PvP items with level upgrade Weapon/Armor upgrade (from B grade to S) system Attributes system   Website: https://l2cygnus.com Community: Discord Facebook: https://www.facebook.com/l2cygnus Youtube:   
  • 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