Jump to content
  • 0

To Village And -- Giran Town


Question

5 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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

 

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.



×
×
  • Create New...