Você não é registrado, por favor registre-se para ter acesso ao conteúdo completo.
Caso seja registrado, efetue login.
Esqueceu sua senha? Clique aqui
Recomendamos o uso do Mozilla Firefox para uma melhor visualização.    


Início Postados Hoje Marcar Fóruns Como Lidos Álbums Banidos SE Team Medalhas
Voltar   Secret Experience > Área L2J > [L2J] Downloads > [Lineage] Java Mods
Registrar Loteria VIPStaff SERegras do fórum Comunidade Arcade Postados Hoje Pesquisar Experience
   

Secret Experience.NET   Secret Experience Corporation - Welcome To The Real World
     Anúncios SE

 
 
Ferramentas do Tópico Modos de Exibição
Prev Post Anterior   Próximo Post Next
Antigo 26-09-2010, 02:34 PM   #1
Mazokista
Membro - Veterano
 
Avatar de Mazokista
 
Registrado em: Dec 2009
Posts: 1,335
Agradeceu: 490
Agradecido 803 Vezes em 427 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Sistema
Rate Designer: Iniciante
Meu Estado:
Enviar mensagem via Windows Live Messenger para Mazokista
Nome Real: Roberto

Inventório de Mazokista

Icon2 Voiced Command .giran .aden

Esse Mod Faz com Qui Voce Teleport para giran adena Apenas Digitando um Simples Comando


Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/config/Mods/Comandos.ini
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/config/Mods/Comandos.ini    (revision 36)
+++ C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/config/Mods/Comandos.ini    (working copy)
@@ -4,6 +4,14 @@
 #                     ///           \\\                      #
 #/////////////////////////////////////////////////////////////
 
+# Localitation VoiceCommand
+# Player use to teleport to "x" loc
+#------------------------------------------------------------------
+#Example:  .giran , .aden, .valakas, etc..                        #
+#This VoiceCommand Include all Towns/Villages and GrandBosses     #
+#------------------------------------------------------------------
+LocalitationVoiceCommand = False
+
 #------------------------------
 # Recuse Mensagems .pmoff     #
 # -----------------------------
Index: C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/gameserver/handler/VoicedCommandHandler.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/gameserver/handler/VoicedCommandHandler.java    (revision 35)
+++ C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/gameserver/handler/VoicedCommandHandler.java    (working copy)
@@ -23,6 +23,7 @@
 import com.l2jstep.gameserver.handler.voicedcommandhandlers.Banking;
 import com.l2jstep.gameserver.handler.voicedcommandhandlers.OnlinePlayers;
 import com.l2jstep.gameserver.handler.voicedcommandhandlers.VoiceInfo;
+import com.l2jstep.gameserver.handler.voicedcommandhandlers.loc;
 import com.l2jstep.gameserver.handler.voicedcommandhandlers.Wedding;
 import com.l2jstep.gameserver.handler.voicedcommandhandlers.pmoff;
 import com.l2jstep.gameserver.handler.voicedcommandhandlers.stats;
