Jump to content

Recommended Posts

Posted (edited)

Hello guys i wanna share how we can create one gm shop for last version L2jserver high five.

 

Step 1 ) : Need to create one npc. how? will go to game/data/stats/npc/customs/custom and will add that  (Remember we need to have set true the custom data)

 

<npc id="30" displayId="32226" name="GM SHOP" usingServerSideName="true" title="L2J High Five" usingServerSideTitle="true" type="L2Merchant">
<collision>
<radius normal="11" />
<height normal="22.25" />
</collision>
</npc>
 
Step 2 ) : Create Html file for the gm shop Lets go game/data/html/merchant and create one new html with name 30.htm now edit it and add this 
 
<html><title>GmShop</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left>
</center>


<br>
<center>
<table width=230>
<tr>
<td align=center><img src="icon.weapon_recurvethorne_bow_i01" width=32 height=32></td>
</tr>
<tr><td></td></tr>
<tr>
<td align=center><button value="Weapons" action="bypass -h npc_%objectId%_Chat 1" width=118 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
</tr>
</table>
<br>


<img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left>
<br>
</center>
</body>
</html>
 
Now if he spawn the npc will see something 1 button and 1 icon.
 

Step 2.5 ) : Now lets create on other html with name 30-1.htm now edit and add this :

 

<html><title>GmShop - Weapons</title>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left>
</center>
<br>
<center>
<table width=230>
<tr><td><br></td></tr>
<tr>
<td align=center><button value="Use your name" action="bypass -h npc_%objectId%_multisell 030" width=85 height=26 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
</tr>
</table>
</center>
<tr>
</tr>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32 align=left>


<button action="bypass -h npc_%objectId%_Chat 0" value="Back" width=120 height=21 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"><br>
</center>
</body>
</html>
 

 

 
Step 3 ) : Now we have created npc htmls lets go to multisell -> game/data/multisell and create one multisell with name 030.xml and inside add this :
 
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/multisell.xsd">
<npcs>
<npc>30</npc> <!-- Here you add the gm shop npc (30) if you dont add will not work -->
<!-- How you will add more items? just copy from <item> to </item> and paste it dont from the last </item> and change the ids for use other items  -->
</npcs>
<item>
<!-- That is the price i add 57 (adena) you can use what ever you want -->
<ingredient count="100" id="57" />
<!-- Here you add the item who you wanna they buy i add 15548 (lava saw) -->
<production count="1" id="15548" />
</item>
</list>
 
Thats all :) if you have any question just ask it :)
 
Edited by kris131

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...