Jump to content
  • 0

[Help] Multisell problem


Question

Posted

Hi guys , i have create a xml for multisell of my npc but i have got 1 error .

 

Error loading file C:\Users\andrea\Desktop\server\gameserver\data\multis
ell\50.xml
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Inval
id byte 1 of 1-byte UTF-8 sequence.
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown
Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(Unknow
n Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanComment(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
Driver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unk
nown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at com.l2jserver.gameserver.datatables.MultiSell.load(MultiSell.java:198
)
        at com.l2jserver.gameserver.datatables.MultiSell.reload(MultiSell.java:7
1)
        at handlers.admincommandhandlers.AdminAdmin.useAdminCommand(AdminAdmin.j
ava:235)
        at com.l2jserver.gameserver.network.clientpackets.SendBypassBuildCmd.run
Impl(SendBypassBuildCmd.java:79)
        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:62)
        at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
001)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

MultiSell: Loaded 288 lists.

 

This is my file :

 

<?xml version="1.0" encoding="UTF-8"?>
<!-- Reward list -->

<list maintainEnchantment="true">

  <!-- Blessed Scroll of Escape -->
  <item id="1">
    <ingredient id="6673" count="2"/>
    <production id="1538" count="1"/>
  </item>

  <!-- Blessed scroll enchant armor b-->
  <item id="2">
    <ingredient id="6673" count="2"/>
    <production id="6572" count="1"/>
  </item>

  <!-- Blessed scroll enchant weapon b -->
  <item id="3">
    <ingredient id="6673" count="2"/>
    <production id="6571" count="1"/>
  
  </item>

  <!-- Blessed scroll enchant armor A -->
  <item id="4">
    <ingredient id="6673" count="2"/>
    <production id="6570" count="1"/>
  </item>

  <!-- Blessed scroll enchant armor S -->
  <item id="5">
    <ingredient id="6673" count="3"/>
    <production id="6578" count="1"/> 
  </item>
  
   <!-- Blessed scroll enchant weapon S -->
  <item id="6">
    <ingredient id="6673" count="5"/>
    <production id="6577" count="1"/>
  </item>

  <!-- Quick Healing potion -->
  <item id="6">
    <ingredient id="6673" count="1"/>
    <production id="22024" count="20"/>
  </item>

  <!-- Giant's Codex -->
  <item id="7">
    <ingredient id="6673" count="1"/>
    <production id="6622" count="1"/>
  </item>

  <!-- Giant's Codex - Mastery -->
  <item id="8">
    <ingredient id="6673" count="2"/>
    <production id="9627" count="1"/>
  </item>

  <!-- Giant's Codex - Oblivion -->
  <item id="9">
    <ingredient id="6673" count="100000000"/>
    <production id="9625" count="1"/>
  </item>

  <!-- Giant's Codex - Discipline -->
  <item id="10">
    <ingredient id="6673" count="100000000"/>
    <production id="9626" count="1"/>
  </item>

</list>

8 answers to this question

Recommended Posts

  • 0
Posted

<?xml version="1.0" encoding="UTF-8"?>

<!-- Reward list -->

 

<list maintainEnchantment="true">

 

 <!-- Blessed Scroll of Escape -->

 <item id="1">

   <ingredient id="6673" count="2"/>

   <production id="1538" count="1"/>

 </item>

 

 <!-- Blessed scroll enchant armor b-->

 <item id="2">

   <ingredient id="6673" count="2"/>

   <production id="6572" count="1"/>

 </item>

 

 <!-- Blessed scroll enchant weapon b -->

 <item id="3">

   <ingredient id="6673" count="2"/>

   <production id="6571" count="1"/>

 

 </item>

 

 <!-- Blessed scroll enchant armor A -->

 <item id="4">

   <ingredient id="6673" count="2"/>

   <production id="6570" count="1"/>

 </item>

 

 <!-- Blessed scroll enchant armor S -->

 <item id="5">

   <ingredient id="6673" count="3"/>

   <production id="6578" count="1"/>

 </item>

 

  <!-- Blessed scroll enchant weapon S -->

 <item id="6">

   <ingredient id="6673" count="5"/>

   <production id="6577" count="1"/>

 </item>

 

 <!-- Quick Healing potion -->

 <item id="6">

   <ingredient id="6673" count="1"/>

   <production id="22024" count="20"/>

 </item>

 

 <!-- Giant's Codex -->

 <item id="7">

   <ingredient id="6673" count="1"/>

   <production id="6622" count="1"/>

 </item>

 

 <!-- Giant's Codex - Mastery -->

 <item id="8">

   <ingredient id="6673" count="2"/>

   <production id="9627" count="1"/>

 </item>

 

 <!-- Giant's Codex - Oblivion -->

 <item id="9">

   <ingredient id="6673" count="100000000"/>

   <production id="9625" count="1"/>

 </item>

 

 <!-- Giant's Codex - Discipline -->

 <item id="10">

   <ingredient id="6673" count="100000000"/>

   <production id="9626" count="1"/>

 </item>

 

</list>

 

  • 0
Posted

Your item is duplicated here

============================

<!-- Blessed scroll enchant weapon S -->

  <item id="6">

    <ingredient id="6673" count="5"/>

    <production id="6577" count="1"/>

  </item>

 

  <!-- Quick Healing potion -->

  <item id="6">

    <ingredient id="6673" count="1"/>

    <production id="22024" count="20"/>

  </item>

========================

So you have to change your ID .It's too big error , for this small mistake , i will reply again , i am going to search it.

  • 0
Posted

Use a more simple tool to edit your XML (notepad++ or notepad if you still got problems).

 

Here is an explanation.

 

Sometimes you will receive messages like "invalid byte 1 of 1-byte utf-8 sequence". This is caused by copying and pasting XML from other programs and the byte sequence messing up. The solution is to copy the text, e.g. from a web browser, into a program that can save the text specifically in UTF format, e.g. Notepad, then copy the text from that program into ContentXML. This should correct any UTF byte sequence problems.

 

There are plenty of examples on the web about the error, just Google "Invalid byte 1 of 1-byte UTF-8 sequence".

 

Another solution is to take existing XML which works, remove items, than add your own items, and register under another name.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Hello everyone, we are one of the top gaming currency stores. We work exclusively with top projects. If you are interested in anything like Adena, Coins, Equip, write to us Discord - pchelacoin Telegram - https://t.me/ipchelacoin BOHPTS, KETRAWARS, EURO-PVP, L2REBORN, E-GLOBAL, LA2DREAM TOP PRICE !!!!!!!
    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock