raF Posted March 23, 2015 Posted March 23, 2015 Hello. Can somebody helps me to make castles/sieges for the whole ally, not only for clans. Quote
0 Klay Posted March 23, 2015 Posted March 23, 2015 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? Quote
0 raF Posted March 23, 2015 Author Posted March 23, 2015 (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 March 23, 2015 by raF Quote
0 Ayami- Posted March 24, 2015 Posted March 24, 2015 Isnt it pointless that ally will make everything? Pray and castle to be shared from both sounds legit Quote
0 raF Posted March 24, 2015 Author Posted March 24, 2015 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. Quote
0 SweeTs Posted March 27, 2015 Posted March 27, 2015 (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 March 27, 2015 by SweeTs Quote
Question
raF
Hello. Can somebody helps me to make castles/sieges for the whole ally, not only for clans.
5 answers to this question
Recommended Posts
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.