Jump to content

Question

Posted

Hello, I want to make skill - seal of ruler (246) can be used on my NPC, not in siege time. I removed all check in 

net.sf.l2j.gameserver.handler.skillhandlers.TakeCastle.java,
@Override
public void useSkill(L2Character activeChar, L2Skill skill, L2Object[] targets)
{
if (activeChar == null || !(activeChar instanceof L2PcInstance))
return;

if (targets.length == 0)
return;

final L2PcInstance player = (L2PcInstance) activeChar;
//if (!player.isClanLeader())
//return;

//final Castle castle = CastleManager.getInstance().getCastle(player);
//if (castle == null || !player.checkIfOkToCastSealOfRule(castle, true, skill, targets[0]))
//return;

player.sendMessage("engraved");
}

But when I try to cast it on ArtefactInstance NPC (e.g. 35279) it says  - Seal of ruler cannot be used due to unsuitable terms, why?

3 answers to this question

Recommended Posts

  • 0
Posted

How you want to use it? Also, why you don't have the engrave method?

 

I just want to add artefacts in some locations and make all players can cast, almost done, there were checks in L2Pcistance by target type.

  • 0
Posted

Yes, it checks if siege is in progress, if it's a castle zone and if the pcinstance is a clan leader registered in the attack list... in GvE the first check was removed, the second and third was modified :)

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


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock