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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • 我们计划在我们的Telegram频道为3000名订阅者举办大型竞赛和抽奖活动。 订阅并获取我们项目的最新消息、更新和变动:竞赛、抽奖、新产品、折扣、优惠码以及更多内容! 在我们的竞赛和抽奖活动中,顶级合作伙伴也可以参与,这一定会引起您的关注! ➡ Telegram频道: https://t.me/accsforyou_shop✅ 链接: 数字商品商店 (网站): 前往 购买Telegram Stars的Telegram机器人: 前往 SMM面板: 前往 – 推广您的社交媒体账户。 商店Telegram机器人: 前往 我们为您呈现在本平台购买产品和服务的最新促销与特别优惠: 1. 使用促销码OCTOBER2025(8%折扣)即可在10月通过我们的网站或机器人购物!您也可以使用促销码SOCNET(15%折扣)完成首次购买。 2. 注册后只需按照以下模板写下您的用户名即可获得1美元账户余额或10–20%的折扣:"SEND ME BONUS, MY USERNAME IS..." – 需要在我们的论坛帖子中发布! 3. 第一次试用SMM面板即可获得1美元:只需在我们的网站(支持)提交主题为“Get Trial Bonus”的工单。 4. 我们的Telegram频道和购买Stars的机器人中每周都有Telegram Stars赠送活动! 新闻: ➡ Telegram频道: https://t.me/accsforyou_shop✅ ➡ WhatsApp频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord服务器: https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅
    • 我们计划在我们的Telegram频道为3000名订阅者举办大型竞赛和抽奖活动。 订阅并获取我们项目的最新消息、更新和变动:竞赛、抽奖、新产品、折扣、优惠码以及更多内容! 在我们的竞赛和抽奖活动中,顶级合作伙伴也可以参与,这一定会引起您的关注! ➡ Telegram频道: https://t.me/accsforyou_shop✅ 链接: 数字商品商店 (网站): 前往 购买Telegram Stars的Telegram机器人: 前往 SMM面板: 前往 – 推广您的社交媒体账户。 商店Telegram机器人: 前往 我们为您呈现在本平台购买产品和服务的最新促销与特别优惠: 1. 使用促销码OCTOBER2025(8%折扣)即可在10月通过我们的网站或机器人购物!您也可以使用促销码SOCNET(15%折扣)完成首次购买。 2. 注册后只需按照以下模板写下您的用户名即可获得1美元账户余额或10–20%的折扣:"SEND ME BONUS, MY USERNAME IS..." – 需要在我们的论坛帖子中发布! 3. 第一次试用SMM面板即可获得1美元:只需在我们的网站(支持)提交主题为“Get Trial Bonus”的工单。 4. 我们的Telegram频道和购买Stars的机器人中每周都有Telegram Stars赠送活动! 新闻: ➡ Telegram频道: https://t.me/accsforyou_shop✅ ➡ WhatsApp频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord服务器: https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅
    • 我们计划在我们的Telegram频道为3000名订阅者举办大型竞赛和抽奖活动。 订阅并获取我们项目的最新消息、更新和变动:竞赛、抽奖、新产品、折扣、优惠码以及更多内容! 在我们的竞赛和抽奖活动中,顶级合作伙伴也可以参与,这一定会引起您的关注! ➡ Telegram频道: https://t.me/accsforyou_shop✅ 链接: 数字商品商店 (网站): 前往 购买Telegram Stars的Telegram机器人: 前往 SMM面板: 前往 – 推广您的社交媒体账户。 商店Telegram机器人: 前往 我们为您呈现在本平台购买产品和服务的最新促销与特别优惠: 1. 使用促销码OCTOBER2025(8%折扣)即可在10月通过我们的网站或机器人购物!您也可以使用促销码SOCNET(15%折扣)完成首次购买。 2. 注册后只需按照以下模板写下您的用户名即可获得1美元账户余额或10–20%的折扣:"SEND ME BONUS, MY USERNAME IS..." – 需要在我们的论坛帖子中发布! 3. 第一次试用SMM面板即可获得1美元:只需在我们的网站(支持)提交主题为“Get Trial Bonus”的工单。 4. 我们的Telegram频道和购买Stars的机器人中每周都有Telegram Stars赠送活动! 新闻: ➡ Telegram频道: https://t.me/accsforyou_shop✅ ➡ WhatsApp频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord服务器: https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅
    • 我们计划在我们的Telegram频道为3000名订阅者举办大型竞赛和抽奖活动。 订阅并获取我们项目的最新消息、更新和变动:竞赛、抽奖、新产品、折扣、优惠码以及更多内容! 在我们的竞赛和抽奖活动中,顶级合作伙伴也可以参与,这一定会引起您的关注! ➡ Telegram频道: https://t.me/accsforyou_shop✅ 链接: 数字商品商店 (网站): 前往 购买Telegram Stars的Telegram机器人: 前往 SMM面板: 前往 – 推广您的社交媒体账户。 商店Telegram机器人: 前往 我们为您呈现在本平台购买产品和服务的最新促销与特别优惠: 1. 使用促销码OCTOBER2025(8%折扣)即可在10月通过我们的网站或机器人购物!您也可以使用促销码SOCNET(15%折扣)完成首次购买。 2. 注册后只需按照以下模板写下您的用户名即可获得1美元账户余额或10–20%的折扣:"SEND ME BONUS, MY USERNAME IS..." – 需要在我们的论坛帖子中发布! 3. 第一次试用SMM面板即可获得1美元:只需在我们的网站(支持)提交主题为“Get Trial Bonus”的工单。 4. 我们的Telegram频道和购买Stars的机器人中每周都有Telegram Stars赠送活动! 新闻: ➡ Telegram频道: https://t.me/accsforyou_shop✅ ➡ WhatsApp频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t✅ ➡ Discord服务器: https://discord.gg/y9AStFFsrh✅ 联系方式与支持: ➡ Telegram: https://t.me/socnet_support✅ ➡ WhatsApp: https://wa.me/79051904467✅ ➡ Discord: socnet_support ✅ ➡ ✉ 邮箱: solomonbog@socnet.store ✅
  • 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