Jump to content

[SHARE]VoiceCommand .teleport[place] + Config


Recommended Posts

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

 

 

Link to comment
Share on other sites

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


  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
    • New season of Warfire X150 has been postponed to September 28th.
  • Topics

×
×
  • Create New...