Solved Sell (item) for essentials money?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

EthanCW

New Member
Mar 16, 2019
5
0
0
35
I made a skript where it's essentially a cookie clicker skript with a custom currency as {cookies}. I want the players to be able to do /sellcookies in order to get essentials money. 1 cookie = 1$

Sell Cookies Skript:

Code:
command /sellcookies:
    permission: cookies.sell
    permission message: &4Oh no, you can't sell cookies! Inform an admin.
    trigger:
        add {cookies} to {Money::%player%} # <-- Right here
        wait 1 seconds
        set {balance::%player%} to 0

Balance Skript:

Code:
command /cookies [<player>]:
    permission: cookies.accessbal
    permission message: &4Oh no, you dont have access! Inform an admin.
    trigger:
        if arg-1 is not set:
            send "&7Currently, you have &6%{balance::%player%}% &7cookies."
        else:
            send "&7%arg 1% has &6%{balance::%player%}% &7cookies."
 
Can you exchange cookies for essentials money or custom currency from another skript?
 
IDK if this could help but you have a line that says “wait 1 seconds”
I think it’s “Wait 1 second”
 
Status
Not open for further replies.