Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 30.05.2007, 12:23   #1
GMMorpheus
Архивный участник
 
Join Date: Jul 2006
Posts: 29
Default Creating a Brand New NPC

Hi all,

I searched about setting a multisell in an existent NPC. Found it and all worked.

But now I want to create a new NPC and make it sell itens for donators.
I understand I have to change npcdata.txt, but after I create a new npc there:

do I have to change it's ai?
how do I change its name because in npcdata it's only a code between []?
how do I set it's location permanently?
can I set it to be at more than 1 place at the same time (gludio, giran and aden)?

TIA
GMMorpheus is offline  
Old 30.05.2007, 15:17   #2
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

All the NPC info you'll need is in npcdata.txt - Just go there, copy another NPC and work on it so you can learn.

To positionate it use npcpos.txt. Go ingame and type /loc where you want it o be so that you can get the exact position you want, then you can either write the locs in npcpos or you can use a tool to make the pos's automatically for you. (L2Script Maker by HB for example)

Then you need to make the client side of it, npcname-e.dat and npcgrp.dat - To decode/encode them you'll need a tool, among them there is l2encdec, file_edit, remo-pack and many others. Most of these tools can be found right here in postpacific.

And yes, you can set it at more than one place at the same time. You can make multiple copies of it wherever you want, it's all in npcpos.txt.

Regards,
Mike.
PyroMaker is offline  
Old 30.05.2007, 20:17   #3
GMMorpheus
Архивный участник
 
Join Date: Jul 2006
Posts: 29
Default

You're the man ... thanks a lot
GMMorpheus is offline  
Old 06.06.2007, 18:27   #4
PyroMaker
Архивный участник
 
Join Date: Nov 2006
Posts: 277
Default

No problem.
PyroMaker is offline  
Old 07.06.2007, 14:33   #5
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

but its hard to make whole new npc because client side..

better is use NPCs that is not used by system like dummy_test or test_server NPC .. simply make new category in multisell and make new html file that will link to that new category and then simply edit npcdata and near ai=[] there is html file.. change it to your html file that link to your new multisell category.. and its done

its quicky in 2 minutes and you have same result as WHOLE new npc..
but creating whole new npc took you at least 1 hour because decoding files.. editing files (I mean client files).. creating new patch and distributing patch to all players + solving problems with retard players which dont apply patch correctly ;-DD

<-- 99% changes doing server-side.. because it need only few restarts :-D /have donate and gm shop created manually with 100's of items/
rodier is offline  
Old 07.06.2007, 14:36   #6
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

btw.. best thing what you can Do for donate shop, is make it in multisell (new category) and link that category in gatekeepers HTML dialog.

Because gatekeeper is most used NPCs and because gatekeepers are in all cities = so dont need make new spawns = less resources used = less work when searching for good /loc and creating npcpos spawns..

simply make new category ion multisell and paste 1 new line to every gatekeeper html dialog at end ;-D
rodier is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:48.