Jump to content
  • 0

How to make skill usable only in olympiad?


DarkCore

Question

5 answers to this question

Recommended Posts

  • 0

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!

Link to comment
Share on other sites

  • 0

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;
        }

Link to comment
Share on other sites

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