This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
forsas
I want create like this code if player is in olympiad mode he can only use this skill other places he cannot use this skill.
i create like this in l2pcinstance.java useMagic method
if (skill.getId() == 1345) { sendMessage("You can use this skill only in olympiad mode."); sendPacket(ActionFailed.STATIC_PACKET); return; } else { isInOlympiadMode(); sendPacket(ActionFailed.STATIC_PACKET); }but this doesn't work what wrong?
4 answers to this question
Recommended Posts