Page 1 of 1
Custom NPC's type
Posted: Mon Mar 19, 2012 11:53 am
by spremusik
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
Re: Custom NPC's type
Posted: Mon Mar 19, 2012 2:06 pm
by tukune
See L2J_Server(_BETA)/java/com/l2jserver/gameserver/model/actor/instance folder.
If you want 'L2Spremusik' type then you can implement L2SpremusikInstance.java.
Re: Custom NPC's type
Posted: Mon Mar 19, 2012 4:40 pm
by spremusik
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

Re: Custom NPC's type
Posted: Mon Mar 19, 2012 5:06 pm
by lucan
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...
Re: Custom NPC's type
Posted: Mon Mar 19, 2012 5:25 pm
by spremusik
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 ?
Re: Custom NPC's type
Posted: Mon Mar 19, 2012 5:55 pm
by VlLight
CustomMultisellLoad = True in general.properties
Re: Custom NPC's type
Posted: Mon Mar 19, 2012 8:14 pm
by spremusik
VlLight wrote:CustomMultisellLoad = True in general.properties
thx VlLight i realy missed that
omg.... i'm feeling soo stupid sometimes....