Suggestion: Configurable Traders (for NPC shops) #3117

Open
opened 2 weeks ago by sherkhan30452 · 5 comments

Traders
Configurable mobs/NPC which can trade for you.
https://content.minetest.net/packages/Sokomine/mobf_trader/

I saw some shops in outside gates of 'Viskateel' were planned to be opened, without making use of smartshop. So, I think this is a great idea.

Traders Configurable mobs/NPC which can trade for you. https://content.minetest.net/packages/Sokomine/mobf_trader/ I saw some shops in outside gates of 'Viskateel' were planned to be opened, without making use of smartshop. So, I think this is a great idea.

The very Sokomine is working towards enhancing yl_speak_up to become a better NPC mod, which also allows sales.

The very Sokomine is working towards enhancing yl_speak_up to become a better NPC mod, which also allows sales.
AliasAlreadyTaken added the
1. kind/enhancement
label 2 weeks ago
Collaborator

i wonder if i could abstract the smartshop API to allow soko's mobs to make use of existing smartshop functionality. hmmm....

i wonder if i could abstract the smartshop API to allow soko's mobs to make use of existing smartshop functionality. hmmm....
flux added this to the flux's TODO list project 1 week ago
flux added the
2. prio/interesting
label 1 week ago
Collaborator

Perhaps. The yl_speak_up NPC are a bit diffrent regarding trading. In some ways they are more capable than smartshops, in some less.

My mobf_trader mod was probably too complicated regarding setting up trades. Due to lack of...space...I used the inventory of the player to set up the trades, which...wasn't understood by many players. The yl_speak_up traders use a very simple formspec which can't do much more than the smartshops. They can only trade one item(stack) for another - and not packages of multiple items per trade.

They can however offer a lot more than 4 trades each.

Limits can be set for the maximum and minimum amount of each item that the NPC wants to buy or sell. If he doesn't have enough, he doesn't sell the item anymore. If he has too much, he doesn't buy.

Another very useful feature is that each time a player asks for the list of trades the options of the dialog d_trade are checked. That way it is possible to react to shortages and let the NPC for example craft something he needs - or to take something from a chest or put something into a chest. This is hopefully useful for things where the demand isn't known in advance. It may also help to deal with the limited inventory space the NPC have.

I'd highly appreciate if this trading feature could be tested more! Please join the NPC test server on the same IP as YL, but port 30003, get an egg from farmer Fred, place it somewhere you can and teach it to trade, please!

Testing of the trading features is highly welcome.

Perhaps. The yl_speak_up NPC are a bit diffrent regarding trading. In some ways they are more capable than smartshops, in some less. My mobf_trader mod was probably too complicated regarding setting up trades. Due to lack of...space...I used the inventory of the player to set up the trades, which...wasn't understood by many players. The yl_speak_up traders use a very simple formspec which can't do much more than the smartshops. They can only trade one item(stack) for another - and not packages of multiple items per trade. They can however offer a lot more than 4 trades each. Limits can be set for the maximum and minimum amount of each item that the NPC wants to buy or sell. If he doesn't have enough, he doesn't sell the item anymore. If he has too much, he doesn't buy. Another very useful feature is that each time a player asks for the list of trades the options of the dialog d_trade are checked. That way it is possible to react to shortages and let the NPC for example craft something he needs - or to take something from a chest or put something into a chest. This is hopefully useful for things where the demand isn't known in advance. It may also help to deal with the limited inventory space the NPC have. I'd highly appreciate if this trading feature could be tested more! Please join the NPC test server on the same IP as YL, but port 30003, get an egg from farmer Fred, place it somewhere you can and teach it to trade, please! Testing of the trading features is highly welcome.
flux removed this from the flux's TODO list project 4 days ago
Collaborator

Testing of the trading features is highly welcome.

In my opinion, the trading function on the NPCs on the test server is already the easiest part to adjust. Maybe there should be two different NPCs. Once the full variant and next to it just this already well usable simple NPC dealer.

> Testing of the trading features is highly welcome. In my opinion, the trading function on the NPCs on the test server is already the easiest part to adjust. Maybe there should be two different NPCs. Once the full variant and next to it just this already well usable simple NPC dealer.
Collaborator

after more consideration, i decided it's best to keep the NPC store and smartshops semantically distinct. soko's point that NPCs can do a lot more than a smartshop is very important. if someone wants to have an NPC w/ a smartshop interface, they can very easily have an NPC AND a smartshop next to them.

after more consideration, i decided it's best to keep the NPC store and smartshops semantically distinct. soko's point that NPCs can do a lot more than a smartshop is very important. if someone wants to have an NPC w/ a smartshop interface, they can very easily have an NPC *AND* a smartshop next to them.
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#3117
Loading…
There is no content yet.