Skip to content

To Village And -- Giran Town

Featured Replies

i want know how to make that one ...

When 1 player die Click To Village and he Spawn Giran Town

i need code

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

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

And what code i must write to revive instantly with 30 second like ghost cant hit cant take dmg?

  • 6 years later...

how do you create 1 button under the village, example for giran

  • 3 weeks later...
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);

 

  • Vision locked this topic
  • Maxtor unlocked this topic

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.