@@ -53,6 +54,8 @@
     {
         _datatable = new FastMap<String, IVoicedCommandHandler>();
         registerVoicedCommandHandler(new stats());
+        if (Config.ALLOW_LOC_VOICECOMMAND)
+            registerVoicedCommandHandler(new loc());
         if (Config.MOD_ALLOW_WEDDING)
             registerVoicedCommandHandler(new Wedding());
         if (Config.ALLOW_AWAY_STATUS)
Index: C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/gameserver/handler/voicedcommandhandlers/loc.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/gameserver/handler/voicedcommandhandlers/loc.java    (revision 0)
+++ C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/gameserver/handler/voicedcommandhandlers/loc.java    (revision 0)
@@ -0,0 +1,206 @@
+/* This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ *
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+ 
+package com.l2jstep.gameserver.handler.voicedcommandhandlers;
+ 
+import com.l2jstep.Config;
+import com.l2jstep.gameserver.handler.IVoicedCommandHandler;
+import com.l2jstep.gameserver.model.actor.instance.L2PcInstance;
+
+/**
+ * @author Rayder
+ **/
+ 
+public class loc implements IVoicedCommandHandler
+{
+    private static final String[] VOICED_COMMANDS =
+    {
+        "giran",
+        "aden",
+        "oren",
+        "dion",
+        "goddard",
+        "floran",
+        "gludin",
+        "gludio",
+        "rune",
+        "heine",
+        "dwarvenvillage",
+        "darkelvenvillage",
+        "elvenvillage",
+        "orcvillage",
+        "talkingisland",
+        "schuttgart",
+        "huntersvillage",
+        "antharas",
+        "valakas",
+        "baium",
+        "queenant",
+        "zaken",
+        "orfen",
+        "core"
+    };
+ 
+    public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
+    {  
+       {
+            if(activeChar.atEvent)
+            {
+                activeChar.sendMessage("You can't teleport while you are in the event.");
+                return false;
+            }
+            else if (activeChar.isFestivalParticipant())
+            {
+                activeChar.sendMessage("You can't use this command while participating in the Festival!");
+                return false;
+            }
+            else if(activeChar.isInJail())
+            {
+                activeChar.sendMessage("You can't teleport while you are in jail.");
+                return false;
+            }
+            else if(activeChar.isDead())
+            {
+                activeChar.sendMessage("You can't teleport while you are dead.");
+                return false;
+            }
+            else if(activeChar.isInCombat())
+            {
+                activeChar.sendMessage("You can't teleport while you are in combat.");
+                return false;
+            }
+            else if (activeChar.isInDuel())
+            {
+                activeChar.sendMessage("You can't teleport while you are doing a duel.");
+                return false;
+            }
+            else if (activeChar.isInOlympiadMode())
+            {
+                activeChar.sendMessage("You can't teleport while you are in olympiad");
+                return false;
+            }
+            else if (activeChar.inObserverMode())
+            {
+                activeChar.sendMessage("You can't teleport while you are in observer mode");
+                return false;
+            }
+            else if (!activeChar.inObserverMode() && !activeChar.isInOlympiadMode() && !activeChar.isInDuel() && !activeChar.isInCombat() && !activeChar.isDead() && !activeChar.isInJail())  
+            {
+           
+                if(command.startsWith("giran"))
+                {
+                    activeChar.teleToLocation(82337, 148602, -3467);
+                }
+                else if(command.startsWith("dion"))
+                {
+                    activeChar.teleToLocation(18492, 145386, -3118);
+                }  
+                else if(command.startsWith("oren"))
+                {
+                    activeChar.teleToLocation(82769, 53573, -1498);
+                }  
+                else if(command.startsWith("gludio"))
+                {
+                    activeChar.teleToLocation(-12864, 122716, -3117);
+                }  
+                else if(command.startsWith("gludin"))
+                {
+                    activeChar.teleToLocation(-80928, 150055, -3044);
+                }  
+                else if(command.startsWith("aden"))
+                {
+                    activeChar.teleToLocation(147361, 26953, -2205);
+                }  
+                else if(command.startsWith("schuttgart"))
+                {
+                    activeChar.teleToLocation(87359, -143224, -1293);
+                }
+                else if(command.startsWith("orcvillage"))
+                {
+                    activeChar.teleToLocation(-44429, -113596, -220);
+                }
+                else if(command.startsWith("darkelvenvillage"))
+                {
+                    activeChar.teleToLocation(11620, 16780, -4662);
+                }
+                else if(command.startsWith("elvenvillage"))
+                {
+                    activeChar.teleToLocation(47050, 50767, -2996);
+                }
+                else if(command.startsWith("dwarvenvillage"))
+                {
+                    activeChar.teleToLocation(115526, -178660, -945);
+                }
+                else if(command.startsWith("heine"))
+                {
+                    activeChar.teleToLocation(111396, 219254, -3546);
+                }
+                else if(command.startsWith("huntersvillage"))
+                {
+                    activeChar.teleToLocation(116440, 76320, -2730);
+                }
+                else if(command.startsWith("floran"))
+                {
+                    activeChar.teleToLocation(17144, 170156, -3502);
+                }
+                else if(command.startsWith("goddard"))
+                {
+                    activeChar.teleToLocation(147720, -55560, -2735);
+                }
+                else if(command.startsWith("rune"))
+                {
+                    activeChar.teleToLocation(43848, -48033, -797);
+                }
+                else if(command.startsWith("valakas"))
+                {
+                    activeChar.teleToLocation(213604, -114795, -1636);
+                }  
+                else if(command.startsWith("baium"))
+                {
+                    activeChar.teleToLocation(115213, 16623, 10080);
+                }  
+                else if(command.startsWith("queenant"))
+                {
+                    activeChar.teleToLocation(-21610, 181594, -5734);
+                }
+                else if(command.startsWith("zaken"))
+                {
+                    activeChar.teleToLocation(55312, 219168, -3223);
+                }
+                else if(command.startsWith("orfen"))
+                {
+                    activeChar.teleToLocation(43021, 17378, -4394);
+                }
+                else if(command.startsWith("core"))
+                {
+                    activeChar.teleToLocation(17682, 111439, -6584);
+                }
+                else if(command.startsWith("antharas"))
+                {
+                    activeChar.teleToLocation(185708, 114298, -8221);
+                }              
+            }
+       }
+       return true;
+    }
+    
+    public String[] getVoicedCommandList()
+    {
+        return VOICED_COMMANDS;
+    }
+}
\ No newline at end of file
Index: C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/Config.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/Config.java    (revision 35)
+++ C:/Documents and Settings/ROBERTO/workspace/L2JStep/Trunk/L2JStep_CORE/java/com/l2jstep/Config.java    (working copy)
@@ -789,6 +789,7 @@
     public static String GAME_SERVER_LOGIN_HOST;
     public static int REQUEST_ID;
     public static boolean ACCEPT_ALTERNATE_ID;
+    public static boolean ALLOW_LOC_VOICECOMMAND;
     public static String DATABASE_DRIVER;
     public static String DATABASE_URL;
     public static String DATABASE_LOGIN;
@@ -1953,6 +1954,7 @@
                 voicecmdSettings.load(is);
                 is.close();
                 
+                ALLOW_LOC_VOICECOMMAND   = Boolean.parseBoolean(voicecmdSettings.getProperty("LocalitationVoiceCommand", "False"));
                 BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(voicecmdSettings.getProperty("BankingEnabled", "False"));
                 BANKING_SYSTEM_GOLDBARS = Integer.parseInt(voicecmdSettings.getProperty("BankingGoldbarCount", "1"));
                 BANKING_SYSTEM_ADENA = Integer.parseInt(voicecmdSettings.getProperty("BankingAdenaCount", "500000000"));

Arquivos Anexados
Tipo de Arquivo: txt Voiced Command Teleport.txt (11.4 KB, 39 visualizações) Baixar
Mazokista está offline  
Os Seguintes 3 Usuários disseram Obrigado(a) para Mazokista por gostarem deste post :
Kinho! (28-09-2010), Sirius (03-02-2012), {ADM}-Fenex (11-10-2010)
Links Patrocinados
 


Regras para Posts
Você não pode postar novos tópicos
Você não pode postar respostas
Você não pode postar anexos
Você não pode editar seus posts

Código [IMG] Sim
Código HTML Não

Ir para...


Horários baseados na GMT -3. Agora são 10:52 PM.