Skip to content

Basic Economy [BDFD]

The Arcwise Domain

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