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);
}
A small reminder for everyone browsing here - our bonus-start is active starting from today, you can already play with the new benefits! Have a good time everyone 🙂
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