You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.