Jump to content

Auto Money Generator Skript needed


Narratrr

Recommended Posts

okay, so I need a skript that when you place down a gold block it automatically starts giving u money and instead of being an actual physical gen it goes to your /gens balance, basically a virtual money generator. and the more gens u have the more money u accumulate over time.

IGN: LastMC

Discord: LastXD#7171

Rank: PRO

Join date: Monday - December - 23rd - 2019

Link to comment
Share on other sites

Moved to Marketplace

Please post in the right category next time when requesting a skript. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

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

[VIP] - 7/27/2020

Community Support - 7/8/20 - 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - 12/20/22

Moderator - 12/20/22 - now

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

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

variables:

    {gen.balance.%uuid of player%} = 0

every second:

  loop all players:

     loop blocks in radius 5 around loop-player:

        if loop-block is gold block:

           add 1 to {gen.balance.%uuid of player%}


command /money:

  trigger:

  send “{gen.balance.%uuid of player%}$”

Link to comment
Share on other sites

30 minutes ago, LastMC said:

Jockerlight, it didn't work for some reason

It seems there are some issues with the spacing of the code. Try this:

options:
  genDropSecond: 5 seconds

variables:
  {gen.balance.%uuid of player%} = 0

every {@genDropSecond}:
  loop all players:
    loop blocks in radius 5 around loop-player:
      if loop-block is gold block:
        add 1 to {gen.balance.%uuid of player%}

command /money:
  trigger:
    send “{gen.balance.%uuid of player%}$”

Hope it helps!

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

options:
  generateSecond: 5 seconds

on first join:
  set {gen::balance::%uuid of player%} to 0

every {@generateSecond}:
  loop all players:
    set {_u} to uuid of loop-player
    loop blocks in radius 5 around loop-player:
      if loop-block is gold block:
        add 1 to {gen::balance::%{_u}%}

command /money [<text>]:
  trigger:
    if arg-1 is not set:
      send “You have %{gen::balance::%uuid of player%}%$ in your bank.”
      send "Use /money take to get the money"
    else if arg-1 is "take":
      add {gen::balance::%uuid of player%} to balance of player
    else:
      send "&cUnder Development."

something like this should work.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

i know why.. im on mac so the quotation marks did the weird thingy..

send "You have %{gen::balance::%uuid of player%}%$ in your bank."

put that in the code to replace the line with the error.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...