Jump to content

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


Recommended Posts

Posted

need help please i am newbie so i don't know how to create this file Cl.java help me please...

 

Use search next time, its so hard to take a look at sticked guides?

 

For example check this one and others too.

  • 1 month later...
Posted

eh..... Check that in the code:

               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!");

RessSystem?? xexe. Anyway very usefull like .ch thanks.

  • 3 months later...
Posted

There is a bag this this command... when someone is at tvt event he can go to take buffs...

 

So put simple check to fix it.

Posted

There is a bag this this command... when someone is at tvt event he can go to take buffs...

 

A bag? Dooh..

 

if (activeChar.isInTvTEvent()) //or however it is in your pack
              {
                 activeChar.sendMessage("You can't use this command while participating in TvT!");
                 return false;
              }

-------------------

if(leader.isInTvTEvent()) //same
            {
                activeChar.sendMessage("You can't teleport to your leader, because he is currently participating in the TvT Event.");
                return false;
            }

 

Big deal..

  • 1 month later...
Posted

lol its not same,,

if (activeChar.isInTvTEvent()) //or however it is in your pack

              {

                activeChar.sendMessage("You can't use this command while participating in TvT!");

                return false;

              }

means *YOU* in a TVT

and thisif

(leader.isInTvTEvent())

            {

                activeChar.sendMessage("You can't teleport to your leader, because he is currently participating in the TvT Event.");

                return false;

            }

your *CLAN LEADER* is in TVT :)

Posted

lol its not same,,

if (activeChar.isInTvTEvent()) //or however it is in your pack

              {

                activeChar.sendMessage("You can't use this command while participating in TvT!");

                return false;

              }

means *YOU* in a TVT

and thisif

(leader.isInTvTEvent())

            {

                activeChar.sendMessage("You can't teleport to your leader, because he is currently participating in the TvT Event.");

                return false;

            }

your *CLAN LEADER* is in TVT :)

 

you sir Fail

Posted

here for party leader

 

          if (activeChar.getParty() == null)

              {

                return false;

              }

       

            L2PcInstance leader;

            leader = (L2PcInstance)L2World.getInstance().findObject(activeChar.getParty().getLeader());

 

but i got a error The method findObject(int) in the type L2World is not applicable for the arguments (L2PcInstance)

 

Edit: found problem Ty for nice share!

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

    • QR code recognition has been added when logging into Google services that include this request. Instructions have been added to product descriptions; this only works for items that include this information.
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here  https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..