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:
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.!
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
Chakl22
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:
And past this:
I try this in useitem.java but give error:
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