GM Shop NPCs (I'm a little confused on this subject)

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
Yuri909
Posts: 47
Joined: Tue Apr 28, 2009 2:51 am

GM Shop NPCs (I'm a little confused on this subject)

Post by Yuri909 »

Ok after searching the forums I've somehow not managed to find what I was looking for so I'll just ask here.

A lot of the past servers I've been on had custom made NPC shops that basically contained every item in the game per the value of this item based on shop information and things like warycry's database. I'm trying to figure out if there are premade ones available somewhere that I can simply plug and play and summon. I'm not experianced enough to make my own custom NPCs yet which is why I ask.

If none are available... anyone willing? :P haha..
toastgodsupreme
Posts: 750
Joined: Sun Dec 07, 2008 7:01 pm
Location: Poland

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by toastgodsupreme »

But... it's so easy.
Deadmeat
Posts: 286
Joined: Fri Sep 22, 2006 1:03 am
Location: Red Rock, Mars

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by Deadmeat »

I can help you in two steps to find lot of premade GM Shop's other admins made just for you.
1.) search.php
2.) Keyword Search text: GM Shop
wasabi2k
Posts: 110
Joined: Sun Oct 08, 2006 4:22 pm

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by wasabi2k »

Yuri909
Posts: 47
Joined: Tue Apr 28, 2009 2:51 am

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by Yuri909 »

I'm meaning a custom shop NPC... that is placed by GMs and has the prices on items for players to buy... all I find when searching is just crap for the GM's Shop menu.
storm3r
Posts: 8
Joined: Thu Jul 17, 2008 4:50 pm

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by storm3r »

i wrote out a guide on another forums on how to make one from any NPC you want.
i could post it here if you want.
just PM me if you want it.
dezel78000
Posts: 29
Joined: Fri Apr 18, 2008 4:04 am

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by dezel78000 »

To make a npc, i good idea might be to figure out what type you would like to make. The 1st thing i would start with is to make the npc in your database. i find it easyer to go in the game and find a npc of the type i wish to make and go into the DB and copy, and paste it in notepad. change the id to what ever # you want to use: i find 60000 is a good # to start with exp:

60000 25079 Tony 1 Gm Weapon Shop 1 Monster.cutie_cat 8 15 70 male L2Merchant 40 3862 1493 11.85 2.78 40 43 30 21 20 10 0 0 1314 470 780 382 278 0 333 0 0 0 88 132 NULL 0 0 0 LAST_HIT 0 0 0 fighter false

as you can see this type is an npc that will sell you stuff from the L2Merchant in its list. there are others like L2Npc, L2Walker, and many more. this part will tell the server how to read what files when a player opens the npc's menu. If it is this type of npc it will open files in the merchants list in the Html of your server pack. If it is an L2Npc it might open a quest section.

so the next thing i would say to do is get an under standing how the server will read the server pack you have, as you play around with npc you will get an understand how this works. open up your Html file in your server pack. you will see there are lost of files like teleport, merchant, default, and so on. if you go in your server and hold the shift down and click on an npc it will show you what type it is.

after you know what type of npc you want or need, the next thing to do would be make a Html file for it to read, this will be the first file the server will read to show your players a menu, so they can pick what they want, as in what grade of armor they want: Dgrade list or c grade list and so on. an understanding how to work with html scripting is a must, but again by looking at other ones you can figure it out.

next after you have made you first menu's and links, you want to make a XML that will hold the items you want to sell or trade here is an exp:

<!-- Greater Dye of CON <Con+4 Dex-4> -->
<item id="1">
<ingredient id="57" count="1000000"/>
<production id="4616" count="10"/>
</item>

this is a very bases on how to get a good idea how it works, my best advise it to do some research be for you start, i found making npc's can be very upsetting at time, mostly when you forget to add one small thing or set the right #.

I how this helped some.
dezel78000
Posts: 29
Joined: Fri Apr 18, 2008 4:04 am

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by dezel78000 »

yes it is so easy being an ass, dude i'm sure you were at this point in your life. have alittle respect for new comers to the wonderful would of programing...lol
toastgodsupreme wrote:But... it's so easy.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by _DS_ »

Not a contribution, moved to support.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
theone
Posts: 1384
Joined: Tue Aug 12, 2008 2:28 am
Location: Quebec, Canada

Re: GM Shop NPCs (I'm a little confused on this subject)

Post by theone »

Seriously... you guys looked at this?
5th link from the top of the first page is this:
viewtopic.php?f=13&t=12281&p=55419&hilit=gm+shop#p55419
EVERYTHING you need is there... EVERYTHING
You only need to change the item prices in the sql file and change the name and title of the NPC.

<offtopic>
_DS_, good call moving this... and btw I like your new signature :)
</offtopic>
Image
Post Reply