Adding npcs to my server

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
Diana
Posts: 30
Joined: Fri Jun 20, 2014 9:04 pm

Adding npcs to my server

Post by Diana »

Server Rev: 6564
Datapack Rev: 10359

Okay so at the bottom I have attached the files that I`m using to add a PvP-Pk Count npc, gatekeeper, warehouse manager, server manager, and a GM shop. I have followed all the steps provided in the READ ME notepad which are as follows:
1) Install sql file
2)Copy and paste all files into their folders ( you should just follow the folders)
3)Resrart Your Server
4)Spawn Npc's The id's are

36600 Augument Manager
36601 PvP-Pk Manager
36602 Pk Protector
36603 Gm Shop
36604 Gatekeeper
36605 WareHouse Manager
36606 Npc Server Informer

- For the SQL file, I had to add the npcs manually into the npc table in l2jgs because the tables weren't matching.
And for the PvP-Pk Manager there was an included python script which I put in the custom scripts and added the path to it in scripts.cfg. (PvP-Pk Manager is the only working npc)

- For the rest of the npcs, I just added the files included in the .rar file to the html in data. they can be spawned in game, they can be targeted and their name tells what they should do. However, when I click on them (The GM shop for example), it just says that the npc doesn't have any quests for you, and it doesn't display the options that it should display.

So am I doing something wrong here? is there any extra step that needs to be done to make them work?
Assistance will be much appreciated!
You do not have the required permissions to view the files attached to this post.
Image
User avatar
Gries
Posts: 307
Joined: Fri Jun 17, 2011 9:45 am

Re: Adding npcs to my server

Post by Gries »

- About SQL they have been moved to datapack if you are using BETA. But as you wrote seems you have installed it properly, just check if you wrote the correct npcID.

- If the NPC says that doesn't have any quest for you there can be multiple reason for that:
• maybe you forgot to change the npctype, for example L2Merchant for your GMSHop
• maybe there's some error in the files (check console if you have any)
• maybe you forgot to add your script path into scripts.cfg file so it is not loading
• maybe you have installed files in the wrong location


* IF it is not a live server you can always try to use //reload <html,npc,multisell> and //script_load
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Adding npcs to my server

Post by UnAfraid »

Regarding npcs check this file here we ported other custom npcs http://trac.l2jdp.com/browser/branches/ ... custom.xml
Edit: Try to use this tool http://l2j.admincp.eu/
Image
User avatar
Diana
Posts: 30
Joined: Fri Jun 20, 2014 9:04 pm

Re: Adding npcs to my server

Post by Diana »

Gries wrote:- About SQL they have been moved to datapack if you are using BETA. But as you wrote seems you have installed it properly, just check if you wrote the correct npcID.

- If the NPC says that doesn't have any quest for you there can be multiple reason for that:
• maybe you forgot to change the npctype, for example L2Merchant for your GMSHop
• maybe there's some error in the files (check console if you have any)
• maybe you forgot to add your script path into scripts.cfg file so it is not loading
• maybe you have installed files in the wrong location


* IF it is not a live server you can always try to use //reload <html,npc,multisell> and //script_load
This worked perfectly for all the npcs, thanks very much!
Image
Post Reply