Teilor111 Posted December 13, 2012 Posted December 13, 2012 Hi. Where i can change a start location character of all class? I know how change location after death but start loc no ;x Thanks for help. Quote
0 marwan Posted December 15, 2012 Posted December 15, 2012 you can change from char_templates.sql Quote
0 SweeTs Posted December 15, 2012 Posted December 15, 2012 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 Quote
Question
Teilor111
Hi. Where i can change a start location character of all class?
I know how change location after death but start loc no ;x
Thanks for help.
2 answers to this question
Recommended Posts
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.