Page 1 of 1

[SOLVED] L2JServer H5 Add new npc

Posted: Mon Jun 29, 2020 2:24 pm
by peipakoa
Hi guys, I have some doubts about adding new npc, like a normal npc merchant for now, I use that's files called L2J Server H5, from this page, everything is running perfectly for me and my friends.

This is what I'm doing...

1- C:\opt\l2j\server\game\data\html\merchant\00001.htm (this is my new npc id)
<html><body>Trader Graham:<br>
Let's trade! I'm sure we can arrive at a mutually beneficial arrangement. What are you offering?<br>
<a action="bypass -h npc_%objectId%_Buy 3008400">Buy weapons for Fighters.</a><br>
<a action="bypass -h npc_%objectId%_Buy 3008401">Buy Fighter Common Items.</a><br>
<a action="bypass -h npc_%objectId%_BuyShadowItem">Buy a Shadow Item.</a>
</body></html>
2- I put the npc on C:\opt\l2j\server\game\data\stats\npcs\custom\custom.xml
<npc id="00001" displayId="32140" name="L2AT" usingServerSideName="true" title="L2 Arrowtown" usingServerSideTitle="true" type="L2MerchantInstance">
<collision>
<radius normal="11" />
<height normal="22.25" />
</collision>
</npc>
3- And the command //spawn 00001 doesn't work

This is an example npc for learn how to do it

Re: L2JServer H5 Add new npc

Posted: Mon Jun 29, 2020 3:53 pm
by maneco2
Look this for custom npc: https://www.l2jserver.com/forum/viewtop ... er#p192738
Enable properties for use a custom npc.

Re: L2JServer H5 Add new npc

Posted: Mon Jun 29, 2020 4:58 pm
by peipakoa
Yes, thats the only thing what I needed, now works fine, thx.

Re: L2JServer H5 Add new npc

Posted: Tue Jun 30, 2020 2:33 pm
by peipakoa
Problem solved with this:

Enable properties for use a custom npc.

pls close the thread.