[Mod] Simple Shop [shop]

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

[Mod] Simple Shop [shop]

by everamzah » Post

Description: Old mod that I never released for some reason. Probably bad UI, but is suitable for simple exchanging of items. Includes a gold coin crafted from gold ingots.
License: GPL3
Depends: default
Download: GitHub or master.zip
Spoiler
ImageImage
Attachments
screenshot_20160610_102355.png
screenshot_20160610_102355.png (239.64 KiB) Viewed 2372 times
screenshot_20160610_102328.png
screenshot_20160610_102328.png (319.63 KiB) Viewed 2372 times
Last edited by everamzah on Wed Aug 02, 2017 09:55, edited 2 times in total.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Simple Shop [shop]

by azekill_DIABLO » Post

simple and esy! i love it!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Simple Shop [shop]

by everamzah » Post


User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Simple Shop [shop]

by Krock » Post

Please also add the dependencies of your mod to the main topic.
But the mod idea is good. What I would like to see is a texture that looks a bit more like a shop node.
Maybe it's just me but the current one could be rather be a bank or a treasure.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Simple Shop [shop]

by everamzah » Post

Thank you! It reminds me of a bank too. I'll keep an eye out for a better texture.

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Simple Shop [shop]

by everamzah » Post

Image

Image

The stock can now only be opened by the owner. I'll likely work on the formspec/messages sent more later.
Attachments
screenshot_20160630_112920.png
screenshot_20160630_112920.png (114.39 KiB) Viewed 2372 times
screenshot_20160630_112913.png
screenshot_20160630_112913.png (98.57 KiB) Viewed 2372 times

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Simple Shop [shop]

by azekill_DIABLO » Post

cool :)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Simple Shop [shop]

by ParaklataChotou » Post

Hello n_n. I'm using this mod, and it's amazing. But I'm want that the Item I add replace by itself, because I've a server. And I won't to go back and replace Items... you know. How can I do that - if it's possible?

***YOUR SHOP MOD IT'S THE BEST. IT WORKS GREAT AND IT'S VERY SIMPLE. IT'S A PITY THAT EXCHANGE MOD - MADE BY ZEG IT'S NOT WORKING. I TRIED AND IT DIDN'T WORK. :(. IF YOU CAN HELP ME, I WOULD BE REALLY GRATEFUL. :) ******
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Simple Shop [shop]

by everamzah » Post

The shop register relies on a stock being in its inventory, in order to exchange for what's asked. It's simple and that's all it can do.

I think, if anything, I'd like to add support to it for other mods that would interact with it, but am pretty unfamiliar with machines mods, etc. On the other hand, it might be easy enough to add a secondary, "admin" shop node. I just never got around to it, I guess, as it was asked before by Dragonop. Maybe I'll do that now, thanks for the reply.

I don't know about any other shop mod.

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Simple Shop [shop]

by ParaklataChotou » Post

everamzah wrote:The shop register relies on a stock being in its inventory, in order to exchange for what's asked. It's simple and that's all it can do.

I think, if anything, I'd like to add support to it for other mods that would interact with it, but am pretty unfamiliar with machines mods, etc. On the other hand, it might be easy enough to add a secondary, "admin" shop node. I just never got around to it, I guess, as it was asked before by Dragonop. Maybe I'll do that now, thanks for the reply.

I don't know about any other shop mod.
Oh, don't worry. I added adminshop mod - made by natan - and your mod I made available for single clients in my server. It's ok. It's an excellent mod for single clients.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
rnd
Member
Posts: 220
Joined: Sun Dec 28, 2014 12:24
GitHub: ac-minetest
IRC: ac_minetest
In-game: rnd

Re: [Mod] Simple Shop [shop]

by rnd » Post

Almost perfect shop mod that does what it needs to and without unnecessary features. Made a fork https://github.com/ac-minetest/shop with the following features - 4. takes care of ParaklataChotou request:

1.cleaned up minimalistic gui
2. user can see clearly what shop is selling/buying by just looking at shop
3. better and informative error display like:
"Error. You dont have enough items to pay" or "Error. Shop out of stock."
4. if shop owner is admin shop can sell/buy infinite items - no "out of stock" errors
5. shop errors now show as shop text - owner can easily spot shop with problems
6. player can't trade with himself to prevent easy abuses

Image

Image
Attachments
shop2.jpg
shop2.jpg (179.65 KiB) Viewed 2372 times
shop1.jpg
shop1.jpg (181.79 KiB) Viewed 2372 times
1EvCmxbzl5KDu6XAunE1K853Lq6VVOsT

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Simple Shop [shop]

by ParaklataChotou » Post

rnd wrote:Almost perfect shop mod that does what it needs to and without unnecessary features. Made a fork https://github.com/ac-minetest/shop with the following features - 4. takes care of ParaklataChotou request:

