Jump to content

Recommended Posts

Posted

Hello this is a voice that typing. Leader you are teleported to where your clan leader is.

 

Testing and running at 100% H5

 

### Eclipse Workspace Patch 1.0
#P KingServer
Index: dist/game/config/KingServer.properties
===================================================================
--- dist/game/config/KingServer.properties (revision 20)
+++ dist/game/config/KingServer.properties (working copy)
@@ -207,4 +207,8 @@

# Comando .pmoff para bloquear mensagens e .pmon para permitir o recebimento de pms
# Padrao (Default): False
-CommandPmOff = False
\ No newline at end of file
+CommandPmOff = False
+
+# Comando .lider para teleportar para o seu lider online
+# Padrao (Default): False
+CommandLider = False
\ No newline at end of file
Index: java/king/server/KingServer.java
===================================================================
--- java/king/server/KingServer.java (revision 20)
+++ java/king/server/KingServer.java (working copy)
@@ -126,7 +126,9 @@
         public static boolean COMMAND_TRADE_OFF;
//.online
         public static boolean ALLOW_GET_ONLINE;
-
+ // .lider
+ public static boolean COMMAND_LIDER;
+
  // --------------------------------------------------
  //              OPCOES RELACIOANDAS A LOJAS             //
// --------------------------------------------------
@@ -233,7 +235,9 @@
                                 COMMAND_TRADE_OFF = Boolean.parseBoolean (KingSettings.getProperty("CommandTradeOff", "false"));
//.online
                                 ALLOW_GET_ONLINE = Boolean.parseBoolean(KingSettings.getProperty("AllowGetOnline", "False"));
-
+ //.lider
+                        COMMAND_LIDER = Boolean.parseBoolean(KingSettings.getProperty("CommandLider", "False"));
+                       
//############################### OPCOES RELACIONADAS A LOJAS ##############################//
                                 //Distancia entre player/npc para montar loja
SHOP_MIN_RANGE_ENABLE = Boolean.parseBoolean(KingSettings.getProperty("ShopMinRangeEnable", "false"));                  
#P DataPack
Index: dist/game/data/scripts/handlers/voicedcommandhandlers/Lider.java
===================================================================
--- dist/game/data/scripts/handlers/voicedcommandhandlers/Lider.java (revision 0)
+++ dist/game/data/scripts/handlers/voicedcommandhandlers/Lider.java (working copy)
@@ -0,0 +1,154 @@
package handlers.voicedcommandhandlers;

import king.server.KingServer;
import king.server.gameserver.handler.IVoicedCommandHandler;
import king.server.gameserver.instancemanager.CastleManager;
import king.server.gameserver.model.L2World;
import king.server.gameserver.model.actor.instance.L2PcInstance;

public class Lider implements IVoicedCommandHandler
{
        private static final String[] VOICED_COMMANDS = { "lider"};
        
