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

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

Please keep older versions posted, my server uses the stable branch.
An innocent kitten dies every time you top-post.

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

the update didnt help me sorry. So i decided to go a different route. I modified your original locked sign method so i can buy and sell to the same chest, where the chest can be hidden.

Download - includes modifications to the locked sign and money mod

Pictures:
Sign and chest setup
Sign Text setup
Sign Output
Sample Setup

Read me setup:
The chest has to be the 5th box below the Buy sign, and 7th box below the sell sign.

Examples:
Buy Dirt setup "Buy Dirt| B default:dirt 1 4"
shows as "Buy Dirt"
Sell Dirt setup "Sell Dirt| S default:dirt 1 2"
shows as "Sell Dirt"

How it works:
"Message shown| B/S itemname quantity price"
Message Shown = The message that the player will see when looking at the sign.
| = the symbol that splits the string up.
B/S = Enter in either B or S, B=Buy, S=Sell
Quantity = the amount of the item in the exchange
Price = the price of the item for the exchange

-------------------

hope you don't mind XD
Last edited by Nubelite on Thu Jul 26, 2012 04:12, edited 1 time in total.

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

Can you please put the old version back up? I need it for my server.
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

I thought that everyone uses master branch. Now in the stable-0.4 I cannot use "button" in "formspec". I will keep older version.
Last edited by kotolegokot on Thu Jul 26, 2012 05:45, 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

Nubelite, this take a lot of space. Wait for the release of new stable version.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

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:

by rubenwardy » Post

You could use Steel ingots or Gold to convert to money, so you can get paid for mining
Last edited by rubenwardy on Thu Jul 26, 2012 15:46, edited 1 time in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

by kotolegokot » Post

Currency is not a item.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

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:

by rubenwardy » Post

kotolegokot wrote:Currency is not a item.
I know. I edited the post to make more sense
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

by kotolegokot » Post

This mod focuses on the interaction between players. You can sell your Steel ingots and Gold to another player, so you can get paid for mining.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

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:

by rubenwardy » Post

How is money fed into the system?
If no money is entered, the total player money will stay the same so no one can get rich without every else getting poorer.

There needs to be a money input into the system.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

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

by kotolegokot » Post

Admin Shop.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

Nubelite
Member
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Post

Here is a shop i setup with my customized version, just to give you an idea of what i was aiming for. It is on my server if you want to look in person.

Image
Image

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

by kotolegokot » Post

This is very nice, but takes too much space.
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

I have added many new features (see the GitHub repository). Please test it and post me the results.
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

Big update. Added normal shops and some commands.
Last edited by kotolegokot on Fri Sep 21, 2012 16:23, 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.

sda97
Member
Posts: 33
Joined: Fri Jul 06, 2012 07:45
Location: Siberia, Ishim

by sda97 » Post

Cool mod! Best economic mod for mintest. But lack of transfer commands for admins, which send money from one account to another account...
Last edited by sda97 on Mon Sep 24, 2012 14:43, edited 1 time in total.

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

by kotolegokot » Post

Thanks. This is a good idea! I will do it later.
Last edited by kotolegokot on Mon Oct 08, 2012 14:39, 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.

fgr
Member
Posts: 87
Joined: Mon Sep 17, 2012 08:22

by fgr » Post

sorry i cant get this to work .... it says always untuned shop .. :(

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

by kotolegokot » Post

So, you fill in the form incorrectly.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

tux_peng
Member
Posts: 99
Joined: Thu Dec 06, 2012 18:21

by tux_peng » Post

Awesome mod, but, could you possibly make a server shop GUI with InventoryPlus, that gets it's price list from an external text file?

mod:node:buyprice:sellprice

default:stone:20:15
default:wood:20:15
defaule:dirt:15:10
Servers now up (Economy, no PvP) Forum up already! http://tuxcraft.info

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

by kotolegokot » Post

Great idea! I will do it later.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.

tux_peng
Member
Posts: 99
Joined: Thu Dec 06, 2012 18:21

by tux_peng » Post

thx

Awesome mod!
Servers now up (Economy, no PvP) Forum up already! http://tuxcraft.info

tux_peng
Member
Posts: 99
Joined: Thu Dec 06, 2012 18:21

by tux_peng » Post

I was thinking about trying to hook a function of another mod into this, more specifly- adsd a user to a protecter+ block when a user with enough money punches it. Something like

Code: Select all

if (balance(get_player_name()== 1500 && forsale)
{
     owner.set(get_player_name())
     balance(get_player_name() =- 1500
}
As you can see, I don't even know lua yet; but could I get and subtract from the balance with wu=ith another mod?
Servers now up (Economy, no PvP) Forum up already! http://tuxcraft.info

Kryuko
Member
Posts: 76
Joined: Tue Dec 11, 2012 20:26

by Kryuko » Post

How can i able my users to use this mod? If their use the "/money" command, give a no permissions error.

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

by kotolegokot » Post

They must have "money" privilege. Also, you can add "default_privs = interact, shout, money" into the minetest.conf.
Last edited by kotolegokot on Thu Dec 13, 2012 12:39, 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests