HallowedS

Untitled

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