Jump to content

Recommended Posts

Posted

New command for players. now they can teleport desirable town/village.

 

Index: trunk/L2jLive_DataPack/data/scripts/handlers/MasterHandler.java
===================================================================
--- /tmp/svn_fs20100723-29611-k3rp4l-0	Fri Jul 23 15:12:38 2010
+++ /tmp/svn_fs20100723-29611-1kr8syk-0	Fri Jul 23 15:12:38 2010
@@ -238,7 +238,8 @@
	private static void loadVoicedHandlers()
	{
		VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new stats());
-		if (Config.CTF_ALLOW_VOICE_COMMAND) 
+		VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new CmdTeleport());
+		if (Config.CTF_ALLOW_VOICE_COMMAND)
			VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new CTFCmd());
		if (Config.L2JMOD_ALLOW_WEDDING)
			VoicedCommandHandler.getInstance().registerVoicedCommandHandler(new Wedding());

Index: trunk/L2jLive_GameServer/java/com/l2jserver/Config.java
===================================================================
--- /tmp/svn_fs20100723-29611-wlxsa0-0	Fri Jul 23 15:12:38 2010
+++ /tmp/svn_fs20100723-29611-1k7fo6r-0	Fri Jul 23 15:12:38 2010
@@ -243,6 +243,26 @@
	public static int DONATOR_NAME_COLOR;
	public static boolean ENABLE_DONATOR_TITLE_COLOR;
	public static int DONATOR_TITLE_COLOR;
+	public static boolean TELEPORT_CMD_SYSTEM_ADEN;
+	public static boolean TELEPORT_CMD_SYSTEM_DARKELFVILLAGE;
+	public static boolean TELEPORT_CMD_SYSTEM_DION;
+	public static boolean TELEPORT_CMD_SYSTEM_DWARVENVILLAGE;
+	public static boolean TELEPORT_CMD_SYSTEM_ELVENVILLAGE;
+	public static boolean TELEPORT_CMD_SYSTEM_FLORAN;
+	public static boolean TELEPORT_CMD_SYSTEM_GIRAN;
+	public static boolean TELEPORT_CMD_SYSTEM_GLUDIN;
+	public static boolean TELEPORT_CMD_SYSTEM_GLUDIO;
+	public static boolean TELEPORT_CMD_SYSTEM_GODDARD;
+	public static boolean TELEPORT_CMD_SYSTEM_HEINE;
+	public static boolean TELEPORT_CMD_SYSTEM_HUNTERSVILLAGE;
+	public static boolean TELEPORT_CMD_SYSTEM_KAMAELVILLAGE;
+	public static boolean TELEPORT_CMD_SYSTEM_ORCVILLAGE;
+	public static boolean TELEPORT_CMD_SYSTEM_OREN;
+	public static boolean TELEPORT_CMD_SYSTEM_RUNE;
+	public static boolean TELEPORT_CMD_SYSTEM_SCHUTTGART;
+	public static boolean TELEPORT_CMD_SYSTEM_TALKINGISLAND;
+	public static int TELEPORT_CMD_SYSTEM_ITEM;
+	public static int TELEPORT_CMD_SYSTEM_AMOUNT;

	/** ************************************************** **/
	/**                 L2jLive Settings End               **/
@@ -1222,6 +1242,30 @@
					is = new FileInputStream(new File(L2JLIVE_COMMANDS));
					L2jLiveCommandSettings.load(is);

