How to make npc sell something?

hello. im stuck at my because cannot buy anything from npc… anyone can told me how to make npc sell something to player? please help…

The NPC type Shopkeeper doesn’t make the NPC sell anything. It just stops the NPC from moving around.

Check out this tutorial on how to make shops.

ok then. i got it. i want put shop on npc but npc have moving. when i created npc on map, it respawn at auto coordinate. or when i click respawn map, npc go at random coordinate. can we lock the coordinate on npc?

Yes you can, go to Map editor and click on properties then go to the NPC tab.

i already make it but npc spawn at random coordinate…

You can use the NPC spawn map attribute to make sure the NPC spawns in a specific location.

You can use the NPC spawn map attribute to make sure the NPC spawns in a specific location.

ok. how to make it and how to locate npc to some coordinate?

Go into the Map Editor.

Click the attributes bubble label.

Click the NPC bubble label.

In the pop-up menu, choose the direction you want your NPC to face.

Place it on the map. This is where your NPC will spawn.

Now, use either BLOCK or NPC AVOID tiles around the NPC tile you placed to prevent the shopkeeper from wandering off.

ok. many thanks for you… it’s works… thanks.

Log in to reply