As the title says, on my server I have the custom cloaks (Aden Cloak, Dion Cloak, etc...) and I want only the members that own that castle to equip them. And if they loose the castle, they loose the cloak.
Kinda like the "The Lord's Crown".
I have been editing some java code inside the chamberlain configuration but it hasn't worked.
Here is the code i came up with:
else if (actualCommand.equals("give_cloak"))
{
if (siegeBlocksFunction(player))
return;
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
if (player.isClanLeader() && _castleId==5) <-I made that custom, so that the castle was Aden
{
if (player.getInventory().getItemByItemId(64000) == null)<-Aden Cloak ID
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.
hello everyone !
I need help with a l2script Rev H5-Salvation/Classic build. I compiled the project, installed everything but I can't log in to the server, it won't log me in. I tried a thousand ways without good results. I leave you the error when logging in either with the H5-Salvation Client.
ERROR ---> WARN: IPBANMANAGER ---> IP !!!!
I'm waiting for help! Thank you!
Hello !
I have a problem when connecting to the pack with the Salvation client, it blocks my IP, I see that the account is created in the database but it remains logged in.
Any idea what it could be? ALso with H5 CLient !
Thank you !
Question
InfinityOwners
As the title says, on my server I have the custom cloaks (Aden Cloak, Dion Cloak, etc...) and I want only the members that own that castle to equip them. And if they loose the castle, they loose the cloak.
Kinda like the "The Lord's Crown".
I have been editing some java code inside the chamberlain configuration but it hasn't worked.
Here is the code i came up with:
else if (actualCommand.equals("give_cloak"))
{
if (siegeBlocksFunction(player))
return;
NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());
if (player.isClanLeader() && _castleId==5) <-I made that custom, so that the castle was Aden
{
if (player.getInventory().getItemByItemId(64000) == null)<-Aden Cloak ID
{
L2ItemInstance crown = player.getInventory().addItem("Aden Cloak", 64000, 1, player, this);
SystemMessage ms = new SystemMessage(SystemMessageId.EARNED_ITEM);
ms.addItemName(crown);
player.sendPacket(ms);
html.setFile(player.getHtmlPrefix(), "data/html/chamberlain/chamberlain-gavecrown.htm");
html.replace("%CharName%", String.valueOf(player.getName()));
html.replace("%FeudName%", String.valueOf(getCastle().getName()));
}
else
html.setFile(player.getHtmlPrefix(), "data/html/chamberlain/chamberlain-hascrown.htm");
}
else
html.setFile(player.getHtmlPrefix(), "data/html/chamberlain/chamberlain-noprivs.htm");
player.sendPacket(html);
return;
}
Ofcourse after that i edited the chamberlain html and added this line:
<a action="bypass -h npc_%objectId%_give_cloak">Aden Cloak</a><br>
7 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.