Jump to content
  • 0

How to make skill usable only in olympiad?


Question

5 answers to this question

Recommended Posts

  • 0
Posted

I hope that you understand the question.

I need to make skill "steal of divinity" usable only in olympiad. Is it possible?

Like l2inception?! OMGF! why? SoulHound is wonderful class and you destroy it! Just increase reuse! Dont Do it usable only at Olympiad!

  • 0
Posted

A possible way is to add this in L2Character CheckDoCastConditions boolean.

        if (this instanceof L2PcInstance && !((L2PcInstance)this).isInOlympiadMode() && skill.getSkillType() == L2SkillType.STEAL_BUFF))
        {
        	SystemMessage sm = new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED);
	sm.addSkillName(skill);
        	sendPacket(sm);
        	return false;
        }

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