I want every 1 hour add 0.2% of {bank.%player%} to {bank.%player%} (like interest), i want do this with all variables in {account::*} (online and offline players).
I have this at the moment, and i can't make the "interest" part works, any help? Thanks
I have this at the moment, and i can't make the "interest" part works, any help? Thanks
Code:
on join:
if {bank.%player%} is not set:
set {bank.%player%} to 100
add {bank.%player%} to {accounts::*}
every 1 hour:
loop {accounts::*}:
set {Int} to loop-value
add loop-value * 0.2 to {Int}
send "%loop-value%" to all players
delete {accounts::*}
add {Int} to {accounts::*}