        @Override
        public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
        {
                
                if (KingServer.COMMAND_LIDER)
                {
                        
                        if (command.equalsIgnoreCase("lider"))
                        {
                                
                                if (activeChar.getClan() == null)
                                {
                                        return false;
                                }
                                
                                L2PcInstance leader;
                                leader = (L2PcInstance) L2World.getInstance().findObject(activeChar.getClan().getLeaderId());
                                
                                if (leader == null)
                                {
                                        activeChar.sendMessage("Seu lider nao estar online.");
                                        return false;
                                }
                                else if (leader.isInJail())
                                {
                                        activeChar.sendMessage("Seu lider estar na Jaula.");
                                        return false;
                                }
                                else if (leader.isInOlympiadMode())
                                {
                                        activeChar.sendMessage("Seu lider estar em Olympiada.");
                                        return false;
                                }
                                else if (leader.isInDuel())
                                {
                                        activeChar.sendMessage("Seu lider estar em um Duelo.");
                                        return false;
                                }
                                else if (leader.isFestivalParticipant())
                                {
                                        activeChar.sendMessage("Seu lider estar em algum festival.");
                                        return false;
                                }
                                else if (leader.isInParty() && leader.getParty().isInDimensionalRift())
                                {
                                        activeChar.sendMessage("Seu lider estar em dimensional rift.");
                                        return false;
                                }
                                else if (leader.inObserverMode())
                                {
                                        activeChar.sendMessage("Seu lider estar em modo de Observacao.");
                                }
                                else if ((leader.getClan() != null) && (CastleManager.getInstance().getCastleByOwner(leader.getClan()) != null) && CastleManager.getInstance().getCastleByOwner(leader.getClan()).getSiege().getIsInProgress())
                                {
                                        activeChar.sendMessage("O seu lider esta em cerco, voce nao pode ir para o seu lider.");
                                        return false;
                                }
                                
                                else if (activeChar.isInJail())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando na Jaula!");
                                        return false;
                                }
                                else if (activeChar.isInOlympiadMode())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando em um Olympiada.");
                                        return false;
                                }
                                else if (activeChar.isInDuel())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando em Duelo!");
                                        return false;
                                }
                                else if (activeChar.inObserverMode())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando em modo de Observacao.");
                                }
                                else if ((activeChar.getClan() != null) && (CastleManager.getInstance().getCastleByOwner(activeChar.getClan()) != null) && CastleManager.getInstance().getCastleByOwner(activeChar.getClan()).getSiege().getIsInProgress())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando em Sierge.");
                                        return false;
                                }
                                else if (activeChar.isFestivalParticipant())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando em festival.");
                                        return false;
                                }
                                else if (activeChar.isInParty() && activeChar.getParty().isInDimensionalRift())
                                {
                                        activeChar.sendMessage("Voce nao pode ir estando em dimensional rift.");
                                        return false;
                                }
                                else if (activeChar == leader())
                                {
                                        activeChar.sendMessage("Voce nao pode se teletransportar para si mesmo.");
                                        return false;
                                }
                                if (activeChar.getInventory().getItemByItemId(57) == null)
                                {
                                        activeChar.sendMessage("Voce precisa de 1000 ou mais adenas para Teleporta ate seu lider.");
                                        return false;
                                }
                                int leaderx;
                                int leadery;
                                int leaderz;
                                
                                leaderx = leader.getX();
                                leadery = leader.getY();
                                leaderz = leader.getZ();
                                
                                activeChar.teleToLocation(leaderx, leadery, leaderz);
                                activeChar.sendMessage("Voce foi teletransportado para o seu lider!");
                                activeChar.getInventory().destroyItemByItemId("RessSystem", 57, 1000, activeChar, activeChar.getTarget());
                                activeChar.sendMessage("1000 Adenas foram usadas, Obrigado!");
                        }
                        
                        else
                        {
                                activeChar.sendMessage("Comando Desabilitado pelo Admin");
                        }
                        
                        return true;
                }
                return false;
        }
        
        public L2PcInstance leader()
        {
                return null;
        }
        
        @Override
        public String[] getVoicedCommandList()
        {
                return VOICED_COMMANDS;
        }
        
}

 

\DataPack\dist\game\data\scripts\handlers\MasterHandler.java

import handlers.voicedcommandhandlers.InfoCommand;
import handlers.voicedcommandhandlers.Lang;
+import handlers.voicedcommandhandlers.Lider;
import handlers.voicedcommandhandlers.pmoff;
import handlers.voicedcommandhandlers.Online;
import handlers.voicedcommandhandlers.Teleport;

==============================

