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.


  • Posts

    • https://prnt.sc/Bkkc0ShGXv9m https://prnt.sc/-JFLvZXsn27A
    • Hello guys want to sell adena in L2 Reborn Signature x1  Stock =14kk good price 
    • Hi guys, I have the following problem, I want to set up two servers on the same dedicated server and I can't.   L2jacis 409 Linux Server. The first gameserver has the following configuration: # ================================================================ # Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 190.25.103.103 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7777 # The Loginserver host and port. LoginHost = 127.0.0.1 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 1 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True UseBlowfishCipher = True # ================================================================ # Database informations # ================================================================ URL = jdbc:mariadb://localhost/server1 Login = server1 Password = server1 I configured the second gameserver like this:   # ================================================================ # Gameserver setting # ================================================================ # This is transmitted to the clients, so it has to be an IP or resolvable hostname. If this ip is resolvable by Login just leave * Hostname = 0.0.0.0 # Bind ip of the gameserver, use * to bind on all available IPs. GameserverHostname = * GameserverPort = 7788 # The Loginserver host and port. LoginHost = 127.0.0.1 LoginPort = 9014 # This is the server id that the gameserver will request. RequestServerID = 2 # If set to true, the login will give an other id to the server (if the requested id is already reserved). AcceptAlternateID = True UseBlowfishCipher = True # ================================================================ # Database informations # ================================================================ URL = jdbc:mariadb://localhost/server2 Login = server2 Password = server2 apart from having tested 0.0.0.0 on the second gameserver I also tried 127.0.0.1 In both cases I see the two servers in the login when I log in, but I try to enter the one with the lowest ping and it kicks me out. The other server always appears with ping 9999 and I try to enter but it doesn't do anything and it freezes the login so I have to log in again. The hexids are in their respective folders. For server 1, it has its hexid inside the gameserver config folder, and I checked that the hexid id is the same id, for example id 1 in the gameserver is also id1 for server 1, and hexid 2 has its hexid 2 for server 2. The server ports are open and listening when I turn on both gameservers. I really don't know what could be wrong. If you could give me some help I would appreciate it. Excuse my English.
    • We have both old channels from 2006-2009 with the 3rd verification function enabled, and new ones.   For availability, please contact us below: Link - Telegram Link - Facebook WhatsApp - Click here to go to WhatsApp chat
    • You can contact me on skype: niedziolek50
  • Topics

×
×
  • Create New...