Custom NPC's type

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
User avatar
spremusik
Posts: 110
Joined: Fri Oct 21, 2011 8:34 pm

Custom NPC's type

Post 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
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Custom NPC's type

Post 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.
User avatar
spremusik
Posts: 110
Joined: Fri Oct 21, 2011 8:34 pm

Re: Custom NPC's type

Post 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 ... :shock:
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 :(
User avatar
lucan
Posts: 590
Joined: Wed Mar 16, 2011 10:39 pm
Location: Brazil

Re: Custom NPC's type

Post 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...
User avatar
spremusik
Posts: 110
Joined: Fri Oct 21, 2011 8:34 pm

Re: Custom NPC's type

Post 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 ?
User avatar
VlLight
L2j Veteran
L2j Veteran
Posts: 577
Joined: Fri Dec 14, 2007 11:58 am
Location: Russia

Re: Custom NPC's type

Post by VlLight »

CustomMultisellLoad = True in general.properties
User avatar
spremusik
Posts: 110
Joined: Fri Oct 21, 2011 8:34 pm

Re: Custom NPC's type

Post by spremusik »

VlLight wrote:CustomMultisellLoad = True in general.properties
thx VlLight i realy missed that :x
omg.... i'm feeling soo stupid sometimes....
Post Reply