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);
}
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
but this doesn't work what wrong?
4 answers to this question
Recommended Posts