# How to create a shopkeeper / merchant npc

**URL:** <https://forum.kirupa.com/t/how-to-create-a-shopkeeper-merchant-npc/270939>\
**Category:** Uncategorized\
**Created:** [September 16, 2008, 1:49pm UTC](https://forum.kirupa.com/t/how-to-create-a-shopkeeper-merchant-npc/270939 "2008-09-16T13:49:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nietger](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@nietger](https://forum.kirupa.com/u/nietger)\
**Post date:** [September 16, 2008, 1:49pm UTC](https://forum.kirupa.com/t/how-to-create-a-shopkeeper-merchant-npc/270939/1 "2008-09-16T13:49:10Z")

</div>

Hi

I’m in the middle of creating a ragnarok online style rpg and I would like to create a merchant npc shop. I see this a many games and can’t wrap my head around the code. I would really appreciate it if anyone could post a tutorial or sample code that would explain how to create a merchant npc. I added a link to a video showing the effect I’m looking for.

Thanking you in advance
