![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Jul 2006
Posts: 29
|
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 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
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. |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jul 2006
Posts: 29
|
You're the man ... thanks a lot
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Nov 2006
Posts: 277
|
No problem.
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
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/ |
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
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 |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|