1.cleaned up minimalistic gui
2. user can see clearly what shop is selling/buying by just looking at shop
3. better and informative error display like:
"Error. You dont have enough items to pay" or "Error. Shop out of stock."
4. if shop owner is admin shop can sell/buy infinite items - no "out of stock" errors
5. shop errors now show as shop text - owner can easily spot shop with problems
6. player can't trade with himself to prevent easy abuses

Image

Image
It's simply amazing. If I build another server, I'll try this one. It looks cool. With selling/buying/trading options in one shop, it's really practical. Thank you rnd!!! n_n
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Simple Shop [shop]

by everamzah » Post

Very nice! Next time I look into the shop mod, I may incorporate some of your changes. I had originally more conditional messages, but later lumped them all together for whatever reason.

Can you fix my fork of mobs_npc too? The trader is broken. ^_^

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Simple Shop [shop]

by azekill_DIABLO » Post

everamzah wrote:Very nice! Next time I look into the shop mod, I may incorporate some of your changes. I had originally more conditional messages, but later lumped them all together for whatever reason.

Can you fix my fork of mobs_npc too? The trader is broken. ^_^
i'm usig your mod it's not dah broken. it's just dumb. i will also pst a bit of code to add to make the interaction better (look at u)
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Simple Shop [shop]

by ParaklataChotou » Post

Don't change everything. This mod is working fine. Other shop mods who ran so fine now are broken for no reason.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
ParaklataChotou
Member
Posts: 209
Joined: Sat Jun 18, 2016 17:09
GitHub: paraklatachotou
IRC: CareBearWhoCares
In-game: AutistCortana

Re: [Mod] Simple Shop [shop]

by ParaklataChotou » Post

Don't change everything. This mod is working fine. Other shop mods who ran so fine now are broken for no reason.
Visit my server: freextress.ddnsking.com 30002 . mobs, npcs, interesting places, pvp.

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

Re: [Mod] Simple Shop [shop]

by everamzah » Post

It's funny because I talked about wanting to set up some machine compatibility, and then rnd, who has made the Basic Machines mod I believe, replied with changes in a forked version. I decided not to incorporate all oh his changes at once, but replied that I'd look into some of it and merge it back in manually. Given how rapidly I work on my mods, this may take a long time, if ever.

I'd sooner modify it to work with machines, as I simply find that more interesting. But then I'd need to learn how to use machines, heh.

I also contemplated merging the trader from mobs_npc into this mod. Then, if mobs is present, a trader may optionally be spawned.

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Simple Shop [shop]

by Fixer » Post


User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [Mod] Simple Shop [shop]

by jas » Post

This one sells multiple items: https://github.com/jastevenson303/shop
Spoiler
Image
Image
Attachments
screenshot_20170802_041657.png
screenshot_20170802_041657.png (250.9 KiB) Viewed 2372 times
screenshot_20170802_041653.png
screenshot_20170802_041653.png (252.56 KiB) Viewed 2372 times

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: [Mod] Simple Shop [shop]

by taikedz » Post

jas, it's great that you made a shop...

Please however make your own posting in the WIP mods section, do not hijack other people's mod threads.

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [Mod] Simple Shop [shop]

by jas » Post

I should have mentioned it's a fork of this one. I could make a new thread, but I'd prefer to use this one. :)

Edit: Sorry, I also should have mentioned I'm everamzah, but I stopped using that name. I'll try to login and update the dead link.

User avatar
taikedz
Member
Posts: 698
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake
Location: Scotland, UK
Contact:

Re: [Mod] Simple Shop [shop]

by taikedz » Post

jas wrote:Edit: Sorry, I also should have mentioned I'm everamzah, but I stopped using that name.
You could have, yes :-)

Welcome back!

User avatar
jas
Member
Posts: 593
Joined: Mon Jul 24, 2017 18:15
IRC: Freenode
Location: IRC

Re: [Mod] Simple Shop [shop]

by jas » Post

Updated. Now previous button works.

If the owner pushes the Next button, and the current page has both buy/sell items, a new page is created (total: 32). If shop owners leave buy/sell item slots empty, other players will see it as empty. The previous button is just previous, the next button is next/create new. LOL. Privs shop ho!

User avatar
Fixer
Member
Posts: 904
Joined: Sun Jul 31, 2011 11:23
IRC: Fixer
In-game: Fixer
Location: Ukraine

Re: [Mod] Simple Shop [shop]

by Fixer » Post

jas wrote:Sorry, I also should have mentioned I'm everamzah, but I stopped using that name. I'll try to login and update the dead link.
Proof?

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Simple Shop [shop]

by rubenwardy » Post

jas wrote:I should have mentioned it's a fork of this one. I could make a new thread, but I'd prefer to use this one. :)

Edit: Sorry, I also should have mentioned I'm everamzah, but I stopped using that name. I'll try to login and update the dead link.
celeron55 may change a username if you ask him nicely
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 25 guests