Page 1 of 5

[Mod] Money (or Economy) [201207] [money]

Posted: Tue Jul 03, 2012 07:10
by kotolegokot
This mod adds commerce in Minetest.

Commands for players (requires "money" privilege):
  • /money — gets the balance of your account;
  • /money pay <account> <amount> — transfers <amount> money to <account>.
Commands for administrators (requires "money_admin" privilege):
  • /money <account> — gets balance of <account>;
  • /money set <account> <amount> — sets balance of <account> in <amount> money;
  • /money inc <account> <amount> — increases <amount> money to balance of <account>;
  • /money dec <account> <amount> — decreases <amount> money from balance of <account>;
  • /money take <account> <amount> — takes off <amount> money from balance of <account>;
  • /money freeze <account> — freezes <account>;
  • /money unfreeze <account> — unfeezes <account>.
Also, this mod adds 4 kinds of shops:
  • Just shop
  • Barter shop
  • Admin shop
  • Admin barter shop
Shop recipe:
[Locked Chest]
[Locked Sign]
Barter shop recipe:
[Locked Sign]
[Locked Chest]
Admin shops don't have recipes.

When you placed a shop, you must fill in the form:
Image
after, if you fill in the form correctly, you will see this picture:
Image

With other shops are just the same.

Code: GPLv2/later, textures: CC BY-SA

Mod dependencies: default, locked_sign

Download
Download (money + locked_sign)

Github repository

Posted: Tue Jul 03, 2012 07:58
by Stef
can you use it also in singleplayer mode?

Posted: Tue Jul 03, 2012 07:59
by LolManKuba
Stef wrote:can you use it also in singleplayer mode?
stef u can use any mod for multiplayer in singleplayer lol.

Posted: Tue Jul 03, 2012 08:05
by kotolegokot
Yes, but this mod is useless in singleplayer mode.

Posted: Tue Jul 03, 2012 08:06
by Stef
ow cant you make it you can bye stuff by mining for money, than will it be usefull in singleplayer

Posted: Tue Jul 03, 2012 09:10
by kotolegokot
Do you mean that you will mine resources, earning money to buy resources in singleplayer mode?

Posted: Tue Jul 03, 2012 10:03
by Stef
yes something like that you must mine to make money and with that money you can buy new rare stuff that cant be crafted or founded? (only prob. you must make new stuff too)

Posted: Tue Jul 03, 2012 10:14
by Calinou

Code: Select all

/money set <player> <amount> — sets the balance of <player> in <amount> money;
/money add <player> <amount> — adds <amount> money to the balance of <player>;
/money dec <player> <amount> — takes off <amount> money from the balance of <player>
Do they require any special privilege? I hope. :P

Posted: Tue Jul 03, 2012 10:16
by kotolegokot
Stef, I understood you. But if a player will mine to make money, the player will can place a node and mine it to make money.

Posted: Tue Jul 03, 2012 10:17
by kotolegokot
Calinou, of course.
(requires the privilege "money_admin")

Posted: Tue Jul 03, 2012 10:28
by Stef
I got an error: mods/minetest/money/init.lua:8: attempt to index local 'output' (a nil value)

Posted: Tue Jul 03, 2012 10:30
by kotolegokot
What is your operating system?

Posted: Tue Jul 03, 2012 10:36
by Calinou
He uses Windows (I know). :P

Posted: Tue Jul 03, 2012 10:37
by Calinou
kotolegokot wrote:Stef, I understood you. But if a player will mine to make money, the player will can place a node and mine it to make money.
A money ore would be possible - drop 1 cobblestone when mined and money. This way you can't replace the money ore.

Posted: Tue Jul 03, 2012 10:54
by kotolegokot
Stef wrote:I got an error: mods/minetest/money/init.lua:8: attempt to index local 'output' (a nil value)
Try to download once again and again to check.

Posted: Tue Jul 03, 2012 11:20
by kotolegokot
Calinou wrote:
kotolegokot wrote:Stef, I understood you. But if a player will mine to make money, the player will can place a node and mine it to make money.
A money ore would be possible - drop 1 cobblestone when mined and money. This way you can't replace the money ore.
This is unrealistic.

Posted: Tue Jul 03, 2012 11:23
by Stef
ok for now it works (yes i use Windows Vista)

Posted: Tue Jul 03, 2012 11:51
by Calinou
kotolegokot wrote:This is unrealistic.
Yeah, and? Minetest isn't a realistic game, its focus is not to be realistic.

Posted: Tue Jul 03, 2012 12:07
by kotolegokot
Calinou wrote:
kotolegokot wrote:This is unrealistic.
Yeah, and? Minetest isn't a realistic game, its focus is not to be realistic.
Ok, but this mod adds commerce only. Most of those who create the server, it is not necessary.

Posted: Mon Jul 09, 2012 21:35
by Menche
Whenever I try to use any of the commands, it says "Server: -!- Player named "(the name i tried)" does not exist."

Posted: Tue Jul 10, 2012 06:14
by kotolegokot
Menche wrote:Whenever I try to use any of the commands, it says "Server: -!- Player named "(the name i tried)" does not exist."
This means that this player has not yet opened an account. To do so, he must join the game.

Posted: Sat Jul 14, 2012 11:04
by Bas080
I'm thinking of the possibilities minetest has to make good adventure maps. This mod gives designers the possibility to force players to choose what item they are going to spend there golden coins on.

Posted: Mon Jul 16, 2012 05:52
by Menche
kotolegokot wrote:
Menche wrote:Whenever I try to use any of the commands, it says "Server: -!- Player named "(the name i tried)" does not exist."
This means that this player has not yet opened an account. To do so, he must join the game.
I tried the command on myself, and on several players who were logged on at the time. None of them worked.

Posted: Thu Jul 19, 2012 13:05
by kotolegokot
Menche wrote:
kotolegokot wrote:
Menche wrote:Whenever I try to use any of the commands, it says "Server: -!- Player named "(the name i tried)" does not exist."
This means that this player has not yet opened an account. To do so, he must join the game.
I tried the command on myself, and on several players who were logged on at the time. None of them worked.
I'm sorry. This is bug. I already fix it.

Posted: Fri Jul 20, 2012 19:21
by Menche
Yessss it works, awesome mod! I think an economy is forming on my server :)