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 :)

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