L2JMobius
Free Users => General Discussion => Topic started by: realAprox on April 14, 2021, 11:58:30 PM
-
Simple problem..
Trying to use
.getIcon();
in file handlers.admincommandhandlers.AdminEnchant.java.
But whenever I add imports:
import org.l2jmobius.gameserver.data.ItemTable;
import org.l2jmobius.gameserver.model.items.Item;
Eclipse automatically removes them...
I use code:
ItemInstance Item = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_RHAND);
returnHtml = returnHtml.replace("%wp_icon%", Item.getIcon());
And it returns error:
The method getIcon() is undefinde for for the type ItemInstance
Help ?
-
UPDATE:
have to use:
final Item item = ItemTable.getInstance().getTemplate(activeChar.getInventory().getPaperdollItemId(your item));