Jump to content
  • 0

To Village And -- Giran Town


nikimad

Question

5 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0

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);
Link to comment
Share on other sites

  • 0
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);

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...