I got this code and i want to put an else if clan is allready level 8 on void but i dont know on this specific pack how to do it .. any idea? .. thanks
public void useItem(L2PlayableInstance playable, L2ItemInstance item)
{
if(!(playable instanceof L2PcInstance))
return;
if (item == null)
{
return;
}
L2PcInstance player = (L2PcInstance)playable;
if (!player.isClanLeader())
{
player.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addItemName(item));
return;
}
else if (player.isInOlympiadMode())
{
player.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addItemName(item));
return;
}
else
{
if(player.destroyItem("Consume", item.getObjectId(), 1, null, false))
{
if (Config.ALLOW_ITEM_SET_LEVEL)
{
player.getClan().changeLevel(Config.CLAN_ITEM_LEVEL);
player.sendMessage((new StringBuilder()).append("Congratulations you now have your clan level ").append(Config.CLAN_ITEM_LEVEL).append(".").toString());
}
if (Config.CLAN_TITLE)
{
player.setTitle(Config.ADD_CLAN_TITLE);
}
player.ClanItem();
}
}
}
Vesper Noble heavy set (RAR) 1800 att - 150e
Eternal Core Dualsword +6 300 att 130e
Ring of Baium 130e
AQ ring 100e
Antharas Earring 200e
Paypal payments only DM in discord narttu123
Hello,
Skill Activation: The activation options from the Alt+K window work perfectly. However, when activating them from the skill bar, there is still a delay of approximately 1 second.
I need to remove that delay
Question
SQL Developer
Hello mates i (this is l2jfrozen pack)
I got this code and i want to put an else if clan is allready level 8 on void but i dont know on this specific pack how to do it .. any idea? .. thanks
public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; if (item == null) { return; } L2PcInstance player = (L2PcInstance)playable; if (!player.isClanLeader()) { player.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addItemName(item)); return; } else if (player.isInOlympiadMode()) { player.sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addItemName(item)); return; } else { if(player.destroyItem("Consume", item.getObjectId(), 1, null, false)) { if (Config.ALLOW_ITEM_SET_LEVEL) { player.getClan().changeLevel(Config.CLAN_ITEM_LEVEL); player.sendMessage((new StringBuilder()).append("Congratulations you now have your clan level ").append(Config.CLAN_ITEM_LEVEL).append(".").toString()); } if (Config.CLAN_TITLE) { player.setTitle(Config.ADD_CLAN_TITLE); } player.ClanItem(); } } }1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now