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!

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.




×
×
  • 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