Help With Java code
Posted: Fri Apr 16, 2010 1:14 pm
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4083
L2JDP Revision Number:7268
Where i must put this code?
Thanks for help
» Find Revision
L2J Revision Number:4083
L2JDP Revision Number:7268
I want to put this code on my server, but i dont find this file, potion.javago to com.l2jfree.gameserver.handler.itemhandler.potion.java
search for this:
Code:
if (activeChar.isAllSkillsDisabled())
{
activeChar.sendPacket(ActionFailed.STATIC_PACKET);
return;
}
then after that insert this:
Code:
if (activeChar.getPvpFlag() != 0)
{
if (item.getItemId() == your itemID)
{
activeChar.sendMessage("You cannot use this in pvp mode!");
return;
}
}
Where i must put this code?
Thanks for help