+					TELEPORT_CMD_SYSTEM_ADEN = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportAden", "False"));
+					TELEPORT_CMD_SYSTEM_DARKELFVILLAGE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportDarkElfVillage", "False"));
+					TELEPORT_CMD_SYSTEM_DION = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleporDion", "False"));
+					TELEPORT_CMD_SYSTEM_DWARVENVILLAGE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportDwarvenVillage", "False"));
+					TELEPORT_CMD_SYSTEM_ELVENVILLAGE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportElvenVillage", "False"));
+					TELEPORT_CMD_SYSTEM_FLORAN = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportFloran", "False"));
+					TELEPORT_CMD_SYSTEM_GIRAN = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportGiran", "False"));
+					TELEPORT_CMD_SYSTEM_GLUDIN = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportGludin", "False"));
+					TELEPORT_CMD_SYSTEM_GLUDIO = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportGludio", "False"));
+					TELEPORT_CMD_SYSTEM_GODDARD = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportGoddard", "False"));
+					TELEPORT_CMD_SYSTEM_HEINE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportHeine", "False"));
+					TELEPORT_CMD_SYSTEM_HUNTERSVILLAGE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportHuntersVillage", "False"));
+					TELEPORT_CMD_SYSTEM_KAMAELVILLAGE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportKamaelVillage", "False"));
+					TELEPORT_CMD_SYSTEM_ORCVILLAGE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportOrcVillage", "False"));
+					TELEPORT_CMD_SYSTEM_OREN = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportOren", "False"));
+					TELEPORT_CMD_SYSTEM_RUNE = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportRune", "False"));
+					TELEPORT_CMD_SYSTEM_SCHUTTGART = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportSchuttgart", "False"));
+					TELEPORT_CMD_SYSTEM_TALKINGISLAND = Boolean.parseBoolean(L2jLiveCommandSettings.getProperty("AllowCmdTeleportTalkingIsland", "False"));
+					TELEPORT_CMD_SYSTEM_ITEM = Integer.parseInt(L2jLiveCommandSettings.getProperty("CmdTeleportItem", "57"));
+					TELEPORT_CMD_SYSTEM_AMOUNT = Integer.parseInt(L2jLiveCommandSettings.getProperty("CmdTeleportAmount", "1000"));
+					if (TELEPORT_CMD_SYSTEM_AMOUNT < 1)
+					{
+						TELEPORT_CMD_SYSTEM_AMOUNT = 1;
+					}
				}
				catch (Exception e)
				{

Index: trunk/L2jLive_GameServer/java/config/L2jLive/Cmd.properties
===================================================================
--- /tmp/svn_fs20100723-29611-16qx5o3-0	Fri Jul 23 15:12:38 2010
+++ /tmp/svn_fs20100723-29611-4kvtwa-0	Fri Jul 23 15:12:38 2010
@@ -1,3 +1,88 @@
#--------------------------------------------------------
# Commands Settings - By L2jLive Team
#--------------------------------------------------------
+# ------------------------------
+# Teleport Commands - By L2jLive
+# ------------------------------
+# Allow Players teleport to Aden whit command: .teleportaden
+# Default: False
+AllowCmdTeleportAden = False
+
+# Allow Players teleport to Dark Elf Village whit command: .teleportdarkelfvillage
+# Default: False
+AllowCmdTeleportDarkElfVillage = False
+
+# Allow Players teleport to Dion whit command: .teleportdion
+# Default: False
+AllowCmdTeleportDion = False
+
+# Allow Players teleport to DwarvenVillage whit command: .teleportdwarvenvillage
+# Default: False
+AllowCmdTeleportDwarvenVillage = False
+
+# Allow Players teleport to Elven Village whit command: .teleportelvenvillage
+# Default: False
+AllowCmdTeleportElvenVillage = False
+
+# Allow Players teleport to Floran whit command: .teleportfloran
+# Default: False
+AllowCmdTeleportFloran = False
+
+# Allow Players teleport to Giran whit command: .teleportgiran
+# Default: False
+AllowCmdTeleportGiran = False
+
+# Allow Players teleport to Gludin whit command: .teleportgludin
+# Default: False
+AllowCmdTeleportGludin = False
+
+# Allow Players teleport to Gludio whit command: .teleportgludio
+# Default: False
+AllowCmdTeleportGludio = False
+
+# Allow Players teleport to Goddard whit command: .teleportgoddard
+# Default: False
+AllowCmdTeleportGoddard = False
+
+# Allow Players teleport to Heine whit command: .teleportheine
+# Default: False
+AllowCmdTeleportHeine = False
+
+# Allow Players teleport to Hunters Village whit command: .teleporthuntersvillage
+# Default: False
+AllowCmdTeleportHuntersVillage = False
+
+# Allow Players teleport to Kamael Village whit command: .teleportkamaelvillage
+# Default: False
+AllowCmdTeleportKamaelVillage = False
+
+# Allow Players teleport to Orc Village whit command: .teleportorcvillage
+# Default: False
+AllowCmdTeleportOrcVillage = False
+
+# Allow Players teleport to Oren whit command: .teleportoren
+# Default: False
+AllowCmdTeleportOren = False
+
+# Allow Players teleport to Rune whit command: .teleportrune
+# Default: False
+AllowCmdTeleportRune = False
+
+# Allow Players teleport to Schuttgart whit command: .teleportschuttgart
+# Default: False
+AllowCmdTeleportSchuttgart = False
+
+# Allow Players teleport to  whit command: .teleporttalkingisland
+# Default: False
+AllowCmdTeleportTalkingIsland = False
+
+# -------------
+# Config
+# -------------
+# Item Needed to Teleport.
+# Default: 57
+CmdTeleportItem = 57
+
+# Amount of Needed items.
+# Default: 1000
+CmdTeleportAmount = 1000

 

CmdTeleport.java

 

Download

 

Credits to L2jLive

 

 

Posted

Great shares!!Someone should give him +1 karma!

 

no all he does is c/p from other projects. Nothing is selfmade, he just keeps Spamming c/p...

  • 1 year later...
Guest
This topic is now closed to further replies.


×
×
  • Create New...