Jump to content

[Share] .cl voice command - Teleports you to your clan leader


Recommended Posts

Posted

Takes one goldbar and teleports you to your clan leader...

 

Create new file called Cl.java in net.sf.l2j.gameserver.handler.voicedcommandhandlers

 

http://adf.ly/8oklM

 

Go to net.sf.l2j.gameserver.GameServer.java

 

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Cl;

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.Wedding;

 

_voicedCommandHandler.registerVoicedCommandHandler(new Cl());

_log.config("VoicedCommandHandler: Loaded .cl VoiceCommand handler.");

 

_log.config("VoicedCommandHandler: Loaded " + _voicedCommandHandler.size() + " handlers.");

 

 

Thanx TheOneGandalf for ideas ^^

Posted

If you dont want to use it during pvp try this code

 

            +if (activeChar.isInCombat())

            +{

            +activeChar.sendMessage("You cannot use this command in combat mode.");

            +return false;

            +}

           int leaderx;

               int leadery;

               int leaderz;

               

               leaderx = leader.getX();

               leadery = leader.getY();

               leaderz = leader.getZ();

               +activeChar.setIsParalyzed(true);        

               +activeChar.disableAllSkills();

               

               activeChar.teleToLocation(leaderx, leadery, leaderz);

               activeChar.sendMessage("You have been teleported to your leader!");

               activeChar.getInventory().destroyItemByItemId("RessSystem", 3470, 1, activeChar, activeChar.getTarget());

               activeChar.sendMessage("One GoldBar has dissapeared! Thank you!");

               +activeChar.enableAllSkills();

               +activeChar.setIsParalyzed(false);

 

 

 

same for .ch command...

 

Setting a timer would be a waste of code and resources

Posted

this is a good thing..but its kinda wired .. why don't u create a skill handler that makes castle lord crown summon all clan members or a voice command that dose that...that wold be cool xD

 

Imagine a entire clan spawns  in the enemy's face xD that pwns dude xD specialy on faction servers...

  • 9 months later...
  • 3 weeks later...

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

    • Hello everyone, we provide such services. We make websites from scratch, projects from scratch at good prices. If you want to buy yourself a high-quality and good project, then come to us discord - mmopromo_17389 telegram - https://t.me/mmopromo
    • 𝐋𝐈𝐍𝐄𝐀𝐆𝐄 𝐈𝐈 𝐂𝐋𝐀𝐒𝐒𝐈𝐂 𝐄𝐈𝐍𝐇𝐎𝐕𝐀𝐍𝐓   Are you ready to relive the true Classic Lineage 2 experience? Our server brings you a hardcore x1 rate with a modern twist—a vitality system that helps casual players keep up!   🛡 Key Features: ✅ No Dualboxing – Every player controls only one character, making party play and community interaction stronger! ✅ Classic Chronicles 1.0 → 2.5 – Start from the very beginning and experience the progression up to Chronicle 2.5! ✅ Improved Buff System & Support Classes – Get the most out of your character with a reworked buff system and enhanced support classes. ✅ New & Reworked Skills – All classes have received updates, balancing the game and bringing fresh mechanics! ✅ Motivating Gameplay – Designed to keep you engaged and progressing, without feeling like an endless grind! 📖 Don't miss out on reading the wiki with all the new features that have been added to the gameplay!   🎉 Server launched on February 7th! Join now and be part of an active, competitive, and passionate community! Links: https://l2einhovant.net https://discord.com/invite/l2einhovant  
    • Change Of Heart Event is now available!     This weekend's mini event will merge with an  all-time classic event. Available 14-16 Feb. -Change of Hearts  classic event is enabled . -Inventory space increased by 10  -Elemental stones  & Raid drops increased by 10% -There is a small chance to fully recover your vitality while taking down monsters Change of hearts classic event details: -Monsters drop heart pieces with a 20% chance. -Collect the full set of 9 pieces and play a game: 1 win: L2Day buff scrolls 2 wins: Greater Potions 3 wins: x1  Blessed Scroll of Escape 4 wins: x1  Blessed Scroll of Resurrection 5 wins: x2  Scroll: Enchant Weapon (C) 6 wins: x4  Scroll: Enchant Armor (B) 7 wins: x1  Scroll: Enchant Weapon (B) 8 wins: x3  Scroll: Enchant Armor (A) 9 wins: x1  Scroll: Enchant Weapon (A) 10 wins: x2  Scroll: Enchant Armor (S) 11 wins: x1 Scroll: Enchant Weapon (S) & 20% Chance to get TOP A weapon Connect -> https://vanilla.playinera.com/connect/ Discord: https://discord.com/invite/WD8fWf5  
    • thanks. for a moment i thought you were on the side of evil.
  • Topics

×
×
  • Create New...