Page 1 of 1

Can't find multisell data (custom Npc)

Posted: Thu Jan 08, 2015 5:24 pm
by cryptowood
So I tryed to adapt an npc with old sql data to the new htm files it worked in a way. I have the npc ingame with all the html working but I can't acces to the multisell folder! Tryed to figure out by myself after 3 hours, I still don't know where is my mistake.

Html files
...\Main\game\data\stats\npcs\custom

Code: Select all

	<npc id="10002" displayId="32237" name="Nicole" usingServerSideName="true" title="Shop" usingServerSideTitle="true" type="L2Merchant">
		<collision>
			<radius normal="11" />
			<height normal="22.25" />
		</collision>
	</npc>
...\Main\game\data\html\merchant\10002.htm

Code: Select all

<td align=center><button value="Armors" action="bypass -h npc_%objectId%_Chat 1" width=85 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
...\Main\game\data\html\merchant\10002-1.htm

Code: Select all

<td align=center><button value="Vesper S-84" action="bypass -h npc_%objectId%_multisell 10001" width=85 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

Multisell files

...\game\data\multisell\10001.xml

Code: Select all

<?xml version='1.0' encoding='utf-8'?>

<list  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
  <npcs>
	<npc>10002</npc>
  </npcs>
  <!-- Vesper Breastplate -->
  <item id="1">
    <ingredient id="5962" count="5"/>
    <production id="13432" count="1"/>
    <production id="13438" count="1"/>
    <production id="13137" count="1"/>
    <production id="13439" count="1"/>
    <production id="13440" count="1"/>
  </item>
</list>
Error
MultisellData: can't find list id: 10001 requested by player: PLAYER, npcId: 10002

Re: Can't find multisell data (custom Npc)

Posted: Fri Jan 09, 2015 5:04 am
by CaptainN
Multisell file into the sub folder custom

and making sure that CustomMultisellLoad = True in general.properties

Besides that you may or may not need to modify the path for the xsd location you'll know at server start up.

CaptainN

EDIT: Why re-invent the wheel =) viewtopic.php?t=28214