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.!
06/12/2024 21:00 GMT +2
High Five - PvP server x45 - Aria Victoria Style 2004
NPC Buffer & Enchanted NPC Buffer.
Global Gatekeeper.
Clan Hall Teleports & Clan GM Shop (-20%).
Offline Shop.
GM shop up to B Grade.
Auto Farm system.
TvT - CTF - DM - Party Farm - Event Boss
Craftable Hero Weapon.
Instances Solo and Party, weekly and daily.
No kamael.
More informations can be found on our website including a "how to connect" greek guide
Valkyria is based on aCis
https://l2valkyria.com
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