Jump to content
  • 0

[HELP] Disallow Mana Potion in combat in Last Rev EP?


Question

Posted

l2jdp: revision="7664"

l2jserver: revision="4415"

 

 

My question is how disallowed MP Potions in combat (Purple State), in previews Revs. there we have a Potions.java but in this last this is not anymore so i wonder where i need to put this code:

 

Search bla bla:

 

if (activeChar.isAllSkillsDisabled())
	{
		activeChar.sendPacket(ActionFailed.STATIC_PACKET);
		return;
	}

 

And past this:

 

if (activeChar.getPvpFlag() != 0)
	{
		if (item.getItemId() == your itemID)
		{
		    activeChar.sendMessage("You cannot use this in pvp mode!");
		    return;
		}
	}

 

I try this in useitem.java but give error:

 

manapotionincombaterrorf.jpg

 

If someone can help me will be great. thx.  ::)

 

EDITED: Solved, Big thx to CopyLeft for create a new way to make this work on last EP Rev.!

1 answer to this question

Recommended Posts

  • 0
Posted
EDITED: Solved, Big thx to CopyLeft for create a new way to make this work on last EP Rev.!

 

Topic Locked.

Guest
This topic is now closed to further replies.


×
×
  • Create New...