nikimad Posted December 20, 2014 Posted December 20, 2014 i want know how to make that one ... When 1 player die Click To Village and he Spawn Giran Towni need code Quote
0 nikosdevil20 Posted December 20, 2014 Posted December 20, 2014 i want know how to make that one ... When 1 player die Click To Village and he Spawn Giran Town i need code RequestRestartPoint.java case 27: // to jail if (!activeChar.isInJail()) return; loc = new Location(-114356, -249645, -2984); break; default: + if (Config.TOWN_REVIVE_ENABLED)loc = new Location(Config.LOCATIONX, Config.LOCATIONY, Config.LOCATIONZ); + else + loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + break; } // Teleport and revive Config.java + public static boolean TOWN_REVIVE_ENABLED; + public static int LOCATIONX; + public static int LOCATIONY; + public static int LOCATIONZ; + TOWN_REVIVE_ENABLED = Boolean.parseBoolean(Character.getProperty("TownReviveEnabled", "False")); + LOCATIONX = Integer.parseInt(Character.getProperty("LocationX", "")); + LOCATIONY = Integer.parseInt(Character.getProperty("LocationY", "")); + LOCATIONZ = Integer.parseInt(Character.getProperty("LocationZ", "")); Character.properties #----------------------------------------------------------------------------- # Custom Respawn After Die System #----------------------------------------------------------------------------- # Allow system respawn system to respawn the character in custom place? TownReviveEnabled = True # Put the location from character respawn ( TownReviveEnabled Must be True) LocationX = 148972 LocationY = 172172 LocationZ = -955 Quote
0 StinkyMadness Posted December 20, 2014 Posted December 20, 2014 On: new Location(11135, 15788, -4611); Add your Respawn Coordinations L2JFrozen com.l2jfrozen.gameserver.network.clientpackets.RequestRestartPoint.java if (activeChar.getKarma() > 0 && Config.ALT_KARMA_TELEPORT_TO_FLORAN) { loc = new Location(17836, 170178, -3507);// Floran Village break; } - loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + loc = new Location(11135, 15788, -4611); break; } // Stand up and teleport, proof dvp video. activeChar.setIsIn7sDungeon(false); Quote
0 grandelani123 Posted December 23, 2014 Posted December 23, 2014 And what code i must write to revive instantly with 30 second like ghost cant hit cant take dmg? Quote
0 bola7 Posted July 17, 2021 Posted July 17, 2021 how do you create 1 button under the village, example for giran Quote
0 Drazeal Posted August 4, 2021 Posted August 4, 2021 On 7/17/2021 at 7:21 AM, bola7 said: how do you create 1 button under the village, example for giran dont mess with that if u dont know how to do it. You will have to relocate everything (to castle, to clan hall etc) search for a shared pvp zone with auto rivive to find the 30 sec delay respawn on "to vilage" or "ondoDie" THIS IS AN EXAMPLE: final PlayerInstance activeChar = ((PlayerInstance) character); activeChar.sendMessage("You will be revived in 10 seconds"); if (character instanceof PlayerInstance) { if (revive) { ThreadPool.schedule(() -> { activeChar.setIsPendingRevive(true); activeChar.doRevive(); int[] loc = spawn_loc[Rnd.get(spawn_loc.length)]; activeChar.teleToLocation(loc[0] + Rnd.get(-radius, radius), loc[1] + Rnd.get(-radius, radius), loc[2], 0); }, revive_delay * 1000); Quote
Question
nikimad
i want know how to make that one ...
When 1 player die Click To Village and he Spawn Giran Town
i need code
5 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.