Advertisement
TheGeneX

sMaquinas v3

Jul 1st, 2018
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.37 KB | None | 0 0
  1. options:
  2. Prefixo: &6[sMaquinas]
  3. PrecoCombustivel: 1
  4. PrecoMaquina: 10
  5. PrecoEvolucao1: 1
  6. PrecoEvolucao2: 2
  7. PrecoEvolucao3: 3
  8. PrecoEvolucao4: 4
  9. PrecoEvolucao5: 5
  10. PrecoEvolucao6: 6
  11. PrecoEvolucao7: 7
  12. PrecoEvolucao8: 8
  13. PrecoEvolucao9: 9
  14. PrecoEvolucao10: 10
  15. DinheiroMaquina0: 1
  16. DinheiroMaquina1: 2
  17. DinheiroMaquina2: 3
  18. DinheiroMaquina3: 4
  19. DinheiroMaquina4: 5
  20. DinheiroMaquina5: 6
  21. DinheiroMaquina6: 7
  22. DinheiroMaquina7: 8
  23. DinheiroMaquina8: 9
  24. DinheiroMaquina9: 10
  25. DinheiroMaquina10: 11
  26. TempoDeEspera: 3 #em segundos
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. command /maquina [<text>] [<text>]:
  60. aliases: maquinas
  61. trigger:
  62. if arg 1 is not set:
  63. send " "
  64. send "{@Prefixo} &eComandos Gerais"
  65. send " "
  66. send "&6/maquina comprar &7- &eUtilizado para comprar a maquina."
  67. send " "
  68. send "&6/maquina combustivel (quantia) &7- &eUtilizado para comprar combustiveis."
  69. send " "
  70. if arg 1 is "comprar" or "buy":
  71. if player's money is more or equal to {@PrecoMaquina}:
  72. give 1 165 named "&aMaquina de &2Dinheiro" with lore "&7||&7Essa maquina gera dinheiro automáticamente||&7" to player
  73. send "{@Prefixo} &eVocê comprou uma máquina de dinheiro"
  74. remove {@PrecoMaquina} from player's balance
  75. else:
  76. send "{@Prefixo} &eVocê não tem dinheiro suficiente para comprar essa máquina."
  77. if arg 1 is "combu" or "combustivel":
  78. if arg 2 is not set:
  79. if player's money is more or equal to {@PrecoCombustivel}:
  80. give 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  81. send "{@Prefixo} &eVocê comprou um combustivel por &2R$&a{@PrecoCombustivel}"
  82. remove {@PrecoCombustivel} from player's balance
  83. else:
  84. send "{@Prefixo} &eVocê não tem dinheiro suficiente para comprar combustiveis."
  85. else:
  86. if arg 2 is "16":
  87. set {_QuantoFoi} to 16 * {@PrecoCombustivel}
  88. if player's money is more or equal to {_QuantoFoi}:
  89. give 16 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  90. send "{@Prefixo} &eVocê comprou 16 combustiveis por &2R$&a%{_QuantoFoi}%"
  91. remove {_QuantoFoi} from player's balance
  92. else:
  93. send "{@Prefixo} &eVocê não tem dinheiro suficiente para comprar combustiveis."
  94. if arg 2 is "32":
  95. set {_QuantoFoi} to 16 * {@PrecoCombustivel}
  96. if player's money is more or equal to {_QuantoFoi}:
  97. give 32 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  98. send "{@Prefixo} &eVocê comprou 32 combustiveis por &2R$&a%{_QuantoFoi}%"
  99. remove {_QuantoFoi} from player's balance
  100. else:
  101. send "{@Prefixo} &eVocê não tem dinheiro suficiente para comprar combustiveis."
  102. if arg 2 is "46":
  103. set {_QuantoFoi} to 16 * {@PrecoCombustivel}
  104. if player's money is more or equal to {_QuantoFoi}:
  105. give 46 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  106. send "{@Prefixo} &eVocê comprou 46 combustiveis por &2R$&a%{_QuantoFoi}%"
  107. remove {_QuantoFoi} from player's balance
  108. else:
  109. send "{@Prefixo} &eVocê não tem dinheiro suficiente para comprar combustiveis."
  110. if arg 2 is "64":
  111. set {_QuantoFoi} to 16 * {@PrecoCombustivel}
  112. if player's money is more or equal to {_QuantoFoi}:
  113. give 64 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" to player
  114. send "{@Prefixo} &eVocê comprou 64 combustiveis por &2R$&a%{_QuantoFoi}%"
  115. remove {_QuantoFoi} from player's balance
  116. else:
  117. send "{@Prefixo} &eVocê não tem dinheiro suficiente para comprar combustiveis."
  118. if arg 2 is not "16" or "32" or "46" or "64":
  119. send "{@Prefixo} &eUtilize o comando /maquina combustivel (16/32/46/64)"
  120. stop
  121. on rightclick holding coal on 165:
  122. if player has 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||":
  123. if {colocoumaquina.%location of block%} is true:
  124. if {usandomaquina.%location of block%} is false:
  125. remove 1 coal named "&8Combustivel para Maquinas" with lore "||&7Combustivel usado para abastecer maquinas.||&7||" from player's inventory
  126. send " "
  127. send "{@Prefixo} &eMáquina ligada."
  128. send " "
  129. set {usandomaquina.%location of block%} to true
  130. if {evoluiupara.%player%} isn't set:
  131. loop 36 times:
  132. add {@DinheiroMaquina0} to player's balance
  133. wait {@TempoDeEspera} seconds
  134. if {evoluiupara.%player%} is 1:
  135. loop 36 times:
  136. add {@DinheiroMaquina1} to player's balance
  137. wait {@TempoDeEspera} seconds
  138. if {evoluiupara.%player%} is 2:
  139. loop 36 times:
  140. add {@DinheiroMaquina2} to player's balance
  141. wait {@TempoDeEspera} seconds
  142. if {evoluiupara.%player%} is 3:
  143. loop 36 times:
  144. add {@DinheiroMaquina3} to player's balance
  145. wait {@TempoDeEspera} seconds
  146. if {evoluiupara.%player%} is 4:
  147. loop 36 times:
  148. add {@DinheiroMaquina4} to player's balance
  149. wait {@TempoDeEspera} seconds
  150. if {evoluiupara.%player%} is 5:
  151. loop 36 times:
  152. add {@DinheiroMaquina5} to player's balance
  153. wait {@TempoDeEspera} seconds
  154. if {evoluiupara.%player%} is 6:
  155. loop 36 times:
  156. add {@DinheiroMaquina6} to player's balance
  157. wait {@TempoDeEspera} seconds
  158. if {evoluiupara.%player%} is 7:
  159. loop 36 times:
  160. add {@DinheiroMaquina7} to player's balance
  161. wait {@TempoDeEspera} seconds
  162. if {evoluiupara.%player%} is 8:
  163. loop 36 times:
  164. add {@DinheiroMaquina8} to player's balance
  165. wait {@TempoDeEspera} seconds
  166. if {evoluiupara.%player%} is 9:
  167. loop 36 times:
  168. add {@DinheiroMaquina9} to player's balance
  169. wait {@TempoDeEspera} seconds
  170. if {evoluiupara.%player%} is 10:
  171. loop 36 times:
  172. add {@DinheiroMaquina10} to player's balance
  173. wait {@TempoDeEspera} seconds
  174. send " "
  175. send "&cAcabou o combustivel de sua maquina"
  176. send " "
  177. set {usandomaquina.%location of block%} to false
  178. stop
  179. else:
  180. send "{@Prefixo} &eEssa maquina já foi abastecida"
  181. stop
  182. on rightclick on 165:
  183. if {colocoumaquina.%location of block%} is true:
  184. if {usandomaquina.%location of block%} is false:
  185. if {evoluiupara.%player%} isn't set:
  186. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  187. wait 5 ticks
  188. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 1" to close then run [execute player command "/evoluirmaquina 1"]
  189. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  190. if {evoluiupara.%player%} is 1:
  191. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  192. wait 5 ticks
  193. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 2" to close then run [execute player command "/evoluirmaquina 2"]
  194. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  195. if {evoluiupara.%player%} is 2:
  196. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  197. wait 5 ticks
  198. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 3" to close then run [execute player command "/evoluirmaquina 3"]
  199. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  200. if {evoluiupara.%player%} is 3:
  201. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  202. wait 5 ticks
  203. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 4" to close then run [execute player command "/evoluirmaquina 4"]
  204. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  205. if {evoluiupara.%player%} is 4:
  206. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  207. wait 5 ticks
  208. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 5" to close then run [execute player command "/evoluirmaquina 5"]
  209. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  210. if {evoluiupara.%player%} is 5:
  211. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  212. wait 5 ticks
  213. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 6" to close then run [execute player command "/evoluirmaquina 6"]
  214. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  215. if {evoluiupara.%player%} is 6:
  216. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  217. wait 5 ticks
  218. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 7" to close then run [execute player command "/evoluirmaquina 7"]
  219. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  220. if {evoluiupara.%player%} is 7:
  221. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  222. wait 5 ticks
  223. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 8" to close then run [execute player command "/evoluirmaquina 8"]
  224. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  225. if {evoluiupara.%player%} is 8:
  226. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  227. wait 5 ticks
  228. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 9" to close then run [execute player command "/evoluirmaquina 9"]
  229. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  230. if {evoluiupara.%player%} is 9:
  231. open chest with 3 rows named "&aMaquinas - Evoluir" to player
  232. wait 5 ticks
  233. format slot 11 of player with light green glass named "&7" with lore "&aClique &lAQUI &apara evoluir sua maquina para o nível 10" to close then run [execute player command "/evoluirmaquina 10"]
  234. format slot 15 of player with red glass named "&7" with lore "&cClique &lAQUI&c para cancelar a evolução." to close
  235. if {evoluiupara.%player%} is 10:
  236. send "{@Prefixo} &eSua máquina já está no nível máximo."
  237. command /evoluirmaquina [<text>]:
  238. trigger:
  239. if arg 1 is set:
  240. if arg 1 is "1":
  241. if {evoluiupara.%player%} isn't set:
  242. if player's money is more or equal to {@PrecoEvolucao1}:
  243. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 1!"
  244. set {evoluiupara.%player%} to 1
  245. stop
  246. else:
  247. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  248. stop
  249. if arg 1 is "2":
  250. if {evoluiupara.%player%} is 1:
  251. if player's money is more or equal to {@PrecoEvolucao2}:
  252. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 2!"
  253. set {evoluiupara.%player%} to 2
  254. stop
  255. else:
  256. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  257. stop
  258. if arg 1 is "3":
  259. if {evoluiupara.%player%} is 2:
  260. if player's money is more or equal to {@PrecoEvolucao1}:
  261. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 3!"
  262. set {evoluiupara.%player%} to 3
  263. stop
  264. else:
  265. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  266. stop
  267. if arg 1 is "4":
  268. if {evoluiupara.%player%} is 3:
  269. if player's money is more or equal to {@PrecoEvolucao4}:
  270. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 4!"
  271. set {evoluiupara.%player%} to 4
  272. stop
  273. else:
  274. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  275. stop
  276. if arg 1 is "5":
  277. if {evoluiupara.%player%} is 4:
  278. if player's money is more or equal to {@PrecoEvolucao5}:
  279. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 5!"
  280. set {evoluiupara.%player%} to 5
  281. stop
  282. else:
  283. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  284. stop
  285. if arg 1 is "6":
  286. if {evoluiupara.%player%} is 5:
  287. if player's money is more or equal to {@PrecoEvolucao6}:
  288. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 6!"
  289. set {evoluiupara.%player%} to 6
  290. stop
  291. else:
  292. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  293. stop
  294. if arg 1 is "7":
  295. if {evoluiupara.%player%} is 6:
  296. if player's money is more or equal to {@PrecoEvolucao7}:
  297. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 7!"
  298. set {evoluiupara.%player%} to 7
  299. stop
  300. else:
  301. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  302. stop
  303. if arg 1 is "8":
  304. if {evoluiupara.%player%} is 7:
  305. if player's money is more or equal to {@PrecoEvolucao8}:
  306. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 8!"
  307. set {evoluiupara.%player%} to 8
  308. stop
  309. else:
  310. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  311. stop
  312. if arg 1 is "9":
  313. if {evoluiupara.%player%} is 8:
  314. if player's money is more or equal to {@PrecoEvolucao9}:
  315. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 9!"
  316. set {evoluiupara.%player%} to 9
  317. stop
  318. else:
  319. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  320. stop
  321. if arg 1 is "10":
  322. if {evoluiupara.%player%} is 9:
  323. if player's money is more or equal to {@PrecoEvolucao10}:
  324. send "{@Prefixo} &eVocê evoluiu sua máquina para o level 10!"
  325. set {evoluiupara.%player%} to 10
  326. stop
  327. else:
  328. send "{@Prefixo} &eVocê não tem dinheiro suficiente para evoluir a sua máquina."
  329. stop
  330. on inventory click:
  331. if inventory name of player's current inventory is "&aMaquinas - Evoluir":
  332. cancel event
  333. on break 165:
  334. if {usandomaquina.%location of block%} is true:
  335. send "{@Prefixo} &eVocê não pode quebrar a máquina enquanto ela está ativa."
  336. cancel event
  337. stop
  338. else:
  339. if {colocoumaquina.%location of block%} is true:
  340. cancel event
  341. set event-block to air
  342. send "{@Prefixo} &eVocê quebrou a sua máquina."
  343. give 1 165 named "&aMaquina de &2Dinheiro" with lore "&7||&7Essa maquina gera dinheiro automáticamente||&7" to player
  344. set {colocoumaquina.%location of block%} to false
  345. on place 165:
  346. if tool of player is a 165 named "&aMaquina de &2Dinheiro" with lore "&7||&7Essa maquina gera dinheiro automáticamente||&7":
  347. add location of block to {dinheiro::*}
  348. set {colocoumaquina.%location of block%} to true
  349. set {usandomaquina.%location of block%} to false
  350. send "{@Prefixo} &eVocê colocou uma máquina."
  351. command /desbugar:
  352. trigger:
  353. delete {evoluiupara.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement