If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
hello.
can someone tell me what type should be the custom npc's if i want to put the npc's data in the custom folders?
ex custom html, custom multisell, custom teleport etc.
thx
Custom NPC's type
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- tukune
- Posts: 533
- Joined: Sun Mar 29, 2009 2:35 pm
- Location: Japan
Re: Custom NPC's type
See L2J_Server(_BETA)/java/com/l2jserver/gameserver/model/actor/instance folder.
If you want 'L2Spremusik' type then you can implement L2SpremusikInstance.java.
If you want 'L2Spremusik' type then you can implement L2SpremusikInstance.java.
- spremusik
- Posts: 110
- Joined: Fri Oct 21, 2011 8:34 pm
Re: Custom NPC's type
hmm that is hard for me. i undeerstand java like my wife understand car mechanics.
i beleved there already is something like L2CustomNpc already implemented. because there are the folders for custom stuff. like /data/multisell/custom or data/html/custom .. etc.
some point to how to add a new npc type?
thx
later edit:
i just looked to that location and ... pff is like ...
i just want to put the custom .htm's and multisell .xml's in the custom folders and not mixing with the default files.
there is not a already done npc type that searches for htm files in the /data/html/custom ?
addint a new type is hard for my knoledge
i beleved there already is something like L2CustomNpc already implemented. because there are the folders for custom stuff. like /data/multisell/custom or data/html/custom .. etc.
some point to how to add a new npc type?
thx
later edit:
i just looked to that location and ... pff is like ...

i just want to put the custom .htm's and multisell .xml's in the custom folders and not mixing with the default files.
there is not a already done npc type that searches for htm files in the /data/html/custom ?
addint a new type is hard for my knoledge

- lucan
- Posts: 590
- Joined: Wed Mar 16, 2011 10:39 pm
- Location: Brazil
Re: Custom NPC's type
Simply place yours HTML files in the html/default folder to L2Npc type, teleporter folder to L2Teleporter Type, merchant folder to L2Merchant type for their NPC Multisell, etc ...
Remember to observe or modify the type of your NPC in the npc custom table.
Ex: GK Global, NPC Type L2Teleporter, html files in html/teleporter
Multisell xml files place in data/multisell folder.
NPC for multisell can be L2Npc type, put htmls files in html/default folder.
You can mix the default files with your custom files, just be careful to create files with names different from default files.
I think that's what you want to know...
Remember to observe or modify the type of your NPC in the npc custom table.
Ex: GK Global, NPC Type L2Teleporter, html files in html/teleporter
Multisell xml files place in data/multisell folder.
NPC for multisell can be L2Npc type, put htmls files in html/default folder.
You can mix the default files with your custom files, just be careful to create files with names different from default files.
I think that's what you want to know...
- spremusik
- Posts: 110
- Joined: Fri Oct 21, 2011 8:34 pm
Re: Custom NPC's type
thx lucan this is what i am already doing. but when you have alot of custom npcs is hard at update to find all files when they are in different folders.
i was wrong about the /html/custom. now i see there is no custom folder in /html in the default datapack.
so i understand i need a new type for putting the htm's in a custom folder.
what i dont understand now, is how to load the multisell .xml files from the /game/data/multisell/custom folder.
is a real pain to know what .xml are default and what are custom multisell files.
i already tryied to put them in the custom folder (i double check it and there is the custom folder in multisell)
what i must change to load the multisell files from /game/data/multisell/custom ?
i was wrong about the /html/custom. now i see there is no custom folder in /html in the default datapack.
so i understand i need a new type for putting the htm's in a custom folder.
what i dont understand now, is how to load the multisell .xml files from the /game/data/multisell/custom folder.
is a real pain to know what .xml are default and what are custom multisell files.
i already tryied to put them in the custom folder (i double check it and there is the custom folder in multisell)
what i must change to load the multisell files from /game/data/multisell/custom ?
- VlLight
- L2j Veteran
- Posts: 577
- Joined: Fri Dec 14, 2007 11:58 am
- Location: Russia
Re: Custom NPC's type
CustomMultisellLoad = True in general.properties
- spremusik
- Posts: 110
- Joined: Fri Oct 21, 2011 8:34 pm
Re: Custom NPC's type
thx VlLight i realy missed thatVlLight wrote:CustomMultisellLoad = True in general.properties

omg.... i'm feeling soo stupid sometimes....