03-15-2013, 05:11 PM
Создал свой xml в items, вроде бы все нормально, но заметил что предметы с id больше 50029 не выдаются, в гс вот такая ошибка.
Первый рабочий, выдающийся предмет.
После этого id ^, предметы не выдаются.
Вот например предмет не выдается с этим id
Все id идущие после 50029, не выдаются. В чем проблема?
error
[SRC="java"][17:05:09] WARN ItemHolder: Not defined item id : 50030, or out of range!
java.lang.Exception
at l2r.gameserver.data.xml.holder.ItemHolder.getTemplate(ItemHolder.java
:58)
at l2r.gameserver.model.items.ItemInstance.setItemId(ItemInstance.java:1
71)
at l2r.gameserver.model.items.ItemInstance.<init>(ItemInstance.java:146)
at l2r.gameserver.utils.ItemFunctions.createItem(ItemFunctions.java:34)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.createItem(
AdminCreateItem.java:160)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.useAdminCom
mand(AdminCreateItem.java:55)
at l2r.gameserver.handler.admincommands.AdminCommandHandler.useAdminComm
andHandler(AdminCommandHandler.java:171)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:58)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[17:05:09] ERROR AdminCommandHandler:
java.lang.NullPointerException
at l2r.gameserver.model.items.ItemInstance.<init>(ItemInstance.java:147)
at l2r.gameserver.utils.ItemFunctions.createItem(ItemFunctions.java:34)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.createItem(
AdminCreateItem.java:160)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.useAdminCom
mand(AdminCreateItem.java:55)
at l2r.gameserver.handler.admincommands.AdminCommandHandler.useAdminComm
andHandler(AdminCommandHandler.java:171)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:58)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)[/SRC]
java.lang.Exception
at l2r.gameserver.data.xml.holder.ItemHolder.getTemplate(ItemHolder.java
:58)
at l2r.gameserver.model.items.ItemInstance.setItemId(ItemInstance.java:1
71)
at l2r.gameserver.model.items.ItemInstance.<init>(ItemInstance.java:146)
at l2r.gameserver.utils.ItemFunctions.createItem(ItemFunctions.java:34)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.createItem(
AdminCreateItem.java:160)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.useAdminCom
mand(AdminCreateItem.java:55)
at l2r.gameserver.handler.admincommands.AdminCommandHandler.useAdminComm
andHandler(AdminCommandHandler.java:171)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:58)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[17:05:09] ERROR AdminCommandHandler:
java.lang.NullPointerException
at l2r.gameserver.model.items.ItemInstance.<init>(ItemInstance.java:147)
at l2r.gameserver.utils.ItemFunctions.createItem(ItemFunctions.java:34)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.createItem(
AdminCreateItem.java:160)
at l2r.gameserver.handler.admincommands.impl.AdminCreateItem.useAdminCom
mand(AdminCreateItem.java:55)
at l2r.gameserver.handler.admincommands.AdminCommandHandler.useAdminComm
andHandler(AdminCommandHandler.java:171)
at l2r.gameserver.network.clientpackets.RequestBypassToServer.runImpl(Re
questBypassToServer.java:58)
at l2r.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameCli
entPacket.java:51)
at l2r.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.ja
va:39)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)[/SRC]
xml code 1
[SRC="xml"] </armor>
<armor id="50029" name="Знак отличия3v">
<set name="crystal_count" value="1"/>
<set name="crystal_type" value="S84"/>
<set name="crystallizable" value="true"/>
<set name="icon" value="icon.accessary_verpes_ring_i00"/>
<set name="price" value="1"/>
<set name="type" value="NONE"/>
<set name="weight" value="150"/>
<equip>
<slot id="RIGHT_FINGER"/>
<slot id="LEFT_FINGER"/>
</equip>
<for>
<add stat="mDef" order="0x10" value="69"/>
<mul stat="mDef" order="0x30" value="1.04"/>
<add stat="maxMp" order="0x10" value="27"/>
<enchant stat="mDef" order="0x0C" value="0"/>
</for>
</armor>[/SRC]
<armor id="50029" name="Знак отличия3v">
<set name="crystal_count" value="1"/>
<set name="crystal_type" value="S84"/>
<set name="crystallizable" value="true"/>
<set name="icon" value="icon.accessary_verpes_ring_i00"/>
<set name="price" value="1"/>
<set name="type" value="NONE"/>
<set name="weight" value="150"/>
<equip>
<slot id="RIGHT_FINGER"/>
<slot id="LEFT_FINGER"/>
</equip>
<for>
<add stat="mDef" order="0x10" value="69"/>
<mul stat="mDef" order="0x30" value="1.04"/>
<add stat="maxMp" order="0x10" value="27"/>
<enchant stat="mDef" order="0x0C" value="0"/>
</for>
</armor>[/SRC]
Вот например предмет не выдается с этим id
xml code 2
[SRC="xml"] <armor id="50030" name="Медаль за службуv">
<set name="crystal_count" value="1"/>
<set name="crystal_type" value="S84"/>
<set name="crystallizable" value="true"/>
<set name="icon" value="icon.accessary_verpes_ring_i00"/>
<set name="price" value="1"/>
<set name="type" value="NONE"/>
<set name="weight" value="150"/>
<equip>
<slot id="NECKLACE"/>
</equip>
<for>
<add stat="mDef" order="0x10" value="138"/>
<mul stat="mdef" order="0x30" value="1.02"/>
<add stat="maxMp" order="0x10" value="27"/>
<enchant stat="mDef" order="0x0C" value="0"/>
</for>
</armor>[/SRC]
<set name="crystal_count" value="1"/>
<set name="crystal_type" value="S84"/>
<set name="crystallizable" value="true"/>
<set name="icon" value="icon.accessary_verpes_ring_i00"/>
<set name="price" value="1"/>
<set name="type" value="NONE"/>
<set name="weight" value="150"/>
<equip>
<slot id="NECKLACE"/>
</equip>
<for>
<add stat="mDef" order="0x10" value="138"/>
<mul stat="mdef" order="0x30" value="1.02"/>
<add stat="maxMp" order="0x10" value="27"/>
<enchant stat="mDef" order="0x0C" value="0"/>
</for>
</armor>[/SRC]