Get the maximum opportunities, income, and profit with our verification.
We help you pass verification on the services and applications you need, opening access to full functionality and scaling.
Fast. Reliable. Secure.
Minimal risks — predictable results.
Bonus for new clients:
Pay for the first verification and get a 10% discount on the next one.
Learn more — Go to
Question
heladito
hi guys, i still trying to adapt the skin system + 2 click items.
I have some errors in the skin1.java and i just dont know how to fix it.
My skin1.java
package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.Config; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.clientpackets.RequestBypassToServer; public class skin1 implements IItemHandler { @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(Config.ALLOW_DRESS_ME_SYSTEM) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance)playable; RequestBypassToServer.setPart(activeChar, "chest", Config.SKIN_NAME1); RequestBypassToServer.setPart(activeChar, "legs", Config.SKIN_NAME1); RequestBypassToServer.setPart(activeChar, "gloves", Config.SKIN_NAME1); RequestBypassToServer.setPart(activeChar, "boots", Config.SKIN_NAME1); if (activeChar.isDressMeEnabled()) { activeChar.setDressMeEnabled(false); activeChar.broadcastUserInfo(); activeChar.sendMessage("You have disabled skin."); } else { activeChar.setDressMeEnabled(true); activeChar.broadcastUserInfo(); activeChar.sendMessage("You have activated " + Config.SKIN_NAME1 + " skin."); } } else playable.sendMessage("Sorry, admin has disabled skins."); } @Override public int[] getItemIds() { return ITEM_IDS; } private static final int ITEM_IDS[] = { Config.SKIN_ITEM_1 }; }and the errors

2 answers 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