Advertisement
HallowedS

Untitled

Feb 10th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.79 KB | None | 0 0
  1. #=====================================================================#
  2. # Parte I #
  3. #=====================================================================#
  4. command /enchant:
  5. aliases: /vf, /fv
  6. trigger:
  7. send "[private-script-name]"
  8. send "API faction/cashutils (version 1.8.8-F0.2/1.7.10-CI1.2)"
  9. wait 1 second
  10. send "Checking version, please wait..."
  11. wait 1 second
  12. send "Found a new version [private-script-version]"
  13. command /encantar:
  14. trigger:
  15. set {xp.%player%} to xp of player
  16. open chest with 3 rows named "Feiticeiro" to player
  17. 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"]
  18. 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"]
  19. 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"]
  20. 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"]
  21. 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"]
  22. 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"]
  23. format slot 26 of player with experience bottle named "&eSua experiência" with lore "&7XP: &f%{xp.%player%}%" to be unstealable
  24. command /exp1:
  25. trigger:
  26. if xp of player is more than 499:
  27. remove 499 from xp of player
  28. execute console command "xpbottle 500 %player%"
  29. else:
  30. send "&cVocê não tem experiência suficiente"
  31. command /exp2:
  32. trigger:
  33. if xp of player is more than 999:
  34. remove 999 from xp of player
  35. execute console command "xpbottle 1000 %player%"
  36. else:
  37. send "&cVocê não tem experiência suficiente"
  38. command /exp3:
  39. trigger:
  40. if xp of player is more than 4999:
  41. remove 4999 from xp of player
  42. execute console command "xpbottle 5000 %player%"
  43. else:
  44. send "&cVocê não tem experiência suficiente"
  45. command /book1:
  46. trigger:
  47. if xp of player is more than 1500:
  48. remove 1500 from xp of player
  49. give 1 book named "&eLivro de encantamentos" with lore "&7Tipo: &fSimples" to player
  50. else:
  51. send "&cVocê não tem experiência suficiente"
  52. command /book2:
  53. trigger:
  54. if xp of player is more than 3000:
  55. remove 3000 from xp of player
  56. give 1 book named "&eLivro de encantamentos" with lore "&7Tipo: &fNormal" to player
  57. else:
  58. send "&cVocê não tem experiência suficiente"
  59. command /book3:
  60. trigger:
  61. if xp of player is more than 5500:
  62. remove 5500 from xp of player
  63. give 1 book named "&eLivro de encantamentos" with lore "&7Tipo: &fAvançado" to player
  64. else:
  65. send "&cVocê não tem experiência suficiente"
  66. #=====================================================================#
  67. # Parte II #
  68. #=====================================================================#
  69. command /1:
  70. trigger:
  71. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência I|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  72. command /2:
  73. trigger:
  74. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  75. on inventory click:
  76. if cursor item is enchanted book named "&eEnchanted Book" with lore "&7Teste":
  77. if clicked item is sword:
  78. message "&cVocê não pode encantar este item com este encantamento."
  79. cancel event
  80. on right click with a book:
  81. name of held item is "&eLivro de encantamentos"
  82. lore of held item is "&7Tipo: &fSimples"
  83. remove book from player
  84. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  85. on right click with a book:
  86. name of held item is "&eLivro de encantamentos"
  87. lore of held item is "&7Tipo: &fNormal"
  88. remove book from player
  89. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  90. on right click with a book:
  91. name of held item is "&eLivro de encantamentos"
  92. lore of held item is "&7Tipo: &fAvançado"
  93. remove book from player
  94. give 1 enchanted book named "&eLivro básico" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas" to player
  95. #=====================================================================#
  96. # Eficiência #
  97. #=====================================================================#
  98. on inventory click:
  99. if cursor item is enchanted book named "&eLivro simples" with lore "&7Eficiência I|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  100. if clicked item is pickaxe:
  101. chance of 50%:
  102. enchant clicked item with efficiency 1
  103. set cursor item to air
  104. message "&aEncantamento aplicado com sucesso."
  105. stop
  106. chance of 50%:
  107. send "&cIhhh! Parece que não deu certo."
  108. set cursor item to air
  109. stop
  110. on inventory click:
  111. if cursor item is enchanted book named "&eLivro simples" with lore "&7Eficiência II|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  112. if clicked item is pickaxe:
  113. chance of 50%:
  114. clicked item is enchanted with efficiency 1
  115. enchant clicked item with efficiency 2
  116. set cursor item to air
  117. message "&aEncantamento aplicado com sucesso."
  118. stop
  119. else:
  120. send "&cVocê precisa ter o encantamento Eficiência I."
  121. cancel event
  122. stop
  123. chance of 50%:
  124. clicked item is enchanted with efficiency 1
  125. set cursor item to air
  126. send "&cIhhh! Parece que não deu certo."
  127. stop
  128. else:
  129. send "&cVocê precisa ter o encantamento Eficiência I."
  130. cancel event
  131. stop
  132. on inventory click:
  133. if cursor item is enchanted book named "&eLivro normal" with lore "&7Eficiência III|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  134. if clicked item is pickaxe:
  135. chance of 50%:
  136. clicked item is enchanted with efficiency 2
  137. enchant clicked item with efficiency 3
  138. set cursor item to air
  139. message "&aEncantamento aplicado com sucesso."
  140. stop
  141. else:
  142. send "&cVocê precisa ter o encantamento Eficiência II."
  143. cancel event
  144. stop
  145. chance of 50%:
  146. clicked item is enchanted with efficiency 2
  147. set cursor item to air
  148. send "&cIhhh! Parece que não deu certo."
  149. stop
  150. else:
  151. send "&cVocê precisa ter o encantamento Eficiência II."
  152. cancel event
  153. stop
  154. on inventory click:
  155. if cursor item is enchanted book named "&eLivro avançado" with lore "&7Eficiência IV|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  156. if clicked item is pickaxe:
  157. chance of 50%:
  158. clicked item is enchanted with efficiency 3
  159. enchant clicked item with efficiency 4
  160. set cursor item to air
  161. message "&aEncantamento aplicado com sucesso."
  162. stop
  163. else:
  164. send "&cVocê precisa ter o encantamento Eficiência III."
  165. cancel event
  166. stop
  167. chance of 50%:
  168. clicked item is enchanted with efficiency 3
  169. set cursor item to air
  170. send "&cIhhh! Parece que não deu certo."
  171. stop
  172. else:
  173. send "&cVocê precisa ter o encantamento Eficiência III."
  174. cancel event
  175. stop
  176. on inventory click:
  177. if cursor item is enchanted book named "&eLivro avançado" with lore "&7Eficiência V|| ||&aChance de sucesso: 50*||&7Encanta: Ferramentas":
  178. if clicked item is pickaxe:
  179. chance of 50%:
  180. clicked item is enchanted with efficiency 4
  181. enchant clicked item with efficiency 5
  182. set cursor item to air
  183. message "&aEncantamento aplicado com sucesso."
  184. stop
  185. else:
  186. send "&cVocê precisa ter o encantamento Eficiência IV."
  187. cancel event
  188. stop
  189. chance of 50%:
  190. clicked item is enchanted with efficiency 4
  191. set cursor item to air
  192. send "&cIhhh! Parece que não deu certo."
  193. stop
  194. else:
  195. send "&cVocê precisa ter o encantamento Eficiência IV."
  196. cancel event
  197. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement