Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- meudeus: %
- #=====================================================================#
- # Parte I #
- #=====================================================================#
- command /enchant:
- aliases: /vf, /fv
- trigger:
- send "[private-script-name]"
- send "API faction/cashutils (version 1.8.8-F0.2/1.7.10-CI1.2)"
- wait 1 second
- send "Checking version, please wait..."
- wait 1 second
- send "Found a new version [private-script-version]"
- command /encantar:
- trigger:
- set {xp.%player%} to xp of player
- open chest with 3 rows named "Feiticeiro" to player
- format slot 10 of player with experience bottle named "&ePoção de Experiência" with lore "&7Custo: &f500 XP||&7XP: &f500" to run [make player execute command "/exp1"]
- format slot 11 of player with experience bottle named "&ePoção de Experiência" with lore "&7Custo: &f1000 XP||&7XP: &f1000" to run [make player execute command "/exp2"]
- format slot 12 of player with experience bottle named "&ePoção de Experiência" with lore "&7Custo: &f5000 XP||&7XP: &f5000" to run [make player execute command "/exp3"]
- format slot 14 of player with book named "&eLivro de encantamentos" with lore "&7Tipo: &fSimples||&7Custo: &f1500 XP|| ||&7Botão esquerdo: &fComprar||&7Botão direito: &FVer encantamentos" to run [make player execute command "/menuguiredstone pagina2"]
- format slot 15 of player with book named "&eLivro de encantamentos" with lore "&7Tipo: &fNormal||&7Custo: &f3000 XP|| ||&7Botão esquerdo: &fComprar||&7Botão direito: &FVer encantamentos" to run [make player execute command "/menuguiredstone pagina2"]
- format slot 16 of player with book named "&eLivro de encantamentos" with lore "&7Tipo: &fAvançado||&7Custo: &f5500 XP|| ||&7Botão esquerdo: &fComprar||&7Botão direito: &FVer encantamentos" to run [make player execute command "/menuguiredstone pagina2"]
- format slot 26 of player with experience bottle named "&eSua experiência" with lore "&7XP: &f%{xp.%player%}%" to be unstealable
- command /exp1:
- trigger:
- if xp of player is more than 499:
- remove 499 from xp of player
- execute console command "xpbottle 500 %player%"
- else:
- send "&cVocê não tem experiência suficiente"
- command /exp2:
- trigger:
- if xp of player is more than 999:
- remove 999 from xp of player
- execute console command "xpbottle 1000 %player%"
- else:
- send "&cVocê não tem experiência suficiente"
- command /exp3:
- trigger:
- if xp of player is more than 4999:
- remove 4999 from xp of player
- execute console command "xpbottle 5000 %player%"
- else:
- send "&cVocê não tem experiência suficiente"
- #=====================================================================# chance of {@chance1}% or {@chance2}% or {@chance3}% or {@chance4}% or {@chance5}% or {@chance6}% or {@chance7}% or {@chance8}% or {@chance9}% or {@chance10}%:
- # Parte II #
- #=====================================================================#
- command /1:
- trigger:
- give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência I|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
- command /2:
- trigger:
- give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
- on inventory click:
- if cursor item is enchanted book named "&eLivro básico" with lore "&7Eficiência I|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
- if clicked item is pickaxe:
- chance of 50%:
- enchant clicked item with efficiency 1
- set cursor item to air
- message "&aEncantamento aplicado com sucesso."
- stop
- chance of 50%:
- send "&cIhhh! Parece que não deu certo."
- set cursor item to air
- stop
- on inventory click:
- if cursor item is enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
- if clicked item is pickaxe:
- chance of 50%:
- clicked item is enchanted with efficiency 1
- enchant clicked item with efficiency 2
- set cursor item to air
- message "&aEncantamento aplicado com sucesso."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência I."
- cancel event
- stop
- chance of 50%:
- clicked item is enchanted with efficiency 1
- set cursor item to air
- send "&cIhhh! Parece que não deu certo."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência I."
- cancel event
- stop
- on inventory click:
- if cursor item is enchanted book named "&eEnchanted Book" with lore "&7Teste":
- if clicked item is sword:
- message "&cVocê não pode encantar este item com este encantamento."
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment