Page 1 of 1

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

Posted: Sun May 24, 2009 3:33 pm
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..

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

Posted: Sun May 24, 2009 3:47 pm
by toastgodsupreme
But... it's so easy.

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

Posted: Sun May 24, 2009 3:56 pm
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

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

Posted: Sun May 24, 2009 7:32 pm
by wasabi2k

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

Posted: Wed May 27, 2009 10:00 pm
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.

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

Posted: Fri Jun 12, 2009 8:58 pm
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.

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

Posted: Fri Jul 03, 2009 4:41 am
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.

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

Posted: Fri Jul 03, 2009 4:44 am
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.

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

Posted: Fri Jul 03, 2009 5:27 am
by _DS_
Not a contribution, moved to support.

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

Posted: Fri Jul 03, 2009 5:31 am
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>