Skip to content

Problem with adding custom items - Hi5

Featured Replies

Hello there,

Im trying to waste my time on some specific ways like creating my own server.

Since i've done most of the job one thing makes me sleep worse everyday.

 

WARN ItemParser: Fail create item: 38040
java.lang.IllegalArgumentException: No enum constant l2f.gameserver.templates.item.EtcItemTemplate.EtcItemType.NONE
        at java.lang.Enum.valueOf(Unknown Source)
        at l2f.commons.collections.MultiValueSet.getEnum(MultiValueSet.java:327)
        at l2f.gameserver.templates.item.EtcItemTemplate.<init>(EtcItemTemplate.java:53)
        at l2f.gameserver.data.xml.parser.ItemParser.readData(ItemParser.java:128)
        at l2f.commons.data.xml.AbstractParser.parseDocument(AbstractParser.java:40)
        at l2f.commons.data.xml.AbstractParser.parseCrypted(AbstractParser.java:45)
        at l2f.commons.data.xml.AbstractDirParser.parse(AbstractDirParser.java:52)
        at l2f.commons.data.xml.AbstractParser.load(AbstractParser.java:64)
        at l2f.gameserver.data.xml.Parsers.parseAll(Parsers.java:59)
        at l2f.gameserver.GameServer.<init>(GameServer.java:222)
        at l2f.gameserver.GameServer.main(GameServer.java:496)

 

I've got an Error like this.

 

Just to be clear

Item with ID 38040 has been added into XML files as an EtcItem, into etcitemgrp in system and also into Database.

Should i implement this in any other file?

Edited by Glimpse

just compare ur custom item xml with old one current similiar item xml and u will see where problem.

<item id="xx" type="EtcItem" name="ItemName">

idk what pack do you use.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.