[SOLVED] L2JServer H5 Add new npc

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
peipakoa
Posts: 3
Joined: Sun Jun 28, 2020 12:51 am

[SOLVED] L2JServer H5 Add new npc

Post 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
User avatar
maneco2
Initiates
Initiates
Posts: 664
Joined: Sat Aug 24, 2013 7:10 am

Re: L2JServer H5 Add new npc

Post by maneco2 »

Look this for custom npc: https://www.l2jserver.com/forum/viewtop ... er#p192738
Enable properties for use a custom npc.
peipakoa
Posts: 3
Joined: Sun Jun 28, 2020 12:51 am

Re: L2JServer H5 Add new npc

Post by peipakoa »

Yes, thats the only thing what I needed, now works fine, thx.
peipakoa
Posts: 3
Joined: Sun Jun 28, 2020 12:51 am

Re: L2JServer H5 Add new npc

Post by peipakoa »

Problem solved with this:

Enable properties for use a custom npc.

pls close the thread.
Post Reply