Jump to content

[Guide] HOW TO MAKE A CUSTOM SHOP(gracia final)


Recommended Posts

this tutorial is made for L2J...should work for all other L2J packs.

1).First thing is first...find a NPC you want to use(in my example i use ALEXANDRIA from girans luxury shop)

and get there NPC-ID.(there are 2 ways to get it,via the SQL or Holding down shift and clicking the left mouse button).

Alexandria's NPC-ID is 30098

 

 

2a)now we have the ID exit the game and goto your server folder(my folder located at mycomputer/c:/server)

now goto the folowing= gameserver/data/html/merchant and look for that NPC ID number(30098 is what you are looking for).

once found open it up in notepad.

you should now see the following=

 

<a action="bypass -h npc_%objectId%_multisell 300984001">Buy armor.</a><br>
<a action="bypass -h npc_%objectId%_multisell 300984002">Buy groceries.</a><br>

this code is where it tels the server what and where.

 

 

2b).copy and past 1 of the lines and past it under the bottom string so it looks like this=

 

 

<a action="bypass -h npc_%objectId%_multisell 300984001">Buy armor.</a><br>
<a action="bypass -h npc_%objectId%_multisell 300984002">Buy groceries.</a><br>
<a action="bypass -h npc_%objectId%_multisell 300984001">NAME OF WHAT YOU ARE SELLING HERE.</a><br>

2c).take note of the numbers in the code becuase they are very important.

we are now going to change 1 set of numbers to= 987654321 =

<a action="bypass -h npc_%objectId%_multisell 987654321">NAME OF WHAT YOU ARE SELLING HERE.</a><br>

thats how it should look.

 

now save the file.

 

 

3a).goto C:\server\gameserver\data\multisell and copy and past 1 of the files to your desktop and rename it = 987654321(i used 300984001)

 

when you have named your file copy and past it back into the multisell folder and open it with notepad.

 

3b).you should now see some code like this=

 

   <item id="1">
       <!-- Ingredients -->
       <ingredient id="1460" count="138" enchant="0"/>
       <ingredient id="1459" count="415" enchant="0"/>

       <!-- Products -->
       <production id="357" count="1" enchant="0"/>
   </item>

as you can see there are some numbers,these are item numbers etc.

if you want to make it a trade shop the top 2 set of strings should stay the same.

all you need to do is change the ID numbers to the ID numbers of the item you want them to trade for.

 

count="138"

this is the amount of the trade item they must provide,change it to your desired amount.

 

<production id="357" count="1" enchant="0"/>

this is the item they trade for.

change the ID number to what ever ID number the item you want to give.

 

 

HERE IS A EXAMPLE OF WHAT YOUR CODE SHOULD NOW LOOK LIKE=

 

<list>
   <item id="1">
       <!-- Ingredients -->
       <ingredient id="1460" count="138" enchant="0"/>
       <ingredient id="1459" count="415" enchant="0"/>

       <!-- Products -->
       <production id="357" count="1" enchant="0"/>

</list>

THIS ABOVE CODE WILL TRADE ARMOUR AS IT IS USING THE DEFAULT ARMOUR IDS FROM ALEXADRIA.

 

 

HERE IS A EXAMPLE IF YOU WANT TO TRADE ITEMS FOR ADENA =

<list>
   <item id="1">
       <!-- Ingredients -->
       <ingredient id="57" count="50000000" enchant="0"/>
       
       <!-- Products -->
       <production id="9160" count="1" enchant="0"/>
   </item>
</list>

THIS CODE IF YOU WANT TO USE IT WILL SELL A HAT FOR 50MILL ADENA.

 

 

once you have adeed your ID numbers you can now save the file.

 

congratulations you have now added a part to alexandria to sell what ever you want.

not load game and goto Alexandria at the luxury shop in giran.

 

i tryed to give as much detail as posible, hope hope this helped.

if there is anything you dont understand or are having trouble following this guide please let me know.

 

 

PS for multi sell items Example: armour sets

try this code =

      <item id="18">
               <!-- Ingredients -->
               <ingredient id="57" count="12000" enchant="0"/>

               <!-- Products -->
               <production id="141" count="1" enchant="0"/>
               <production id="142" count="1" enchant="0"/>
               <production id="55" count="1" enchant="0"/>
               <production id="56" count="1" enchant="0"/>
               <production id="57" count="1" enchant="0"/>
       </item>

rember for each new item you must change the item ID for the specific order you want it to show
(this code shows ID number 18...thats the 18 item).
all works for me.

Credits:st0rm3r

Link to comment
Share on other sites

  • 4 months later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...