// SetVCmd.class,
		InfoCommand.class,
		BuyRec.class,
		Online.class,
		TradeOff.class,
		pmoff.class,
		Teleport.class,
		+Lider.class,
		(Config.L2JMOD_ALLOW_WEDDING ? Wedding.class : null),
		(Config.BANKING_SYSTEM_ENABLED ? Banking.class : null),
		(Config.TVT_ALLOW_VOICED_COMMAND ? TvTVoicedInfo.class : null),
		(Config.L2JMOD_CHAT_ADMIN ? ChatAdmin.class : null),
		(Config.L2JMOD_MULTILANG_ENABLE && Config.L2JMOD_MULTILANG_VOICED_ALLOW ? Lang.class : null),
		(Config.L2JMOD_DEBUG_VOICE_COMMAND ? Debug.class : null),
		(Config.L2JMOD_ALLOW_CHANGE_PASSWORD ? ChangePassword.class : null),
		(Config.L2JMOD_HELLBOUND_STATUS ? Hellbound.class : null),
	},
	{

 

Installed on Rev. Kingserver H5, 100% Functional

 

Crédits: BossForever e My

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hi everyone, A while ago, I needed to extract some L2 textures and found that acmi's L2Tool was a good way to do it. There might be other methods out there but I'm not aware of them, so I decided to fork this project and improve it to suit my needs. I built this using BellSoft Liberica JDK 17. Since modern Java versions no longer include JavaFX by default, I've made the app handle it automatically. You don't need any manual setup—just use the  run.bat  and it will automatically extract the required JavaFX modules on the first run. Key features of this fork: UI Overhaul: I've tweaked the interface to give it a cleaner look with Dark Mode and more detailed metadata for each texture. Export Formats: You can now extract textures in WEBP, PNG, and DDS. Individual or Batch Export: Flexible options to export a single selected texture or the entire package at once.     I'm leaving the link here in case it's useful to anyone!   Installation and Execution:     Clone the repository:   https://github.com/Ak4n1/l2tool cd l2tool          2.Build the project:   ./gradlew build              3. Run the application:         ./run.bat      Or simply double-click on run.bat.    
    • Wtb full account or items on l2 warland 
    • https://discord.gg/k53SZ4DM5z   Interlude Client L2Old Pride is a L2 Pride Interlude Based All functional skills (Not archer/mage server)   L2Old Pride Helper (Works like Woundrous Cubic) https://imgur.com/iYqmHQY Farm Zones: Cave of Trials and Elven Ruins (Chaotic) Olympiads: Every 15 days Various Cosmetic Items https://imgur.com/uoeU6Jw https://imgur.com/oCS2Zed PvP Zone: Gludin Village (No-Parties, Disguised) More than 100 new Skills https://imgur.com/6RaPsQV Max Level: 90 https://imgur.com/z4QVJKZ Gaining Xp by PVP https://imgur.com/LRqI31T Purchasable S-grade items +10 or +20 with random chance to enchant +5 Purchasable Custom Items Depends on Tier Mysterious Merchants https://imgur.com/2ZwWyPH Auto Enchant Via PvPing (with low chance) Custom Raid Bosses Siege Every Weekend (Aden, Rune, Giran) Autofarm / Drop Tracker https://imgur.com/Vz3rha6   RATES: • Start Level 80 • Max level 90  • EXP: 5000x • SP: 5000x • ADENA 6000x   ENCHANT: • Maximum enchant S Grade Items: +35. • Maximum enchant Unique/Epic Items: +25. • Maximum enchant Legendary Items: +18. • Maximum enchant Relic Items: +14. •Descriptions for rate at scrolls!   EVENTS: • TEAMS vs TEAMS • CAPTURE THE FLAG • DOMINATION • DEATH MATCH • DICE OF DEATH • CHAOTIC ZONE   OTHERS: Assistance system in pvps. Where support classes are enabled to receive pvp with a low chance, for supporting a party member during pvp. •  /sit to regen HP/MP/CP • Custom Shots Glows https://imgur.com/FLK0DmR • Achievements System • Daily Tasks System • Monthly Tasks System   CUSTOM ARMORS SETS Dread Armor/Titanium Armor Pride Armor Rykros Armor https://imgur.com/SPxoQp1   CUSTOM WEAPONS SETS Unique Weapons Pride Weapons Legendary Weapons Relic Weapons https://imgur.com/kOHNXhS   CUSTOM ACCESSORIES Standard Superior Legendary https://imgur.com/zPqNiiX   CUSTOM JEWELS/TATTOO Legendary Nightmarish https://imgur.com/gcqS28P There are many more features that you will only understand by playing and following. Beta testing server is currently open. Follow us on our discord and join our server to test it.
    • You shouldn't use rev 382, not sure why everyone keep using that.   I don't make changesets for fun, I don't make new revisions for nothing.   Follow the revisions.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock