Page 1 of 1

[Help] Editing L2J NPC's

Posted: Sat Jun 30, 2012 6:43 am
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

Re: [Help] Editing L2J NPC's

Posted: Sat Jun 30, 2012 2:02 pm
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

Re: [Help] Editing L2J NPC's

Posted: Sat Jun 30, 2012 4:21 pm
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

Re: [Help] Editing L2J NPC's

Posted: Sat Jun 30, 2012 4:38 pm
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 ;)