Other available versions. Ordered by newest to oldest versions:
Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
#
# Crypto by Sek
#
options:
Prefix: &8[&cCrypto&8]&f
PriceError: &cYou can not afford that.
AmountError: &cYou do not have enough coins.
LowError: &cYou must buy at least 0.01 of a coin.
LowSError: &cYou must sell at least 0.01 of a coin.
PayError: &cYou do not own enough coins.
variables:
{monero.%player%} = 0
{ethereum.%player%} = 0
{bitcoin.%player%} = 0
{litecoin.%player%} = 0
{dash.%player%} = 0
{EOS.%player%} = 0
{NEO.%player%} = 0
{IOTA.%player%} = 0
{Tether.%player%} = 0
{VeChain.%player%} = 0
{Zcash.%player%} = 0
{Maker.%player%} = 0
{Mixin.%player%} = 0
{Skycoin.%player%} = 0
{Gas.%player%} = 0
{Lisk.%player%} = 0
{Waltonchain.%player%} = 0
{MonaCoin.%player%} = 0
{Waves.%player%} = 0
{Salt.%player%} = 0
{Garlicoin.%player%} = 0
{Ripple.%player%} = 0
{Cardano.%player%} = 0
{Stellar.%player%} = 0
{NEM.%player%} = 0
{TRON.%player%} = 0
{ICON.%player%} = 0
{VERGE.%player%} = 0
{crypto.bamount.%player%} = 0
{crypto.samount.%player%} = 0
on load:
clear {crypto::*}
add "Bitcoin" to {crypto::*}
add "Ethereum" to {crypto::*}
add "Monero" to {crypto::*}
add "Litecoin" to {crypto::*}
add "Dash" to {crypto::*}
add "EOS" to {crypto::*}
add "NEO" to {crypto::*}
add "IOTA" to {crypto::*}
add "Tether" to {crypto::*}
add "VeChain" to {crypto::*}
add "Zcash" to {crypto::*}
add "Maker" to {crypto::*}
add "Mixin" to {crypto::*}
add "Skycoin" to {crypto::*}
add "Gas" to {crypto::*}
add "Lisk" to {crypto::*}
add "Waltonchain" to {crypto::*}
add "MonaCoin" to {crypto::*}
add "Waves" to {crypto::*}
add "Salt" to {crypto::*}
add "Garlicoin" to {crypto::*}
add "Ripple" to {crypto::*}
add "Cardano" to {crypto::*}
add "Stellar" to {crypto::*}
add "NEM" to {crypto::*}
add "TRON" to {crypto::*}
add "ICON" to {crypto::*}
add "VERGE" to {crypto::*}
loop {crypto::*}:
send a request to "https://api.coinmarketcap.com/v1/ticker/%loop-value%/"
copy json last http response's body to {%loop-value%::*}
command /crypto [<text>] [<text>] [<number>] [<player>]:
permission: crypto.use
permission message: &cYou do not have permission for that.
trigger:
if arg-1 is "buy":
if arg-2 is set:
loop {crypto::*}:
if arg-2 is loop-value:
if arg 3 is set:
if arg 3 is greater than or equal to .01:
set {loopamount} to 0
if the player's balance is greater than or equal to arg 3*{%arg 2%::1::price_usd} parsed as a number:
remove arg 3*{%arg 2%::1::price_usd} parsed as a number from the player's balance
add arg 3 to {%arg 2%.%player%}
send "{@Prefix} &7You have just purchased &6%arg 3% %arg 2% &7for &6$%arg 3*{%arg 2%::1::price_usd} parsed as a number%&7!"
else if the player's balance is less than arg 3*{%arg 2%::1::price_usd} parsed as a number:
send "{@Prefix} {@PriceError}"
if arg 3 is less than .01:
send "{@Prefix} {@LowError}"
if arg 3 is not set:
make player execute command "/crypto help"
if {crypto::*} does not contain arg 2:
send "{@Prefix} &cPlease use one of the following coins."
send "&a%{crypto::*}%"
if arg-2 is not set:
make player execute command "/crypto help"
if arg-1 is "sell":
if arg-2 is set:
loop {crypto::*}:
if arg-2 is loop-value:
if arg 3 is set:
if {%arg 2%.%player%} is greater than or equal to arg 3:
if arg 3 is greater than or equal to .01:
set {loopamount} to 0
add arg 3*{%arg 2%::1::price_usd} parsed as a number to the player's balance
remove arg 3 from {%arg 2%.%player%}
send "{@Prefix} &7You have just sold &6%arg 3% %arg 2% &7for &6$%arg 3*{%arg 2%::1::price_usd} parsed as a number%&7!"
if arg 3 is less than .01:
send "{@Prefix} {@LowSError}"
else if {%arg 2%.%player%} is less than arg 3:
send "{@Prefix} {@AmountError}"
if arg 3 is not set:
make player execute command "/crypto help"
if {crypto::*} does not contain arg 2:
send "{@Prefix} &cPlease use one of the following coins."
send "&a%{crypto::*}%"
if arg-2 is not set:
make player execute command "/crypto help"
if arg-1 is "pay":
if arg-2 is set:
loop {crypto::*}:
if arg-2 is loop-value:
if arg 3 is set:
if arg 4 is set:
if {%arg 2%.%player%} is greater than or equal to arg 3:
if arg 3 is greater than or equal to .01:
set {loopamount} to 0
add arg 3 to {%arg 2%.%arg 4%}
send "{@Prefix} &7You have received &6%arg 3% %arg 2% &7from &6%player%&7!" to arg 4
remove arg 3 from {%arg 2%.%player%}
send "{@Prefix} &7You have paid &6%arg 3% %arg 2% &7to &6%arg 4%&7!"
if arg 3 is less than .01:
send "{@Prefix} {@PayError}"
else if {%arg 2%.%player%} is less than arg 3:
send "{@Prefix} {@AmountError}"
if arg 4 is not set:
make player execute command "/crypto help"
if arg 3 is not set:
make player execute command "/crypto help"
if {crypto::*} does not contain arg 2:
send "{@Prefix} &cPlease use one of the following coins."
send "&a%{crypto::*}%"
if arg-2 is not set:
make player execute command "/crypto help"
if arg-1 is "help":
send "&8&m---------&cCrypto Help&8&m---------"
send "&7• &a/crypto buy [Coin] [Amount] &7(Buy coins)."
send "&7"
send "&7• &a/crypto sell [Coin] [Amount] &7(Sell coins)."
send "&7"
send "&7• &a/crypto pay [Coin] [Amount] [Player] &7(Pay other players coins)."
send "&7"
send "&7• &a/crypto wallet &7(Displays your coin balance)."
send "&7"
send "&7• &a/crypto display &7(Displays prices of coins)."
send "&8&m----------------------------"
if arg-1 is "bal" or "balance" or "wallet":
make player execute command "/crypto display"
if arg-1 is "display" or "gui":
if arg-2 is not set:
wait 2 ticks
open chest with 6 rows named "&f[&3Crypto Market&f]" to player
wait 1 tick
set slot 0 of player's current inventory to white glass named "&a"
set slot 1 of player's current inventory to blue glass named "&a"
set slot 2 of player's current inventory to white glass named "&a"
set slot 3 of player's current inventory to blue glass named "&a"
set slot 4 of player's current inventory to white glass named "&a"
set slot 5 of player's current inventory to blue glass named "&a"
set slot 6 of player's current inventory to white glass named "&a"
set slot 7 of player's current inventory to blue glass named "&a"
set slot 8 of player's current inventory to white glass named "&a"
set slot 9 of player's current inventory to blue glass named "&a"
set slot 17 of player's current inventory to blue glass named "&a"
set slot 18 of player's current inventory to white glass named "&a"
set slot 26 of player's current inventory to white glass named "&a"
set slot 27 of player's current inventory to blue glass named "&a"
set slot 35 of player's current inventory to blue glass named "&a"
set slot 36 of player's current inventory to white glass named "&a"
set slot 44 of player's current inventory to white glass named "&a"
set slot 45 of player's current inventory to blue glass named "&a"
set slot 46 of player's current inventory to white glass named "&a"
set slot 47 of player's current inventory to blue glass named "&a"
set slot 48 of player's current inventory to white glass named "&a"
set slot 49 of player's current inventory to blue glass named "&a"
set slot 50 of player's current inventory to white glass named "&a"
set slot 51 of player's current inventory to blue glass named "&a"
set slot 52 of player's current inventory to white glass named "&a"
set slot 53 of player's current inventory to blue glass named "&a"
if {bitcoin::1::percent_change_24h} parsed as a number is less than 0:
set slot 10 of player's current inventory to a dandelion yellow named "&e%{bitcoin::1::symbol}% &7(&c%{bitcoin::1::percent_change_24h}%%%&7)" with lore "&e%{bitcoin::1::name}% &7┋ &aRank ##%{bitcoin::1::rank}%||&8Coins Owned: &a%{bitcoin.%player%}% &8┋ &a$%{bitcoin::1::price_usd} parsed as a number * {bitcoin.%player%}%||&8Price Per: &a$%{bitcoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {bitcoin::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 10 of player's current inventory to a dandelion yellow named "&e%{bitcoin::1::symbol}% &7(&a+%{bitcoin::1::percent_change_24h}%%%&7)" with lore "&e%{bitcoin::1::name}% &7┋ &aRank ##%{bitcoin::1::rank}%||&8Coins Owned: &a%{bitcoin.%player%}% &8┋ &a$%{bitcoin::1::price_usd} parsed as a number * {bitcoin.%player%}%||&8Price Per: &a$%{bitcoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {ethereum::1::percent_change_24h} parsed as a number is less than 0:
set slot 11 of player's current inventory to a gray dye named "&7%{Ethereum::1::symbol}% &7(&c%{Ethereum::1::percent_change_24h}%%%&7)" with lore "&7%{Ethereum::1::name}% &7┋ &aRank ##%{Ethereum::1::rank}%||&8Coins Owned: &a%{ethereum.%player%}% &8┋ &a$%{ethereum::1::price_usd} parsed as a number * {ethereum.%player%}%||&8Price Per: &a$%{Ethereum::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {ethereum::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 11 of player's current inventory to a gray dye named "&7%{Ethereum::1::symbol}% &7(&a+%{Ethereum::1::percent_change_24h}%%%&7)" with lore "&7%{Ethereum::1::name}% &7┋ &aRank ##%{Ethereum::1::rank}%||&8Coins Owned: &a%{ethereum.%player%}% &8┋ &a$%{ethereum::1::price_usd} parsed as a number * {ethereum.%player%}%||&8Price Per: &a$%{Ethereum::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {litecoin::1::percent_change_24h} parsed as a number is less than 0:
set slot 12 of player's current inventory to a light gray dye named "&7%{litecoin::1::symbol}% &7(&c%{litecoin::1::percent_change_24h}%%%&7)" with lore "&7%{litecoin::1::name}% &7┋ &aRank ##%{litecoin::1::rank}%||&8Coins Owned: &a%{litecoin.%player%}% &8┋ &a$%{litecoin::1::price_usd} parsed as a number * {litecoin.%player%}%||&8Price Per: &a$%{litecoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {litecoin::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 12 of player's current inventory to a light gray dye named "&7%{litecoin::1::symbol}% &7(&a+%{litecoin::1::percent_change_24h}%%%&7)" with lore "&7%{litecoin::1::name}% &7┋ &aRank ##%{litecoin::1::rank}%||&8Coins Owned: &a%{litecoin.%player%}% &8┋ &a$%{litecoin::1::price_usd} parsed as a number * {litecoin.%player%}%||&8Price Per: &a$%{litecoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {monero::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 13 of player's current inventory to a orange dye named "&6%{monero::1::symbol}% &7(&a+%{monero::1::percent_change_24h}%%%&7)" with lore "&6%{monero::1::name}% &7┋ &aRank ##%{monero::1::rank}%||&8Coins Owned: &a%{monero.%player%}% &8┋ &a$%{monero::1::price_usd} parsed as a number * {monero.%player%}%||&8Price Per: &a$%{monero::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {monero::1::percent_change_24h} parsed as a number is less than 0:
set slot 13 of player's current inventory to a orange dye named "&6%{monero::1::symbol}% &7(&c%{monero::1::percent_change_24h}%%%&7)" with lore "&6%{monero::1::name}% &7┋ &aRank ##%{monero::1::rank}%||&8Coins Owned: &a%{monero.%player%}% &8┋ &a$%{monero::1::price_usd} parsed as a number * {monero.%player%}%||&8Price Per: &a$%{monero::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {dash::1::percent_change_24h} parsed as a number is less than 0:
set slot 14 of player's current inventory to a light blue dye named "&b%{dash::1::symbol}% &7(&c%{dash::1::percent_change_24h}%%%&7)" with lore "&b%{dash::1::name}% &7┋ &aRank ##%{dash::1::rank}%||&8Coins Owned: &a%{dash.%player%}% &8┋ &a$%{dash::1::price_usd} parsed as a number * {dash.%player%}%||&8Price Per: &a$%{dash::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {dash::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 14 of player's current inventory to a light blue dye named "&b%{dash::1::symbol}% &7(&a+%{dash::1::percent_change_24h}%%%&7)" with lore "&b%{dash::1::name}% &7┋ &aRank ##%{dash::1::rank}%||&8Coins Owned: &a%{dash.%player%}% &8┋ &a$%{dash::1::price_usd} parsed as a number * {dash.%player%}%||&8Price Per: &a$%{dash::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {EOS::1::percent_change_24h} parsed as a number is less than 0:
set slot 15 of player's current inventory to a black dye named "&7%{EOS::1::symbol}% &7(&c%{EOS::1::percent_change_24h}%%%&7)" with lore "&7%{EOS::1::name}% &7┋ &aRank ##%{EOS::1::rank}%||&8Coins Owned: &a%{EOS.%player%}% &8┋ &a$%{EOS::1::price_usd} parsed as a number * {EOS.%player%}%||&8Price Per: &a$%{EOS::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {EOS::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 15 of player's current inventory to a black dye named "&7%{EOS::1::symbol}% &7(&a+%{EOS::1::percent_change_24h}%%%&7)" with lore "&7%{EOS::1::name}% &7┋ &aRank ##%{EOS::1::rank}%||&8Coins Owned: &a%{EOS.%player%}% &8┋ &a$%{EOS::1::price_usd} parsed as a number * {EOS.%player%}%||&8Price Per: &a$%{EOS::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {NEO::1::percent_change_24h} parsed as a number is less than 0:
set slot 16 of player's current inventory to a light green dye named "&2%{NEO::1::symbol}% &7(&c%{NEO::1::percent_change_24h}%%%&7)" with lore "&2%{NEO::1::name}% &7┋ &aRank ##%{NEO::1::rank}%||&8Coins Owned: &a%{NEO.%player%}% &8┋ &a$%{NEO::1::price_usd} parsed as a number * {NEO.%player%}%||&8Price Per: &a$%{NEO::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {NEO::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 16 of player's current inventory to a light green dye named "&2%{NEO::1::symbol}% &7(&a+%{NEO::1::percent_change_24h}%%%&7)" with lore "&2%{NEO::1::name}% &7┋ &aRank ##%{NEO::1::rank}%||&8Coins Owned: &a%{NEO.%player%}% &8┋ &a$%{NEO::1::price_usd} parsed as a number * {NEO.%player%}%||&8Price Per: &a$%{NEO::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {IOTA::1::percent_change_24h} parsed as a number is less than 0:
set slot 19 of player's current inventory to a light gray dye named "&7%{IOTA::1::symbol}% &7(&c%{IOTA::1::percent_change_24h}%%%&7)" with lore "&7%{IOTA::1::name}% &7┋ &aRank ##%{IOTA::1::rank}%||&8Coins Owned: &a%{IOTA.%player%}% &8┋ &a$%{IOTA::1::price_usd} parsed as a number * {IOTA.%player%}%||&8Price Per: &a$%{IOTA::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {IOTA::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 19 of player's current inventory to a light gray dye named "&7%{IOTA::1::symbol}% &7(&a+%{IOTA::1::percent_change_24h}%%%&7)" with lore "&7%{IOTA::1::name}% &7┋ &aRank ##%{IOTA::1::rank}%||&8Coins Owned: &a%{IOTA.%player%}% &8┋ &a$%{IOTA::1::price_usd} parsed as a number * {IOTA.%player%}%||&8Price Per: &a$%{IOTA::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Tether::1::percent_change_24h} parsed as a number is less than 0:
set slot 20 of player's current inventory to a cyan dye named "&3%{Tether::1::symbol}% &7(&c%{Tether::1::percent_change_24h}%%%&7)" with lore "&3%{Tether::1::name}% &7┋ &aRank ##%{Tether::1::rank}%||&8Coins Owned: &a%{Tether.%player%}% &8┋ &a$%{Tether::1::price_usd} parsed as a number * {Tether.%player%}%||&8Price Per: &a$%{Tether::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Tether::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 20 of player's current inventory to a cyan dye named "&3%{Tether::1::symbol}% &7(&a+%{Tether::1::percent_change_24h}%%%&7)" with lore "&3%{Tether::1::name}% &7┋ &aRank ##%{Tether::1::rank}%||&8Coins Owned: &a%{Tether.%player%}% &8┋ &a$%{Tether::1::price_usd} parsed as a number * {Tether.%player%}%||&8Price Per: &a$%{Tether::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {VeChain::1::percent_change_24h} parsed as a number is less than 0:
set slot 21 of player's current inventory to a magenta dye named "&5%{VeChain::1::symbol}% &7(&c%{VeChain::1::percent_change_24h}%%%&7)" with lore "&5%{VeChain::1::name}% &7┋ &aRank ##%{VeChain::1::rank}%||&8Coins Owned: &a%{VeChain.%player%}% &8┋ &a$%{VeChain::1::price_usd} parsed as a number * {VeChain.%player%}%||&8Price Per: &a$%{VeChain::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {VeChain::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 21 of player's current inventory to a magenta dye named "&5%{VeChain::1::symbol}% &7(&a+%{VeChain::1::percent_change_24h}%%%&7)" with lore "&5%{VeChain::1::name}% &7┋ &aRank ##%{VeChain::1::rank}%||&8Coins Owned: &a%{VeChain.%player%}% &8┋ &a$%{VeChain::1::price_usd} parsed as a number * {VeChain.%player%}%||&8Price Per: &a$%{VeChain::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Zcash::1::percent_change_24h} parsed as a number is less than 0:
set slot 22 of player's current inventory to a yellow dye named "&e%{Zcash::1::symbol}% &7(&c%{Zcash::1::percent_change_24h}%%%&7)" with lore "&e%{Zcash::1::name}% &7┋ &aRank ##%{Zcash::1::rank}%||&8Coins Owned: &a%{Zcash.%player%}% &8┋ &a$%{Zcash::1::price_usd} parsed as a number * {Zcash.%player%}%||&8Price Per: &a$%{Zcash::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Zcash::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 22 of player's current inventory to a yellow dye named "&e%{Zcash::1::symbol}% &7(&a+%{Zcash::1::percent_change_24h}%%%&7)" with lore "&e%{Zcash::1::name}% &7┋ &aRank ##%{Zcash::1::rank}%||&8Coins Owned: &a%{Zcash.%player%}% &8┋ &a$%{Zcash::1::price_usd} parsed as a number * {Zcash.%player%}%||&8Price Per: &a$%{Zcash::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Maker::1::percent_change_24h} parsed as a number is less than 0:
set slot 23 of player's current inventory to a blue dye named "&1%{Maker::1::symbol}% &7(&c%{Maker::1::percent_change_24h}%%%&7)" with lore "&1%{Maker::1::name}% &7┋ &aRank ##%{Maker::1::rank}%||&8Coins Owned: &a%{Maker.%player%}% &8┋ &a$%{Maker::1::price_usd} parsed as a number * {Maker.%player%}%||&8Price Per: &a$%{Maker::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Maker::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 23 of player's current inventory to a blue dye named "&1%{Maker::1::symbol}% &7(&a+%{Maker::1::percent_change_24h}%%%&7)" with lore "&1%{Maker::1::name}% &7┋ &aRank ##%{Maker::1::rank}%||&8Coins Owned: &a%{Maker.%player%}% &8┋ &a$%{Maker::1::price_usd} parsed as a number * {Maker.%player%}%||&8Price Per: &a$%{Maker::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Mixin::1::percent_change_24h} parsed as a number is less than 0:
set slot 24 of player's current inventory to a blue dye named "&1%{Mixin::1::symbol}% &7(&c%{Mixin::1::percent_change_24h}%%%&7)" with lore "&1%{Mixin::1::name}% &7┋ &aRank ##%{Mixin::1::rank}%||&8Coins Owned: &a%{Mixin.%player%}% &8┋ &a$%{Mixin::1::price_usd} parsed as a number * {Mixin.%player%}%||&8Price Per: &a$%{Mixin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Mixin::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 24 of player's current inventory to a blue dye named "&1%{Mixin::1::symbol}% &7(&a+%{Mixin::1::percent_change_24h}%%%&7)" with lore "&1%{Mixin::1::name}% &7┋ &aRank ##%{Mixin::1::rank}%||&8Coins Owned: &a%{Mixin.%player%}% &8┋ &a$%{Mixin::1::price_usd} parsed as a number * {Mixin.%player%}%||&8Price Per: &a$%{Mixin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Skycoin::1::percent_change_24h} parsed as a number is less than 0:
set slot 25 of player's current inventory to a light blue dye named "&b%{Skycoin::1::symbol}% &7(&c%{Skycoin::1::percent_change_24h}%%%&7)" with lore "&b%{Skycoin::1::name}% &7┋ &aRank ##%{Skycoin::1::rank}%||&8Coins Owned: &a%{Skycoin.%player%}% &8┋ &a$%{Skycoin::1::price_usd} parsed as a number * {Skycoin.%player%}%||&8Price Per: &a$%{Skycoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Skycoin::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 25 of player's current inventory to a light blue dye named "&b%{Skycoin::1::symbol}% &7(&a+%{Skycoin::1::percent_change_24h}%%%&7)" with lore "&b%{Skycoin::1::name}% &7┋ &aRank ##%{Skycoin::1::rank}%||&8Coins Owned: &a%{Skycoin.%player%}% &8┋ &a$%{Skycoin::1::price_usd} parsed as a number * {Skycoin.%player%}%||&8Price Per: &a$%{Skycoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Gas::1::percent_change_24h} parsed as a number is less than 0:
set slot 28 of player's current inventory to a light green dye named "&2%{Gas::1::symbol}% &7(&c%{Gas::1::percent_change_24h}%%%&7)" with lore "&2%{Gas::1::name}% &7┋ &aRank ##%{Gas::1::rank}%||&8Coins Owned: &a%{Gas.%player%}% &8┋ &a$%{Gas::1::price_usd} parsed as a number * {Gas.%player%}%||&8Price Per: &a$%{Gas::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Gas::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 28 of player's current inventory to a light green dye named "&2%{Gas::1::symbol}% &7(&a+%{Gas::1::percent_change_24h}%%%&7)" with lore "&2%{Gas::1::name}% &7┋ &aRank ##%{Gas::1::rank}%||&8Coins Owned: &a%{Gas.%player%}% &8┋ &a$%{Gas::1::price_usd} parsed as a number * {Gas.%player%}%||&8Price Per: &a$%{Gas::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Lisk::1::percent_change_24h} parsed as a number is less than 0:
set slot 29 of player's current inventory to a cyan dye named "&3%{Lisk::1::symbol}% &7(&c%{Lisk::1::percent_change_24h}%%%&7)" with lore "&3%{Lisk::1::name}% &7┋ &aRank ##%{Lisk::1::rank}%||&8Coins Owned: &a%{Lisk.%player%}% &8┋ &a$%{Lisk::1::price_usd} parsed as a number * {Lisk.%player%}%||&8Price Per: &a$%{Lisk::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Lisk::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 29 of player's current inventory to a cyan dye named "&3%{Lisk::1::symbol}% &7(&a+%{Lisk::1::percent_change_24h}%%%&7)" with lore "&3%{Lisk::1::name}% &7┋ &aRank ##%{Lisk::1::rank}%||&8Coins Owned: &a%{Lisk.%player%}% &8┋ &a$%{Lisk::1::price_usd} parsed as a number * {Lisk.%player%}%||&8Price Per: &a$%{Lisk::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Waltonchain::1::percent_change_24h} parsed as a number is less than 0:
set slot 30 of player's current inventory to a light blue dye named "&b%{Waltonchain::1::symbol}% &7(&c%{Waltonchain::1::percent_change_24h}%%%&7)" with lore "&b%{Waltonchain::1::name}% &7┋ &aRank ##%{Waltonchain::1::rank}%||&8Coins Owned: &a%{Waltonchain.%player%}% &8┋ &a$%{Waltonchain::1::price_usd} parsed as a number * {Waltonchain.%player%}%||&8Price Per: &a$%{Waltonchain::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Waltonchain::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 30 of player's current inventory to a light blue dye named "&b%{Waltonchain::1::symbol}% &7(&a+%{Waltonchain::1::percent_change_24h}%%%&7)" with lore "&b%{Waltonchain::1::name}% &7┋ &aRank ##%{Waltonchain::1::rank}%||&8Coins Owned: &a%{Waltonchain.%player%}% &8┋ &a$%{Waltonchain::1::price_usd} parsed as a number * {Waltonchain.%player%}%||&8Price Per: &a$%{Waltonchain::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {MonaCoin::1::percent_change_24h} parsed as a number is less than 0:
set slot 31 of player's current inventory to a orange dye named "&6%{MonaCoin::1::symbol}% &7(&c%{MonaCoin::1::percent_change_24h}%%%&7)" with lore "&6%{MonaCoin::1::name}% &7┋ &aRank ##%{MonaCoin::1::rank}%||&8Coins Owned: &a%{MonaCoin.%player%}% &8┋ &a$%{MonaCoin::1::price_usd} parsed as a number * {MonaCoin.%player%}%||&8Price Per: &a$%{MonaCoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {MonaCoin::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 31 of player's current inventory to a orange dye named "&6%{MonaCoin::1::symbol}% &7(&a+%{MonaCoin::1::percent_change_24h}%%%&7)" with lore "&6%{MonaCoin::1::name}% &7┋ &aRank ##%{MonaCoin::1::rank}%||&8Coins Owned: &a%{MonaCoin.%player%}% &8┋ &a$%{MonaCoin::1::price_usd} parsed as a number * {MonaCoin.%player%}%||&8Price Per: &a$%{MonaCoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Waves::1::percent_change_24h} parsed as a number is less than 0:
set slot 32 of player's current inventory to a cyan dye named "&3%{Waves::1::symbol}% &7(&c%{Waves::1::percent_change_24h}%%%&7)" with lore "&3%{Waves::1::name}% &7┋ &aRank ##%{Waves::1::rank}%||&8Coins Owned: &a%{Waves.%player%}% &8┋ &a$%{Waves::1::price_usd} parsed as a number * {Waves.%player%}%||&8Price Per: &a$%{Waves::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Waves::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 32 of player's current inventory to a cyan dye named "&3%{Waves::1::symbol}% &7(&a+%{Waves::1::percent_change_24h}%%%&7)" with lore "&3%{Waves::1::name}% &7┋ &aRank ##%{Waves::1::rank}%||&8Coins Owned: &a%{Waves.%player%}% &8┋ &a$%{Waves::1::price_usd} parsed as a number * {Waves.%player%}%||&8Price Per: &a$%{Waves::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {SALT::1::percent_change_24h} parsed as a number is less than 0:
set slot 33 of player's current inventory to a white dye named "&f%{SALT::1::symbol}% &7(&c%{SALT::1::percent_change_24h}%%%&7)" with lore "&f%{SALT::1::name}% &7┋ &aRank ##%{SALT::1::rank}%||&8Coins Owned: &a%{SALT.%player%}% &8┋ &a$%{SALT::1::price_usd} parsed as a number * {SALT.%player%}%||&8Price Per: &a$%{SALT::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {SALT::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 33 of player's current inventory to a white dye named "&f%{SALT::1::symbol}% &7(&a+%{SALT::1::percent_change_24h}%%%&7)" with lore "&f%{SALT::1::name}% &7┋ &aRank ##%{SALT::1::rank}%||&8Coins Owned: &a%{SALT.%player%}% &8┋ &a$%{SALT::1::price_usd} parsed as a number * {SALT.%player%}%||&8Price Per: &a$%{SALT::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Garlicoin::1::percent_change_24h} parsed as a number is less than 0:
set slot 34 of player's current inventory to a yellow dye named "&e%{Garlicoin::1::symbol}% &7(&c%{Garlicoin::1::percent_change_24h}%%%&7)" with lore "&e%{Garlicoin::1::name}% &7┋ &aRank ##%{Garlicoin::1::rank}%||&8Coins Owned: &a%{Garlicoin.%player%}% &8┋ &a$%{Garlicoin::1::price_usd} parsed as a number * {Garlicoin.%player%}%||&8Price Per: &a$%{Garlicoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Garlicoin::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 34 of player's current inventory to a yellow dye named "&e%{Garlicoin::1::symbol}% &7(&a+%{Garlicoin::1::percent_change_24h}%%%&7)" with lore "&e%{Garlicoin::1::name}% &7┋ &aRank ##%{Garlicoin::1::rank}%||&8Coins Owned: &a%{Garlicoin.%player%}% &8┋ &a$%{Garlicoin::1::price_usd} parsed as a number * {Garlicoin.%player%}%||&8Price Per: &a$%{Garlicoin::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Ripple::1::percent_change_24h} parsed as a number is less than 0:
set slot 37 of player's current inventory to a blue dye named "&1%{Ripple::1::symbol}% &7(&c%{Ripple::1::percent_change_24h}%%%&7)" with lore "&1%{Ripple::1::name}% &7┋ &aRank ##%{Ripple::1::rank}%||&8Coins Owned: &a%{Ripple.%player%}% &8┋ &a$%{Ripple::1::price_usd} parsed as a number * {Ripple.%player%}%||&8Price Per: &a$%{Ripple::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Ripple::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 37 of player's current inventory to a blue dye named "&1%{Ripple::1::symbol}% &7(&a+%{Ripple::1::percent_change_24h}%%%&7)" with lore "&1%{Ripple::1::name}% &7┋ &aRank ##%{Ripple::1::rank}%||&8Coins Owned: &a%{Ripple.%player%}% &8┋ &a$%{Ripple::1::price_usd} parsed as a number * {Ripple.%player%}%||&8Price Per: &a$%{Ripple::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Cardano::1::percent_change_24h} parsed as a number is less than 0:
set slot 38 of player's current inventory to a light blue dye named "&b%{Cardano::1::symbol}% &7(&c%{Cardano::1::percent_change_24h}%%%&7)" with lore "&b%{Cardano::1::name}% &7┋ &aRank ##%{Cardano::1::rank}%||&8Coins Owned: &a%{Cardano.%player%}% &8┋ &a$%{Cardano::1::price_usd} parsed as a number * {Cardano.%player%}%||&8Price Per: &a$%{Cardano::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Cardano::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 38 of player's current inventory to a light blue dye named "&b%{Cardano::1::symbol}% &7(&a+%{Cardano::1::percent_change_24h}%%%&7)" with lore "&b%{Cardano::1::name}% &7┋ &aRank ##%{Cardano::1::rank}%||&8Coins Owned: &a%{Cardano.%player%}% &8┋ &a$%{Cardano::1::price_usd} parsed as a number * {Cardano.%player%}%||&8Price Per: &a$%{Cardano::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Stellar::1::percent_change_24h} parsed as a number is less than 0:
set slot 39 of player's current inventory to a red dye named "&c%{Stellar::1::symbol}% &7(&c%{Stellar::1::percent_change_24h}%%%&7)" with lore "&c%{Stellar::1::name}% &7┋ &aRank ##%{Stellar::1::rank}%||&8Coins Owned: &a%{Stellar.%player%}% &8┋ &a$%{Stellar::1::price_usd} parsed as a number * {Stellar.%player%}%||&8Price Per: &a$%{Stellar::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {Stellar::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 39 of player's current inventory to a red dye named "&c%{Stellar::1::symbol}% &7(&a+%{Stellar::1::percent_change_24h}%%%&7)" with lore "&c%{Stellar::1::name}% &7┋ &aRank ##%{Stellar::1::rank}%||&8Coins Owned: &a%{Stellar.%player%}% &8┋ &a$%{Stellar::1::price_usd} parsed as a number * {Stellar.%player%}%||&8Price Per: &a$%{Stellar::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {NEM::1::percent_change_24h} parsed as a number is less than 0:
set slot 40 of player's current inventory to a light green dye named "&2%{NEM::1::symbol}% &7(&c%{NEM::1::percent_change_24h}%%%&7)" with lore "&2%{NEM::1::name}% &7┋ &aRank ##%{NEM::1::rank}%||&8Coins Owned: &a%{NEM.%player%}% &8┋ &a$%{NEM::1::price_usd} parsed as a number * {NEM.%player%}%||&8Price Per: &a$%{NEM::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {NEM::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 40 of player's current inventory to a light green dye named "&2%{NEM::1::symbol}% &7(&a+%{NEM::1::percent_change_24h}%%%&7)" with lore "&2%{NEM::1::name}% &7┋ &aRank ##%{NEM::1::rank}%||&8Coins Owned: &a%{NEM.%player%}% &8┋ &a$%{NEM::1::price_usd} parsed as a number * {NEM.%player%}%||&8Price Per: &a$%{NEM::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {ICON::1::percent_change_24h} parsed as a number is less than 0:
set slot 41 of player's current inventory to a cyan dye named "&3%{ICON::1::symbol}% &7(&c%{ICON::1::percent_change_24h}%%%&7)" with lore "&3%{ICON::1::name}% &7┋ &aRank ##%{ICON::1::rank}%||&8Coins Owned: &a%{ICON.%player%}% &8┋ &a$%{ICON::1::price_usd} parsed as a number * {ICON.%player%}%||&8Price Per: &a$%{ICON::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {ICON::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 41 of player's current inventory to a cyan dye named "&3%{ICON::1::symbol}% &7(&a+%{ICON::1::percent_change_24h}%%%&7)" with lore "&3%{ICON::1::name}% &7┋ &aRank ##%{ICON::1::rank}%||&8Coins Owned: &a%{ICON.%player%}% &8┋ &a$%{ICON::1::price_usd} parsed as a number * {ICON.%player%}%||&8Price Per: &a$%{ICON::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {TRON::1::percent_change_24h} parsed as a number is less than 0:
set slot 42 of player's current inventory to a black dye named "&7%{TRON::1::symbol}% &7(&c%{TRON::1::percent_change_24h}%%%&7)" with lore "&7%{TRON::1::name}% &7┋ &aRank ##%{TRON::1::rank}%||&8Coins Owned: &a%{TRON.%player%}% &8┋ &a$%{TRON::1::price_usd} parsed as a number * {TRON.%player%}%||&8Price Per: &a$%{TRON::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {TRON::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 42 of player's current inventory to a black dye named "&7%{TRON::1::symbol}% &7(&a+%{TRON::1::percent_change_24h}%%%&7)" with lore "&7%{TRON::1::name}% &7┋ &aRank ##%{TRON::1::rank}%||&8Coins Owned: &a%{TRON.%player%}% &8┋ &a$%{TRON::1::price_usd} parsed as a number * {TRON.%player%}%||&8Price Per: &a$%{TRON::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {VERGE::1::percent_change_24h} parsed as a number is less than 0:
set slot 43 of player's current inventory to a light blue dye named "&b%{VERGE::1::symbol}% &7(&c%{VERGE::1::percent_change_24h}%%%&7)" with lore "&b%{VERGE::1::name}% &7┋ &aRank ##%{VERGE::1::rank}%||&8Coins Owned: &a%{VERGE.%player%}% &8┋ &a$%{VERGE::1::price_usd} parsed as a number * {VERGE.%player%}%||&8Price Per: &a$%{VERGE::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if {VERGE::1::percent_change_24h} parsed as a number is greater than or equal to 0:
set slot 43 of player's current inventory to a light blue dye named "&b%{VERGE::1::symbol}% &7(&a+%{VERGE::1::percent_change_24h}%%%&7)" with lore "&b%{VERGE::1::name}% &7┋ &aRank ##%{VERGE::1::rank}%||&8Coins Owned: &a%{VERGE.%player%}% &8┋ &a$%{VERGE::1::price_usd} parsed as a number * {VERGE.%player%}%||&8Price Per: &a$%{VERGE::1::price_usd}%||||&aLeft-Click to buy.||&cRight-Click to sell."
if arg-1 is not set:
make player execute command "/crypto help"
every 30 seconds:
loop {crypto::*}:
send a request to "https://api.coinmarketcap.com/v1/ticker/%loop-value%/"
copy json last http response's body to {%loop-value%::*}
on inventory click:
if inventory name of player's current inventory is "&f[&3Crypto Market&f]":
cancel event
if clicked slot is 10:
if clicked type is left mouse button:
make player execute command "/cryptobuy Bitcoin"
else if clicked type is right mouse button:
make player execute command "/cryptosell Bitcoin"
if clicked slot is 11:
if clicked type is left mouse button:
make player execute command "/cryptobuy Ethereum"
else if clicked type is right mouse button:
make player execute command "/cryptosell Ethereum"
if clicked slot is 12:
if clicked type is left mouse button:
make player execute command "/cryptobuy Litecoin"
else if clicked type is right mouse button:
make player execute command "/cryptosell Litecoin"
if clicked slot is 13:
if clicked type is left mouse button:
make player execute command "/cryptobuy Monero"
else if clicked type is right mouse button:
make player execute command "/cryptosell Monero"
if clicked slot is 14:
if clicked type is left mouse button:
make player execute command "/cryptobuy Dash"
else if clicked type is right mouse button:
make player execute command "/cryptosell Dash"
if clicked slot is 15:
if clicked type is left mouse button:
make player execute command "/cryptobuy EOS"
else if clicked type is right mouse button:
make player execute command "/cryptosell EOS"
if clicked slot is 16:
if clicked type is left mouse button:
make player execute command "/cryptobuy NEO"
else if clicked type is right mouse button:
make player execute command "/cryptosell NEO"
if clicked slot is 19:
if clicked type is left mouse button:
make player execute command "/cryptobuy IOTA"
else if clicked type is right mouse button:
make player execute command "/cryptosell IOTA"
if clicked slot is 20:
if clicked type is left mouse button:
make player execute command "/cryptobuy Tether"
else if clicked type is right mouse button:
make player execute command "/cryptosell Tether"
if clicked slot is 21:
if clicked type is left mouse button:
make player execute command "/cryptobuy VeChain"
else if clicked type is right mouse button:
make player execute command "/cryptosell VeChain"
if clicked slot is 22:
if clicked type is left mouse button:
make player execute command "/cryptobuy Zcash"
else if clicked type is right mouse button:
make player execute command "/cryptosell Zcash"
if clicked slot is 23:
if clicked type is left mouse button:
make player execute command "/cryptobuy Maker"
else if clicked type is right mouse button:
make player execute command "/cryptosell Maker"
if clicked slot is 24:
if clicked type is left mouse button:
make player execute command "/cryptobuy Mixin"
else if clicked type is right mouse button:
make player execute command "/cryptosell Mixin"
if clicked slot is 25:
if clicked type is left mouse button:
make player execute command "/cryptobuy Skycoin"
else if clicked type is right mouse button:
make player execute command "/cryptosell Skycoin"
if clicked slot is 28:
if clicked type is left mouse button:
make player execute command "/cryptobuy Gas"
else if clicked type is right mouse button:
make player execute command "/cryptosell Gas"
if clicked slot is 29:
if clicked type is left mouse button:
make player execute command "/cryptobuy Lisk"
else if clicked type is right mouse button:
make player execute command "/cryptosell Lisk"
if clicked slot is 30:
if clicked type is left mouse button:
make player execute command "/cryptobuy Waltonchain"
else if clicked type is right mouse button:
make player execute command "/cryptosell Waltonchain"
if clicked slot is 31:
if clicked type is left mouse button:
make player execute command "/cryptobuy MonaCoin"
else if clicked type is right mouse button:
make player execute command "/cryptosell MonaCoin"
if clicked slot is 32:
if clicked type is left mouse button:
make player execute command "/cryptobuy Waves"
else if clicked type is right mouse button:
make player execute command "/cryptosell Waves"
if clicked slot is 33:
if clicked type is left mouse button:
make player execute command "/cryptobuy SALT"
else if clicked type is right mouse button:
make player execute command "/cryptosell SALT"
if clicked slot is 34:
if clicked type is left mouse button:
make player execute command "/cryptobuy Garlicoin"
else if clicked type is right mouse button:
make player execute command "/cryptosell Garlicoin"
if clicked slot is 37:
if clicked type is left mouse button:
make player execute command "/cryptobuy Ripple"
else if clicked type is right mouse button:
make player execute command "/cryptosell Ripple"
if clicked slot is 38:
if clicked type is left mouse button:
make player execute command "/cryptobuy Cardano"
else if clicked type is right mouse button:
make player execute command "/cryptosell Cardano"
if clicked slot is 39:
if clicked type is left mouse button:
make player execute command "/cryptobuy Stellar"
else if clicked type is right mouse button:
make player execute command "/cryptosell Stellar"
if clicked slot is 40:
if clicked type is left mouse button:
make player execute command "/cryptobuy NEM"
else if clicked type is right mouse button:
make player execute command "/cryptosell NEM"
if clicked slot is 41:
if clicked type is left mouse button:
make player execute command "/cryptobuy ICON"
else if clicked type is right mouse button:
make player execute command "/cryptosell ICON"
if clicked slot is 42:
if clicked type is left mouse button:
make player execute command "/cryptobuy TRON"
else if clicked type is right mouse button:
make player execute command "/cryptosell TRON"
if clicked slot is 43:
if clicked type is left mouse button:
make player execute command "/cryptobuy VERGE"
else if clicked type is right mouse button:
make player execute command "/cryptosell VERGE"
loop {crypto::*}:
if inventory name of player's current inventory is "&f[&2&lBuy %loop-value%&f]":
cancel event
if clicked slot is 13:
add 1 to {crypto.bamount.%player%}
if {crypto.bamount.%player%} is greater than {maxcrypto.%player%}:
set {crypto.bamount.%player%} to {maxcrypto.%player%}
if clicked slot is 31:
remove 1 from {crypto.bamount.%player%}
if {crypto.bamount.%player%} is less than 0:
set {crypto.bamount.%player%} to 0
if clicked slot is 42:
set {crypto.bamount.%player%} to {maxcrypto.%player%}
if clicked slot is 41:
set {crypto.bamount.%player%} to {maxcrypto.%player%} * .75
if clicked slot is 40:
set {crypto.bamount.%player%} to {maxcrypto.%player%} * .50
if clicked slot is 39:
set {crypto.bamount.%player%} to {maxcrypto.%player%} * .25
if clicked slot is 38:
set {crypto.bamount.%player%} to {maxcrypto.%player%} * .10
if clicked slot is 24 or 20:
close player's inventory
make player execute command "/crypto buy %loop-value% %{crypto.bamount.%player%}%"
set slot 22 of player's current inventory to iron nugget named "&f[&a&lCart&f]" with lore "&eCoin: &7%loop-value%||&eAmount In Cart: &7%{crypto.bamount.%player%}%||&ePrice: &7$%{%loop-value%::1::price_usd} parsed as a number * {crypto.bamount.%player%}%"
set slot 24 of player's current inventory to chest named "&f[&a&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%loop-value%||&eAmount In Cart: &7%{crypto.bamount.%player%}%||&ePrice: &7$%{%loop-value%::1::price_usd} parsed as a number * {crypto.bamount.%player%}%"
set slot 20 of player's current inventory to chest named "&f[&a&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%loop-value%||&eAmount In Cart: &7%{crypto.bamount.%player%}%||&ePrice: &7$%{%loop-value%::1::price_usd} parsed as a number * {crypto.bamount.%player%}%"
loop {crypto::*}:
if inventory name of player's current inventory is "&f[&4&lSell %loop-value%&f]":
cancel event
if clicked slot is 13:
add 1 to {crypto.samount.%player%}
if {crypto.samount.%player%} is greater than {maxcrypto.%player%}:
set {crypto.samount.%player%} to {maxcrypto.%player%}
if clicked slot is 31:
remove 1 from {crypto.samount.%player%}
if {crypto.samount.%player%} is less than 0:
set {crypto.samount.%player%} to 0
if clicked slot is 42:
set {crypto.samount.%player%} to {maxcrypto.%player%}
if clicked slot is 41:
set {crypto.samount.%player%} to {maxcrypto.%player%} * .75
if clicked slot is 40:
set {crypto.samount.%player%} to {maxcrypto.%player%} * .50
if clicked slot is 39:
set {crypto.samount.%player%} to {maxcrypto.%player%} * .25
if clicked slot is 38:
set {crypto.samount.%player%} to {maxcrypto.%player%} * .10
if clicked slot is 24 or 20:
close player's inventory
make player execute command "/crypto sell %loop-value% %{crypto.samount.%player%}%"
set slot 24 of player's current inventory to chest named "&f[&c&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%loop-value%||&eAmount Selling: &7%{crypto.samount.%player%}%||&ePrice: &7$%{%loop-value%::1::price_usd} parsed as a number * {crypto.samount.%player%}%"
set slot 20 of player's current inventory to chest named "&f[&c&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%loop-value%||&eAmount Selling: &7%{crypto.samount.%player%}%||&ePrice: &7$%{%loop-value%::1::price_usd} parsed as a number * {crypto.samount.%player%}%"
set slot 22 of player's current inventory to iron nugget named "&f[&c&lSell Cart&f]" with lore "&eCoin: &7%loop-value%||&eAmount In Cart: &7%{crypto.samount.%player%}%||&eSell Price: &7$%{%loop-value%::1::price_usd} parsed as a number * {crypto.samount.%player%}%"
command /cryptobuy [<text>]:
permission: crypto.use
permission message: &cYou do not have permission for that.
trigger:
loop {crypto::*}:
if arg-1 is loop-value:
wait 2 ticks
open chest with 5 rows named "&f[&2&lBuy %arg 1%&f]" to player
wait 1 tick
set slot 0 of player's current inventory to blue glass named "&a"
set slot 1 of player's current inventory to white glass named "&a"
set slot 2 of player's current inventory to white glass named "&a"
set slot 3 of player's current inventory to blue glass named "&a"
set slot 4 of player's current inventory to white glass named "&a"
set slot 5 of player's current inventory to blue glass named "&a"
set slot 6 of player's current inventory to white glass named "&a"
set slot 7 of player's current inventory to white glass named "&a"
set slot 8 of player's current inventory to blue glass named "&a"
set slot 9 of player's current inventory to white glass named "&a"
set slot 10 of player's current inventory to light green glass named "&a"
set slot 11 of player's current inventory to light green glass named "&a"
set slot 12 of player's current inventory to light green glass named "&a"
set slot 14 of player's current inventory to light green glass named "&a"
set slot 15 of player's current inventory to light green glass named "&a"
set slot 16 of player's current inventory to light green glass named "&a"
set slot 17 of player's current inventory to white glass named "&a"
set slot 18 of player's current inventory to blue glass named "&a"
set slot 19 of player's current inventory to light green glass named "&a"
set slot 21 of player's current inventory to light green glass named "&a"
set slot 23 of player's current inventory to light green glass named "&a"
set slot 25 of player's current inventory to light green glass named "&a"
set slot 26 of player's current inventory to blue glass named "&a"
set slot 27 of player's current inventory to white glass named "&a"
set slot 28 of player's current inventory to light green glass named "&a"
set slot 29 of player's current inventory to light green glass named "&a"
set slot 30 of player's current inventory to light green glass named "&a"
set slot 32 of player's current inventory to light green glass named "&a"
set slot 33 of player's current inventory to light green glass named "&a"
set slot 34 of player's current inventory to light green glass named "&a"
set slot 35 of player's current inventory to white glass named "&a"
set slot 36 of player's current inventory to blue glass named "&a"
set slot 37 of player's current inventory to white glass named "&a"
set slot 43 of player's current inventory to white glass named "&a"
set slot 22 of player's current inventory to iron nugget named "&f[&a&lCart&f]" with lore "&eCoin: &7%arg 1%||&eAmount In Cart: &7%{crypto.bamount.%player%}%||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {crypto.bamount.%player%}%"
set slot 44 of player's current inventory to blue glass named "&a"
set slot 13 of player's current inventory to skull of ("MHF_ArrowUp" parsed as an offline player) named "&f[&a&l+1.0&f]" with lore "&8&oClick to add to your cart.||&eCoin: &7%arg 1%||&ePrice: &a+$%{%arg 1%::1::price_usd}%"
set slot 31 of player's current inventory to skull of ("MHF_ArrowDown" parsed as an offline player) named "&f[&c&l-1.0&f]" with lore "&8&oClick to remove from your cart.||&eCoin: &7%arg 1%||&ePrice: &c-$%{%arg 1%::1::price_usd}%"
set {maxcrypto.%player%} to balance of player/{%arg 1%::1::price_usd} parsed as a number
set {maxcrypto.%player%} to {maxcrypto.%player%}-0.01
if {maxcrypto.%player%} is less than 0:
set {maxcrypto.%player%} to 0
set slot 42 of player's current inventory to emerald named "&f[&a&l100%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &7100%% (&e%{maxcrypto.%player%}%&7)||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}%"
set slot 41 of player's current inventory to diamond named "&f[&a&l75%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &775%% (&e%{maxcrypto.%player%}*.75%&7)||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.75%"
set slot 40 of player's current inventory to gold ingot named "&f[&a&l50%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &750%% (&e%{maxcrypto.%player%}*.50%&7)||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.50%"
set slot 39 of player's current inventory to iron ingot named "&f[&a&l25%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &725%% (&e%{maxcrypto.%player%}*.25%&7)||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.25%"
set slot 38 of player's current inventory to coal named "&f[&a&l10%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &710%% (&e%{maxcrypto.%player%}*.10%&7)||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.10%"
set slot 24 of player's current inventory to chest named "&f[&a&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%arg 1%||&eAmount In Cart: &7%{crypto.bamount.%player%}%||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {crypto.bamount.%player%}%"
set slot 20 of player's current inventory to chest named "&f[&a&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%arg 1%||&eAmount In Cart: &7%{crypto.bamount.%player%}%||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {crypto.bamount.%player%}%"
command /cryptosell [<text>]:
permission: crypto.use
permission message: &cYou do not have permission for that.
trigger:
loop {crypto::*}:
if arg-1 is loop-value:
set {maxcrypto.%player%} to {%arg 1%.%player%}
wait 2 ticks
open chest with 5 rows named "&f[&4&lSell %arg 1%&f]" to player
wait 1 tick
set slot 0 of player's current inventory to blue glass named "&a"
set slot 1 of player's current inventory to white glass named "&a"
set slot 2 of player's current inventory to white glass named "&a"
set slot 3 of player's current inventory to blue glass named "&a"
set slot 4 of player's current inventory to white glass named "&a"
set slot 5 of player's current inventory to blue glass named "&a"
set slot 6 of player's current inventory to white glass named "&a"
set slot 7 of player's current inventory to white glass named "&a"
set slot 8 of player's current inventory to blue glass named "&a"
set slot 9 of player's current inventory to white glass named "&a"
set slot 10 of player's current inventory to red glass named "&a"
set slot 11 of player's current inventory to red glass named "&a"
set slot 12 of player's current inventory to red glass named "&a"
set slot 14 of player's current inventory to red glass named "&a"
set slot 15 of player's current inventory to red glass named "&a"
set slot 16 of player's current inventory to red glass named "&a"
set slot 17 of player's current inventory to white glass named "&a"
set slot 18 of player's current inventory to blue glass named "&a"
set slot 19 of player's current inventory to red glass named "&a"
set slot 21 of player's current inventory to red glass named "&a"
set slot 23 of player's current inventory to red glass named "&a"
set slot 25 of player's current inventory to red glass named "&a"
set slot 26 of player's current inventory to blue glass named "&a"
set slot 27 of player's current inventory to white glass named "&a"
set slot 28 of player's current inventory to red glass named "&a"
set slot 29 of player's current inventory to red glass named "&a"
set slot 30 of player's current inventory to red glass named "&a"
set slot 32 of player's current inventory to red glass named "&a"
set slot 33 of player's current inventory to red glass named "&a"
set slot 34 of player's current inventory to red glass named "&a"
set slot 35 of player's current inventory to white glass named "&a"
set slot 36 of player's current inventory to blue glass named "&a"
set slot 37 of player's current inventory to white glass named "&a"
set slot 43 of player's current inventory to white glass named "&a"
set slot 22 of player's current inventory to iron nugget named "&f[&c&lSell Cart&f]" with lore "&eCoin: &7%arg 1%||&eAmount In Cart: &7%{crypto.samount.%player%}%||&eSell Price: &7$%{%arg 1%::1::price_usd} parsed as a number * {crypto.samount.%player%}%"
set slot 44 of player's current inventory to blue glass named "&a"
set slot 13 of player's current inventory to skull of ("MHF_ArrowUp" parsed as an offline player) named "&f[&a&l+1.0&f]" with lore "&8&oClick to add to your sell cart.||&eCoin: &7%arg 1%||&eSell Price: &a+$%{%arg 1%::1::price_usd}%"
set slot 31 of player's current inventory to skull of ("MHF_ArrowDown" parsed as an offline player) named "&f[&c&l-1.0&f]" with lore "&8&oClick to remove from your sell cart.||&eCoin: &7%arg 1%||&eSell Price: &c-$%{%arg 1%::1::price_usd}%"
set slot 42 of player's current inventory to emerald named "&f[&c&l100%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &7100%% (&e%{maxcrypto.%player%}%&7)||&eSell Price: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}%"
set slot 41 of player's current inventory to diamond named "&f[&c&l75%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &775%% (&e%{maxcrypto.%player%}*.75%&7)||&eSell Price: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.75%"
set slot 40 of player's current inventory to gold ingot named "&f[&c&l50%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &750%% (&e%{maxcrypto.%player%}*.50%&7)||&eSell Price: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.50%"
set slot 39 of player's current inventory to iron ingot named "&f[&c&l25%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &725%% (&e%{maxcrypto.%player%}*.25%&7)||&eSell Price: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.25%"
set slot 38 of player's current inventory to coal named "&f[&c&l10%%&f]" with lore "&eCoin: &7%arg 1%||&eAmount: &710%% (&e%{maxcrypto.%player%}*.10%&7)||&eSell Price: &7$%{%arg 1%::1::price_usd} parsed as a number * {maxcrypto.%player%}*.10%"
set slot 24 of player's current inventory to chest named "&f[&c&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%arg 1%||&eAmount Selling: &7%{crypto.samount.%player%}%||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {crypto.samount.%player%}%"
set slot 20 of player's current inventory to chest named "&f[&c&lCheckout&f]" with lore "&8&oClick to checkout.||&eCoin: &7%arg 1%||&eAmount Selling: &7%{crypto.samount.%player%}%||&ePrice: &7$%{%arg 1%::1::price_usd} parsed as a number * {crypto.samount.%player%}%"
on inventory close:
wait 2 ticks
set {crypto.bamount.%player%} to 0
set {crypto.samount.%player%} to 0