please help! Mana potion disable in pvp

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
LadyEva
Posts: 2
Joined: Sat Dec 18, 2010 8:56 pm

please help! Mana potion disable in pvp

Post by LadyEva »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4443
L2JDP Revision Number:7695

I agree in the itemskill.java

Code: Select all

package handlers.itemhandlers; import com.l2jserver.gameserver.model.L2ItemInstance;import com.l2jserver.gameserver.model.actor.L2Playable;import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;import com.l2jserver.gameserver.network.SystemMessageId;import com.l2jserver.gameserver.network.serverpackets.SystemMessage;import com.l2jserver.gameserver.model.actor.L2Character; /** * Item skills not allowed on olympiad */public class ItemSkills extends ItemSkillsTemplate{    /**     *      * @see com.l2jserver.gameserver.handler.IItemHandler#useItem(com.l2jserver.gameserver.model.actor.L2Playable, com.l2jserver.gameserver.model.L2ItemInstance, boolean)     */    @Override    public void useItem(L2Playable playable, L2ItemInstance item, boolean forceUse)    {        final L2PcInstance activeChar = playable.getActingPlayer();        if (activeChar != null && activeChar.isInOlympiadMode())        {            activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.THIS_ITEM_IS_NOT_AVAILABLE_FOR_THE_OLYMPIAD_EVENT));            return;        }        {        if (activeChar.isInsideZone(L2Character.ZONE_ARENA))                {                activeChar.sendMessage("You can't use potions in PvP Zone.");              return;         }}  
It isn't run.

Any idea?
Image
User avatar
Copyleft
Posts: 253
Joined: Fri Feb 01, 2008 9:39 pm

Re: please help! Mana potion disable in pvp

Post by Copyleft »

search
and that code is to disable potions in pvp zones :/
User avatar
LadyEva
Posts: 2
Joined: Sat Dec 18, 2010 8:56 pm

Re: please help! Mana potion disable in pvp

Post by LadyEva »

Copyleft wrote:search
and that code is to disable potions in pvp zones :/
yes, but the potions does not disable :S
Image
Post Reply