HallowedS

Untitled

Feb 10th, 2017
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. Options:
  2. meudeus: %
  3. #=====================================================================#
  4. # Parte I #
  5. #=====================================================================#
  6. command /enchant:
  7. aliases: /vf, /fv
  8. trigger:
  9. send "[private-script-name]"
  10. send "API faction/cashutils (version 1.8.8-F0.2/1.7.10-CI1.2)"
  11. wait 1 second
  12. send "Checking version, please wait..."
  13. wait 1 second
  14. send "Found a new version [private-script-version]"
  15. command /encantar:
  16. trigger:
  17. set {xp.%player%} to xp of player
  18. open chest with 3 rows named "Feiticeiro" to player
  19. 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"]
  20. 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"]
  21. 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"]
  22. 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"]
  23. 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"]
  24. 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"]
  25. format slot 26 of player with experience bottle named "&eSua experiência" with lore "&7XP: &f%{xp.%player%}%" to be unstealable
  26. command /exp1:
  27. trigger:
  28. if xp of player is more than 499:
  29. remove 499 from xp of player
  30. execute console command "xpbottle 500 %player%"
  31. else:
  32. send "&cVocê não tem experiência suficiente"
  33. command /exp2:
  34. trigger:
  35. if xp of player is more than 999:
  36. remove 999 from xp of player
  37. execute console command "xpbottle 1000 %player%"
  38. else:
  39. send "&cVocê não tem experiência suficiente"
  40. command /exp3:
  41. trigger:
  42. if xp of player is more than 4999:
  43. remove 4999 from xp of player
  44. execute console command "xpbottle 5000 %player%"
  45. else:
  46. send "&cVocê não tem experiência suficiente"
  47. #=====================================================================# chance of {@chance1}% or {@chance2}% or {@chance3}% or {@chance4}% or {@chance5}% or {@chance6}% or {@chance7}% or {@chance8}% or {@chance9}% or {@chance10}%:
  48. # Parte II #
  49. #=====================================================================#
  50. command /1:
  51. trigger:
  52. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência I|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  53. command /2:
  54. trigger:
  55. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  56. on inventory click:
  57. if cursor item is enchanted book named "&eLivro básico" with lore "&7Eficiência I|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  58. if clicked item is pickaxe:
  59. chance of 50%:
  60. enchant clicked item with efficiency 1
  61. set cursor item to air
  62. message "&aEncantamento aplicado com sucesso."
  63. stop
  64. chance of 50%:
  65. send "&cIhhh! Parece que não deu certo."
  66. set cursor item to air
  67. stop
  68. on inventory click:
  69. if cursor item is enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  70. if clicked item is pickaxe:
  71. chance of 50%:
  72. clicked item is enchanted with efficiency 1
  73. enchant clicked item with efficiency 2
  74. set cursor item to air
  75. message "&aEncantamento aplicado com sucesso."
  76. stop
  77. else:
  78. send "&cVocê precisa ter o encantamento Eficiência I."
  79. cancel event
  80. stop
  81. chance of 50%:
  82. clicked item is enchanted with efficiency 1
  83. set cursor item to air
  84. send "&cIhhh! Parece que não deu certo."
  85. stop
  86. else:
  87. send "&cVocê precisa ter o encantamento Eficiência I."
  88. cancel event
  89. stop
  90. on inventory click:
  91. if cursor item is enchanted book named "&eEnchanted Book" with lore "&7Teste":
  92. if clicked item is sword:
  93. message "&cVocê não pode encantar este item com este encantamento."
  94. cancel event
Advertisement
Add Comment
Please, Sign In to add comment