Help... How to create an NPC from scratch

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
jomega
Posts: 2
Joined: Sun Mar 04, 2007 5:31 am

Help... How to create an NPC from scratch

Post by jomega »

hello i'm noob here.. when i use //spawn 9999 (for example) it says that the target is not ingame.. is there a way to use those "empty" spaces and create my own NPC with that id (9999 for example)? How can i set the way it looks(a cat)? WHere do i put the HTML for his speech? can i make it as a quest NPC and use a .jy file?? How?
thx

(I hope someone here is in the mood for answering long noob questions lol)
PS: i Posted this in off-Topic because this question could have answers about SQL,Html,Jython, etc...

thanks again :P
msknight
Advanced User
Advanced User
Posts: 308
Joined: Wed May 10, 2006 11:40 am
Location: U.K.

Post by msknight »

Hi,

Yes, you can create a custom NPC. In the NPC tables, create an entry for it.

id is the number when you use the //spawn command - I keep custom NPC's in the 90,000 region so they don't clash.

idTemplate is the number of an already existing NPC - that controls what your custom NPC will look like.

Serversidename and serversidetitle are the text that appear above the NPC's head.

The server will have to be rebooted before the NPC will be in game.

The important thing to rememeber ...

Keep a backup of any custom work that you do ... I keep a record of the changes by way of SQL commands in a text file ... so that when the datapack is upgraded, I can apply my custom changes very quickly and easily.

I did also go as far as making a simple quest guide ...
http://195.7.255.202/documentation/quest1.htm
... but the code to reset the quest at the end is not correct. There is code somewhere to wipe the quests settings.

I'm hoping to make a technical FAQ section when I understand more about how the system hangs together, to take a bit of pressure off the forums. It'll come in time.

Hope that helps.

Michelle.
My friend is a paranoid schizophrenic ... she'll take over the world, as long as nobody minds.
jomega
Posts: 2
Joined: Sun Mar 04, 2007 5:31 am

thanks alot

Post by jomega »

thanks alot for your reply it was very useful :D
Post Reply