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

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

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

by kotolegokot » Post

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
Last edited by kotolegokot on Tue Nov 06, 2012 17:35, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Stef
Member
Posts: 394
Joined: Wed Apr 04, 2012 10:46
Location: Belgium

by Stef » Post

can you use it also in singleplayer mode?
Sorry for my crappy english, im dutch :D

User avatar
LolManKuba
Member
Posts: 939
Joined: Fri Feb 10, 2012 22:36
Location: Ontario, Canada
Contact:

by LolManKuba » Post

Stef wrote:can you use it also in singleplayer mode?
stef u can use any mod for multiplayer in singleplayer lol.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

Yes, but this mod is useless in singleplayer mode.
Last edited by kotolegokot on Tue Jul 03, 2012 08:05, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Stef
Member
Posts: 394
Joined: Wed Apr 04, 2012 10:46
Location: Belgium

by Stef » Post

ow cant you make it you can bye stuff by mining for money, than will it be usefull in singleplayer
Sorry for my crappy english, im dutch :D

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

Do you mean that you will mine resources, earning money to buy resources in singleplayer mode?
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Stef
Member
Posts: 394
Joined: Wed Apr 04, 2012 10:46
Location: Belgium

by Stef » Post

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)
Sorry for my crappy english, im dutch :D

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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
Last edited by Calinou on Tue Jul 03, 2012 10:35, edited 1 time in total.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

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.
Last edited by kotolegokot on Tue Jul 03, 2012 10:16, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

Calinou, of course.
(requires the privilege "money_admin")
Last edited by kotolegokot on Tue Jul 03, 2012 10:18, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Stef
Member
Posts: 394
Joined: Wed Apr 04, 2012 10:46
Location: Belgium

by Stef » Post

I got an error: mods/minetest/money/init.lua:8: attempt to index local 'output' (a nil value)
Sorry for my crappy english, im dutch :D

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

What is your operating system?
Last edited by kotolegokot on Tue Jul 03, 2012 12:22, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

He uses Windows (I know). :P

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

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.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

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.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Stef
Member
Posts: 394
Joined: Wed Apr 04, 2012 10:46
Location: Belgium

by Stef » Post

ok for now it works (yes i use Windows Vista)
Sorry for my crappy english, im dutch :D

User avatar
Calinou
Moderator
Posts: 3164
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

kotolegokot wrote:This is unrealistic.
Yeah, and? Minetest isn't a realistic game, its focus is not to be realistic.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

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.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

Whenever I try to use any of the commands, it says "Server: -!- Player named "(the name i tried)" does not exist."
An innocent kitten dies every time you top-post.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

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'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Bas080
Member
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080
Location: Netherlands

by Bas080 » Post

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.

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

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.
An innocent kitten dies every time you top-post.

User avatar
kotolegokot
Member
Posts: 131
Joined: Mon Jul 02, 2012 17:03
Location: Russia, Ishim

by kotolegokot » Post

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.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

User avatar
Menche
Member
Posts: 1001
Joined: Sat Jul 02, 2011 00:43
IRC: Menchers
In-game: Menche
Location: An island in a lava lake.

by Menche » Post

Yessss it works, awesome mod! I think an economy is forming on my server :)
An innocent kitten dies every time you top-post.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests