Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Skript de Cash e Shop
- # Dono: Darkio
- # por favor não tira os creditos
- # Version: 2.0
- variables:
- {cash.%player%} = 0
- options:
- addcash: &f» &7Você deu &6%arg 2% &7de cash para &6%arg 1%&7.
- # Sistema de saber seu cash #
- command /cash [<player>] [<integer>]:
- trigger:
- if arg 1 is set:
- send "&7(&8cash&7) &f» &7cash de &8%arg 1%&f: &6%{cash.%arg 1%}%"
- if arg 1 is not set:
- send "&7(&8cash&7) &f» &7cash&f: &6%{cash.%player%}%"
- play level up at player with pitch 1
- # Sistema de adicionarcash para o player#
- command /adicionarcash [<player>] [<integer>]:
- trigger:
- if player has permission "adicionarcash.admin":
- if arg 1 is set:
- if arg 2 is set:
- send "&7(&8cash&7) &f» &7Verificando sua permissão&6..."
- wait 3 second
- send "&7(&8cash&7) {@addcash}"
- add arg 2 to {cash.% arg 1%}
- play level up at player with pitch 1
- else:
- send "&7(&8cash&7) &7Você precisa coloca quantidade de cash para o player"
- stop
- else:
- send "&7(&8cash&7) &7Selecione um player"
- stop
- else:
- send "&7(&8cash&7) &cVocê não tem permissão para usar essse comando"
- Stop
- # Sistema de remove cash do player#
- command /removecash [<player>] [<integer>]:
- trigger:
- if player has permission "removecash.admin":
- if arg 1 is set:
- if arg 2 is set:
- send "&7(&8cash&7) &f» &7Verificando sua permissão&6..."
- wait 3 second
- send "&8(&6Cash&8) &f» &7Você retirou &6%arg 2% &7Cash de &6%arg 1%"
- remove arg 2 from {cash.%arg 1%}
- play level up at player with pitch 1
- else:
- send "&8(&6Cash&8) &aVocê precisa escolher uma quantidade de cash!"
- stop
- else:
- send "&8(&6Cash&8) Selecione um player para retirar os cash"
- stop
- else:
- send "&8(&6Cash&8) &cVocê não tem permissão para usar esse comando"
- stop
- # Sistema de menu gui de shop #
- command /shop:
- trigger:
- open chest with 5 rows named "DarkShop de Cash!" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 4 of player with a Emerald Block named "&6cash" with lore "&7Você possui&f: &6%{cash.%player%}% &7de cash" to close
- wait 2 ticks
- format slot 19 of player with a gold nugget named "&6Dinheiro" with lore "&7Compre money por cash" to run [make player execute command "/dinheiro"]
- wait 2 ticks
- format slot 20 of player with a book named "&cMCMMO" with lore "&7Compre xp de mcmmo por cash" to run [make player execute command "/guimcmmo"]
- # Sistema de itens da loja #
- command /dinheiro:
- trigger:
- open chest with 3 rows named "Dinheiro" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a gold nugget named "&6Dinheiro&f: &21kk" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm1"]
- wait 2 ticks
- format slot 13 of player with a gold ingot named "&6Dinheiro&f: &210kk" with lore "&ePreço &e(&3Protudo&e)&f &6150 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm2"]
- wait 2 ticks
- format slot 15 of player with a gold block named "&6Dinheiro&f: &2100kk" with lore "&ePreço &e(&3Protudo&e)&f &6500 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm3"]
- command /guimcmmo:
- trigger:
- open chest with 1 rows named "&cMCMMO" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 0 of player with a diamond hoe named "&aHerbalismo" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm4"]
- wait 2 ticks
- format slot 1 of player with a diamond shovel named "&aExcavação" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm5"]
- wait 2 ticks
- format slot 2 of player with a diamond pickaxe named "&aMinerador" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm6"]
- wait 2 ticks
- format slot 3 of player with a diamond Axe named "&aAxe (combate)" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm7"]
- wait 2 ticks
- format slot 4 of player with a iron ingot named "&aReparação" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm8"]
- wait 2 ticks
- format slot 5 of player with a diamond sword named "&aEspada (combate)" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm9"]
- wait 2 ticks
- format slot 6 of player with a Brewing Stand named "&aAlquemia" with lore "&ePreço &e(&3Protudo&e)&f: &6100 &ede Cash||&eQuantidade&f: &61" to run [make player execute command "/confirm10"]
- # Sistema de confirmar itens #
- command /confirm1:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero1"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm2:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero2"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm3:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero3"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm4:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero4"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm5:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero5"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm6:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero6"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm7:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero7"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm8:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero8"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm9:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero9"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- command /confirm10:
- trigger:
- open chest with 3 rows named "Tem certeza?" to player
- play chest open at player with pitch 1
- wait 2 ticks
- format slot 11 of player with a stained hardened clay:13 named "&aConfirmar a compra" with lore "&7Deseja &aConfirmar &7a Compra?" to close then run [make player execute command "/numero10"]
- wait 2 ticks
- format slot 15 of player with a stained hardened clay:14 named "&cRecusar a compra" with lore "&7Deseja &cNegar &7a Compra ?" to close
- # Sistema de compras #
- command /numero1:
- trigger:
- send "&aProcessando a Compra..."
- wait 3 second
- if {cash.%player%} is more or equal to 100:
- remove 100 from {cash.%player%}
- add 1000000 to player's balance
- send "&aVocê comprou 1kk de Money Por 100 de cash"
- send "&cFoi removido 100 de cash de sua conta!"
- broadcast "&8(&7Mercado&8) &6%player% &7comprou &71kk de &6Money &7Por &6100 &7de &6Cash&7!"
- play level up at player with pitch 1
- else:
- send "&cVocê não tem cash suficiente para compra esse item"
- stop
- command /numero2:
- trigger:
- send "&aProcessando a Compra..."
- wait 3 second
- if {cash.%player%} is more or equal to 150:
- remove 150 from {cash.%player%}
- add 10000000 to player's balance
- send "&aVocê comprou 10kk de Money Por 150 de Cash"
- send "&cFoi removido 150 de cash de sua conta!"
- broadcast "&8(&7Mercado&8) &6%player% &7comprou &710kk de &6Money &7Por &6150 &7de &6Cash&7!"
- play level up at player with pitch 1
- else:
- send "&cVocê não tem cash suficiente para compra esse item"
- stop
- command /numero3:
- trigger:
- send "&aProcessando a Compra..."
- wait 3 second
- if {cash.%player%} is more or equal to 500:
- remove 500 from {cash.%player%}
- add 100000000 to player's balance
- send "&aVocê comprou 100kk de Money Por 500 de Cash"
- send "&cFoi removido 500 de cash de sua conta!"
- broadcast "&8(&7Mercado&8) &6%player% &7comprou &710kk de &6Money &7Por &6500 &7de &6Cash&7!"
- play level up at player with pitch 1
- else:
- send "&cVocê não tem cash suficiente para compra esse item"
- stop
- command /numero4:
- trigger:
- send "&aProcessando a compra..."
- wait 3 second
- if {cash.%player%} is more or equal to 100:
- remove 100 from {cash.%player%}
- subtract 100 from player's account
- send "&aVocê comprou xp de herbalismo Por 100 de Cash"
- send "&cFoi removido 100 de cash de sua conta!"
- make console execute command "/addxp %player% herbalismo 11000000"
- broadcast "&8(&7Mercado&8) &6%player% &7comprou &7Xp de &6Herbalismo &7Por &6100 &7de &6Cash&7!"
- play level up at player with pitch 1
- else:
- send "&cVocê não tem cash suficiente para compra esse item"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement