Jump to content
  • 0

Castles For Alliances.


Question

5 answers to this question

Recommended Posts

  • 0
Posted

Hello. Can somebody helps me to make castles/sieges for the whole ally, not only for clans.

what you mean?

 

making clan leader skill available for ally's clan leader too?

  • 0
Posted (edited)

- ally leader can register the ally for siege, instead of clan leader register his clan.

 

- only ally leader can take the castle.

 

- only ally leader can use skill for praying.

 

- the whole alliance is able to use the castle function.

(Maybe only open/close doors and soe to castle. I will create a c7som NPC for the rest functions.)

Edited by raF
  • 0
Posted

Maybe the praying and registering part are not really important(who care who will overtake it if they all got it?), but my aim is to open castle functions for the whole alliance. I mean teleportation to castle and open/close doors.

  • 0
Posted (edited)

You have to rework some methods to fit with your idea, for example L2CastleDoormenInstance

    @Override
    protected final boolean isOwnerClan(L2PcInstance player)
    {
        if (player.getClan() != null)
        {
            if (getCastle() != null)
            {
                // player should have privileges to open doors
                if (player.getClanId() == getCastle().getOwnerId() && (player.getClanPrivileges() & L2Clan.CP_CS_OPEN_DOOR) == L2Clan.CP_CS_OPEN_DOOR)
                    return true;
            }
        }
        return false;
    }
Edited by SweeTs

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..