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

    • ## [1.4.0] - 2026-01-28   ### ✨ New Features - **Vote System**: Lineage 2 servers can now use our vote–reward system. Players vote on the website and claim rewards in-game (1 vote = 1 claim) - **Vote Page**: On each server’s page (`/servers/<server>`), a **“Vote for Server”** button opens a dedicated vote page with cooldown info and optional Turnstile verification - **By Votes View**: The **“By Votes”** tab on the main page shows **actual vote counts** per server - **API Documentation**: New **API Docs** page at `/docs` (and footer link) with HMAC auth, endpoints, and examples for game server integration - **Vote API (My Servers)**: Server owners can open **“Vote API”** in My Servers to manage credentials, cooldown, allowed IPs, and open the docs   ### 🔄 Improvements - **Server Pages**: Single-server data is cached and loads faster; server pages can be opened by ID or by name (e.g. `/servers/my-server-name`) - **API Root**: Visiting the API root redirects to the docs URL configured in admin (default: site docs page) - **Admin Panel**: New **“Vote System”** tab for global settings (Turnstile, API security, default cooldown, docs URL)   ### 🔐 Security & Reliability - Turnstile (CAPTCHA) support for vote submissions to reduce abuse - HMAC-protected game server API for secure vote check/claim and stats
    • "I recently purchased the account panel from this developer and wanted to leave a positive review.   The transaction was smooth, and the developer demonstrated exceptional professionalism throughout the process.   What truly sets them apart is their outstanding post-sale support. They are responsive, patient, and genuinely helpful when addressing questions or issues. It's clear they care about their customers' experience beyond just the initial sale.   I am thoroughly satisfied and grateful for the service. This is a trustworthy seller who provides real value through both a quality product and reliable support. 100% recommended."
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • ⚙️ General Changed “No Carrier” title to “Disconnected” to avoid confusion after abnormal DC. On-screen Clan War kill notifications will no longer appear during Sieges, Epics, or Events. Bladedancer or SwordSinger classes can now log in even when Max Clients (2) is reached, you cannot have both at the same time. The max is 3 clients. Duels will now be aborted if a monster aggros players during a duel (retail-like behavior). Players can no longer send party requests to blocked players (retail-like). Fixed Researcher Euclie NPC dialogue HTML error. Changed Clan leave/kick penalty from 12 hours to 3 hours. 🧙 Skills Adjusted Decrease Atk. Spd. & Decrease Speed land rates in Varka & FoG. Fixed augmented weapons not getting cooldown when entering Olympiad. 🎉 Events New Team vs Team map added. New Save the King map added (old TvT map). Mounts disabled during Events. Letter Collector Event enabled Monsters drop letters until Feb. 13th Louie the Cat in Giran until Feb. 16th Inventory slots +10 during event period 📜 Quests Fixed “Possessor of a Precious Soul Part 1” rare stuck issue when exceeding max quest items. Fixed Seven Signs applying Strife buff/debuff every Monday until restart. 🏆 Milestones New milestone: “Defeat 700 Monsters in Varka” 🎁 Rewards: 200 Varka’s Mane + Daily Coin 🌍 NEW EXP Bonus Zones Hot Springs added Varka Silenos added (hidden spots excluded) As always, thank you for your support! L2Elixir keeps evolving, improving, and growing every day 💙   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..