[Help] Editing L2J NPC's

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
NoobException
Posts: 10
Joined: Thu Jun 28, 2012 2:07 am

[Help] Editing L2J NPC's

Post by NoobException »

Hello Everyone!

Please assume that I am a complete idiot :P, I have experience in Maple but none in L2, and I would like some help/advice on getting started with an L2J server. :)

A few questions I would like to ask, as I've already got a stock l2j server up and running:

How do I edit NPC's?

In Maple npc's are stored in a single javascript file and so editing is made easy. In L2J it's a little different :P. I am guessing the html is stored in L2J_Server_BETA\build\game\data\html, scripts stored in L2J_Server_BETA\build\game\data\scripts and the npc properties are stored in npc table of l2jgs database.

Correct me if I am wrong :mrgreen:

If the jython scripts are located in data\scripts and html dialogues in data\scripts or data\html, How would I be able to track an NPC given an NPC id?

I sort of understand how quests work, but I am wondering what to do with NPC dialogues/actions. atm I am more concerned with editing NPC dialogues/actions than the quests :? I am brainstuck from thinking how to edit NPC's

To be precise, I am trying to grab a idle npc and use it as stats / skills resetter. Any advice on how to start this would be greatly appreciated.

Thank you all and have a great day! :P

_________________________________
L2J Revision Number : 5459
L2JDP Revision Number : 8949
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: [Help] Editing L2J NPC's

Post by nonom »

NoobException wrote:In Maple npc's are stored in a single javascript file and so editing is made easy. In L2J it's a little different :P. I am guessing the html is stored in L2J_Server_BETA\build\game\data\html, scripts stored in L2J_Server_BETA\build\game\data\scripts and the npc properties are stored in npc table of l2jgs database.
Yes :mrgreen:
NoobException wrote: If the jython scripts are located in data\scripts and html dialogues in data\scripts or data\html, How would I be able to track an NPC given an NPC id?
Try using a Eclipse smart search :P By the way, we are porting the most part of them to Java.
NoobException wrote: I sort of understand how quests work, but I am wondering what to do with NPC dialogues/actions. atm I am more concerned with editing NPC dialogues/actions than the quests :? I am brainstuck from thinking how to edit NPC's
Opening the quests files you could see they are pretty similar. In fact there are methods defined for the most part of actions, like onTalk, onKill etc, but is nice to take a look the new listeners.

In example, the server sends a packet to show any html window through the onAdvEvent methods
NoobException wrote: To be precise, I am trying to grab a idle npc and use it as stats / skills resetter. Any advice on how to start this would be greatly appreciated.
It could help you: viewtopic.php?f=41&t=23729#p137888
Image
"There are three kinds of people in this world, those who can count and those who can't"
NoobException
Posts: 10
Joined: Thu Jun 28, 2012 2:07 am

Re: [Help] Editing L2J NPC's

Post by NoobException »

Try using a Eclipse smart search By the way, we are porting the most part of them to Java.
So does that mean NPC's are no longer on the html/jython fashion? :P because for example in maple, if you keep the npc's seperate from the server, you can edit NPC's without brining the entire server offline.

Just wondering :P
User avatar
nonom
L2j Veteran
L2j Veteran
Posts: 649
Joined: Wed Mar 11, 2009 10:34 pm
Location: Magmeld

Re: [Help] Editing L2J NPC's

Post by nonom »

It's the same, but Java instead jython.

In l2jserver you could edit an NPC in game and it reloads by itself. Also are available several admin commands to //reload npcs, html etc.

Good luck and welcome ;)
Image
"There are three kinds of people in this world, those who can count and those who can't"
Post Reply