L2JMobius

Public Development => General Discussion => Topic started by: ZhanetL2 on March 04, 2025, 12:00:55 AM

Title: How To Create NPC?!
Post by: ZhanetL2 on March 04, 2025, 12:00:55 AM
Hello guys , today i have question where is the npc.sql or customnpc.sql or there don’t have it?! So my question it’s if i want to create new npc where i need to add it .
Thanks to everyone .
And sorry for my stupid question.
Title: Re: How To Create NPC?!
Post by: Skache on March 04, 2025, 12:03:03 AM
They are in game\data\stats\npcs

NPCs are no longer in database.

Title: Re: How To Create NPC?!
Post by: ZhanetL2 on March 04, 2025, 12:10:38 AM
can you give an example ? If i  want to create merchant with id 50099 where to put it ?
Title: Re: How To Create NPC?!
Post by: Skache on March 04, 2025, 12:13:23 AM
custom folder?

Just look around how are made others and you will figure out.
Title: Re: How To Create NPC?!
Post by: ZhanetL2 on March 04, 2025, 12:15:34 AM
Okey thanks for your time , have a good night and take care .
Title: Re: How To Create NPC?!
Post by: dramaa on March 04, 2025, 07:25:21 AM
Code: [Select]
<npc id="50002" displayId="30138" type="Merchant" name="Alfiva" usingServerSideName="true" title="Silver Shop" usingServerSideTitle="true">
<status attackable="false" />
<collision>
<radius normal="8" />
<height normal="24.5" />
</collision>
</npc>
npc id="50002" - custom unused id with what you call that npc.
displayId="30138" - other npc id to give it a look, for example f you want rabbit as shop, you have to use it's id
type - for example merchant, teleporter, monster  and so on...
<collision> - you need to take those parametres of the npc you are cloning, in short you cant use those numbers randomly
Title: Re: How To Create NPC?!
Post by: ZhanetL2 on March 04, 2025, 11:47:13 AM
Code: [Select]
<npc id="50002" displayId="30138" type="Merchant" name="Alfiva" usingServerSideName="true" title="Silver Shop" usingServerSideTitle="true">
<status attackable="false" />
<collision>
<radius normal="8" />
<height normal="24.5" />
</collision>
</npc>
npc id="50002" - custom unused id with what you call that npc.
displayId="30138" - other npc id to give it a look, for example f you want rabbit as shop, you have to use it's id
type - for example merchant, teleporter, monster  and so on...
<collision> - you need to take those parametres of the npc you are cloning, in short you cant use those numbers randomly



 Okey thanks for the info , it’s there any ready npc pack for l2jmobius interlude ?  Like buffer gm shop , custom gk and more?!!
Title: Re: How To Create NPC?!
Post by: Naker on March 04, 2025, 04:19:45 PM
Check on google or use the search button 🤷🏽
Title: Re: How To Create NPC?!
Post by: BazookaRpm on March 04, 2025, 04:51:18 PM
You can search for a general GM hop and following the merchant structure, create your own NPC GM shop, for the gatekeeper replica you search in GK global, with teleport, and reuse the html according to your taste.
Title: Re: How To Create NPC?!
Post by: ZhanetL2 on March 04, 2025, 05:03:09 PM
Check on google or use the search button 🤷🏽

LOOOL  I didn't think of that
Title: Re: How To Create NPC?!
Post by: Naker on March 04, 2025, 07:33:33 PM
LOOOL  I didn't think of that
Then do it...
it's not a difficult thing to do, if you can't find it, then do it.