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,iv got fafurion running localy just for fun and seems that files dont have geodata couse i can hit through walls so are mobs.Anyone can tell me how to activate geodata or where to insert geodata files?
You're talking complete nonsense. The source code of SphereAPI, which handles all requests, is closed and has never been published anywhere.
That return $this doesn't affect anything, PHP just ignores it. Why are you showing it?
Yes, of course I want that, and I’m asking you — go ahead and hack it, I’d even be thankful. The most you can probably do is launch a DDoS attack, but that’s not hacking. The IP you see is just a public one, used by default to handle requests. There are many other IPs involved, which aren’t disclosed for privacy reasons.
So, when should I expect your hacker attack?
If you fail, it means you talked big for nothing. I hope you're not all talk and can actually back up your words.
UPD: To make your task easier, I have disabled limits on incorrect and failed requests, so your site/IP won't get blocked.
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.