Solved How to make money multiplier

  • 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.

Danher

New Member
Jan 18, 2020
5
0
0
19
Ok so im making a server where you prestige but i dokt know how so like when u run a command it adds like a 0.1 multiplier to the money you earn so like if a gen gives 1 dollar in game it would give you 1.1 if u have prestiged
 
Can you give us your current code?
Idk how to use format but i guess i have this
command /rebirth:
trigger:
if player's balance is >= 20000:
if player has brown stained glass named "&6&lGodly":
execute server command "eco reset %player%
here i want it to add the multiplier which i dont know how
 
I mean, that doesn't really help a lot because I have no idea how your players get their money...
 
I mean, that doesn't really help a lot because I have no idea how your players get their money...
Does this help?
every 3 seconds:
loop all players:
loop all blocks in radius 1 of loop-player:
if loop-block is black stained glass:
add 1 to loop-player's balance
 
Does this help?
every 3 seconds:
loop all players:
loop all blocks in radius 1 of loop-player:
if loop-block is black stained glass:
add 1 to loop-player's balance
Yes, thank you! I'll get straight to work
[doublepost=1579363152,1579363008][/doublepost]try this
Code:
on join:
    if {multiplier.%player's uuid%} is not set:
        set {multiplier.%player's uuid%} to 1
command /rebirth:
    trigger:
        if player's balance >= 20000:
            if player has brown stained glass named "&6&lGodly":
                execute server command "eco reset %player%"
                add 0.1 to {multiplier.%player's uuid%}
every 3 seconds:
    loop all players:
        loop all blocks in radius 1 of loop-player:
            if loop-block is black stained glass:
                add 1 * {multiplier.%loop-player's uuid%} to loop-player's balance
 
Yes, thank you! I'll get straight to work
[doublepost=1579363152,1579363008][/doublepost]try this
Code:
on join:
    if {multiplier.%player's uuid%} is not set:
        set {multiplier.%player's uuid%} to 1
command /rebirth:
    trigger:
        if player's balance >= 20000:
            if player has brown stained glass named "&6&lGodly":
                execute server command "eco reset %player%"
                add 0.1 to {multiplier.%player's uuid%}
every 3 seconds:
    loop all players:
        loop all blocks in radius 1 of loop-player:
            if loop-block is black stained glass:
                add 1 * {multiplier.%loop-player's uuid%} to loop-player's balance
Umm one question, what does add 1 * {multiplier.%loop-player's uuid%} to loop-player's balance do is it needed? It looks like it adds multiplier every 3 seconds so just asking at the last line.
 
If you want the multiplier do anything, yes. What it does is if you rebirthed once, you would start gaining 1.1 dollars every 3 seconds, that line of code is what gives you the money
 
If you want the multiplier do anything, yes. What it does is if you rebirthed once, you would start gaining 1.1 dollars every 3 seconds, that line of code is what gives you the money
Ok so if you rebirth again it would just add 0.1 again i guess now thx for helping me
 
Status
Not open for further replies.