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

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
Answer this question...

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