Basic Economy [BDFD]
This page contains Code for Basic Economy. No explanation.
Code
variables
coins: "0",bank: "0"
balance
$nomention$description[**Greetings $username! Your balance is:**
- *Cash*๐ฐ **$getUserVar[coins]**- *Bank*๐ฐ **$getUserVar[bank]**]$addTimestamp
- BDScript 2
deposit
$nomention$title[โ
| Deposit Successful]$description[**$username has deposited** `$message[1]` Coin/s]$setUserVar[coins;$sub[$getUserVar[coins];$message[1]]]$setUserVar[bank;$sum[$getUserVar[bank];$message[1]]]
$onlyIf[$message[1]<=$getUserVar[coins];โ | You don't have that much cash to deposit!]
- BDScript
withdraw
$nomention$title[โ
| Withdraw Successful]$description[**$username has withdrawed** `$message[1]` Coin/s]$setUserVar[coins;$sum[$getUserVar[coins];$message[1]]]$setUserVar[bank;$sub[$getUserVar[bank];$message[1]]]
$onlyIf[$message[1]<=$getUserVar[bank];โ | You don't have that much cash to withdraw!]
- BDScript
pay
$nomention$title[โ
| Action Completed]$description[$username[$mentioned[1]] has received **$message[1]** Coin/s from $username[$authorID]]
$setUserVar[coins;$sum[$getUserVar[coins;$mentioned[1]];$message[1]];$mentioned[1]]
$setUserVar[coins;$sub[$getUserVar[coins;$authorID];$message[1]];$authorID]]
$onlyIf[$message[1]<=$getUserVar[coins];โ | You don't have that much cash!]
- BDScript
- Usage: pay [amount] @user
beg
$nomention$description[Stop being a begger... here few coins for u, check ur balance ๐คจ]$c[you can use randomText function to add more random texts to it]
$setUserVar[coins;$sum[$getUserVar[coins];$random]]
- BDScript
daily
$nomention$title[โ
| $username has claimed his daily!]$description[*Come back tommorow!*> **Daily Reward: 500$**]$setUserVar[coins;$sum[$getUserVar[coins];500]]$cooldown[24h;Cooldown is active, you can use command again in %time%]
- BDScript
monthly
$nomention$title[โ
| $username has claimed his monthly!]$description[*Come back next month!*> **Monthly Reward: 5000$**]$setUserVar[coins;$sum[$getUserVar[coins];5000]]$cooldown[31d;Cooldown is active, you can use command again in %time%]
- BDScript
End
- Thanks to anyone who is still Following me on Youtube Channel and actually uses codes I make, appreciate that!
- Hope you liked this Basic Economy in BDFD!
Credits
JosipFX - Made Code & Video