Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=====================================================================#
- # 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 "/book1"]
- 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 "/book2"]
- 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 "/book3"]
- 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"
- command /book1:
- trigger:
- if xp of player is more than 1500:
- remove 1500 from xp of player
- give 1 book named "&eLivro de encantamentos" with lore "&7Tipo: &fSimples" to player
- else:
- send "&cVocê não tem experiência suficiente"
- command /book2:
- trigger:
- if xp of player is more than 3000:
- remove 3000 from xp of player
- give 1 book named "&eLivro de encantamentos" with lore "&7Tipo: &fNormal" to player
- else:
- send "&cVocê não tem experiência suficiente"
- command /book3:
- trigger:
- if xp of player is more than 5500:
- remove 5500 from xp of player
- give 1 book named "&eLivro de encantamentos" with lore "&7Tipo: &fAvançado" to player
- else:
- send "&cVocê não tem experiência suficiente"
- #=====================================================================#
- # 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 "&eEnchanted Book" with lore "&7Teste":
- if clicked item is sword:
- message "&cVocê não pode encantar este item com este encantamento."
- cancel event
- on right click with a book:
- name of held item is "&eLivro de encantamentos"
- lore of held item is "&7Tipo: &fSimples"
- remove book from player
- give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
- on right click with a book:
- name of held item is "&eLivro de encantamentos"
- lore of held item is "&7Tipo: &fNormal"
- remove book from player
- give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
- on right click with a book:
- name of held item is "&eLivro de encantamentos"
- lore of held item is "&7Tipo: &fAvançado"
- remove book from player
- give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
- #=====================================================================#
- # Eficiência #
- #=====================================================================#
- on inventory click:
- if cursor item is enchanted book named "&eLivro simples" 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 simples" 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 "&eLivro normal" with lore "&7Eficiência III|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
- if clicked item is pickaxe:
- chance of 50%:
- clicked item is enchanted with efficiency 2
- enchant clicked item with efficiency 3
- set cursor item to air
- message "&aEncantamento aplicado com sucesso."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência II."
- cancel event
- stop
- chance of 50%:
- clicked item is enchanted with efficiency 2
- set cursor item to air
- send "&cIhhh! Parece que não deu certo."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência II."
- cancel event
- stop
- on inventory click:
- if cursor item is enchanted book named "&eLivro avançado" with lore "&7Eficiência IV|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
- if clicked item is pickaxe:
- chance of 50%:
- clicked item is enchanted with efficiency 3
- enchant clicked item with efficiency 4
- set cursor item to air
- message "&aEncantamento aplicado com sucesso."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência III."
- cancel event
- stop
- chance of 50%:
- clicked item is enchanted with efficiency 3
- set cursor item to air
- send "&cIhhh! Parece que não deu certo."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência III."
- cancel event
- stop
- on inventory click:
- if cursor item is enchanted book named "&eLivro avançado" with lore "&7Eficiência V|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
- if clicked item is pickaxe:
- chance of 50%:
- clicked item is enchanted with efficiency 4
- enchant clicked item with efficiency 5
- set cursor item to air
- message "&aEncantamento aplicado com sucesso."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência IV."
- cancel event
- stop
- chance of 50%:
- clicked item is enchanted with efficiency 4
- set cursor item to air
- send "&cIhhh! Parece que não deu certo."
- stop
- else:
- send "&cVocê precisa ter o encantamento Eficiência IV."
- cancel event
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement