L2JMobius

High Five Custom GMshop error

seanet · 4 · 2947

Offline seanet

  • Heir
  • **
    • Posts: 11
So i want to build a custom gmshop npc i started by clonning an existing npc to /data/stats/npc/custom/shop.xml

this is the npc.

Quote
<npc id="50010" displayId="31303" level="70" type="Merchant" name="Donny" usingServerSideName="true" title="Hunting Helper" usingServerSideTitle="true">
      <!-- Confirmed CT2.5 -->
      <parameters>
         <param name="MoveAroundSocial" value="0" />
         <param name="MoveAroundSocial1" value="90" />
      </parameters>
      <race>HUMAN</race>
      <sex>FEMALE</sex>
      <stats str="40" int="21" dex="30" wit="20" con="43" men="20">
         <vitals hp="2444.46819" hpRegen="7.5" mp="1345.8" mpRegen="2.7" />
         <attack physical="688.86373" magical="470.40463" random="30" critical="4" accuracy="5" attackSpeed="253" type="SWORD" range="40" distance="80" width="120" />
         <defence physical="295.91597" magical="216.53847" />
         <attribute>
            <defence fire="150" water="150" wind="150" earth="150" holy="150" dark="150" default="150" />
         </attribute>
         <speed>
            <walk ground="50" />
            <run ground="120" />
         </speed>
      </stats>
      <status attackable="false" />
      <skillList>
         <skill id="4045" level="1" /> <!-- Resist Full Magic Attack -->
         <skill id="4408" level="1" /> <!-- HP Increase (1x) -->
         <skill id="4409" level="1" /> <!-- MP Increase (1x) -->
         <skill id="4410" level="11" /> <!-- Average P. Atk. -->
         <skill id="4411" level="11" /> <!-- Average M. Atk. -->
         <skill id="4412" level="11" /> <!-- Average P. Def. -->
         <skill id="4413" level="11" /> <!-- Average M. Def. -->
         <skill id="4414" level="2" /> <!-- Standard Type -->
         <skill id="4415" level="3" /> <!-- One-handed Sword -->
         <skill id="4416" level="14" /> <!-- Humans -->
      </skillList>
      <exCrtEffect>true</exCrtEffect>
      <ai aggroRange="1000" clanHelpRange="300" isAggressive="false" />
      <collision>
         <radius normal="8" />
         <height normal="25.3" />
      </collision>
   </npc>

after that i created a custom multisell to test my npc

Quote
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/multisell.xsd">

<!-- D-Grade Armors -->

  <!-- Brigandine Heavy Armor -->
   <item>
    <ingredient id="57" count="2000000"/>
    <production id="352" count="1"/>
    <production id="2378" count="1"/>
    <production id="2411" count="1"/>
    <production id="2425" count="1"/>
    <production id="2449" count="1"/>
    <production id="2493" count="1"/>
  </item>
</list>

i restarted the server to load the new data and when i try to interact with the npc the gs console throw me this error i have checked all configs nothing can help me to get rid of the error

error
Quote
[03/06 20:48:11] MultisellData: Player PlayerInstance:Razna[268525415] attempted to open multisell 10044 from npc MerchantInstance:Donny(50010)[268525374] which is not allowed!

I mention i am a beginner in java programming just a few months and my experience with l2 is game limited .Thank you in advance for any help.


Online CostyKiller

  • Distinguished King
  • *****
    • Posts: 973
Check how other shops are made, you have to add the npc id in your multisell file.


Offline Horus

  • Black Sheep
  • Count
  • *****
    • Posts: 483
you need to refer the multisell to the custom npc

Code: [Select]
        <npcs>
<npc>-1</npc> <!-- CB -->
</npcs>

like that. thats the custom community in mobius


Offline seanet

  • Heir
  • **
    • Posts: 11
i misssed that thank you guys problem is fixed  8)