zGhol

/TRABALHOS

Feb 12th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. command /trabalhos:
  2. trigger:
  3. wait 5 seconds
  4. &aAbrindo menu gui ...
  5. open chest with 3 row named "&6&lTrabalhos" to player
  6. format slot 11 of player with a Diamond Pickaxe named "&a&lMinerador" with lore "&fMinere e consiga money Entroca!" to close then run "[make console execute command "/trabalhar minerador"]"
  7. format slot 13 of player with a Diamond Axe named "&8&lLenhador" with lore "&fQuebre madeiras e consiga money Entroca!" to close then run "[make console execute command "/trabalhar lenhador"]"
  8. format slot 11 of player with a Diamond Sword named "&c&lMatador" with lore "&fMate players e consiga money Entroca!" to close then run "[make console execute command "/trabalhar matador"]"
  9. stop
  10.  
  11. command /trabalhar [<text>]:
  12. trigger:
  13. if arg 1 is "minerador":
  14. if {Trabalho.%player%::K} is false:
  15. if {Trabalho.%player%::L} is false:
  16. set {Trabalho.%player%::M} to true
  17. set {Quantia.M::%player%} to true
  18. send "&6&lTrabalho: &eAgora você trabalha como minerador"
  19. stop
  20. else:
  21. send "&6&lTrabalho: &eVocê ja possue um trabalho"
  22. stop
  23. else:
  24. send "&6&lTrabalho: &eVocê ja possue um trabalho"
  25. stop
  26. if arg 1 is "lenhador":
  27. if {Trabalho.%player%::M} is false:
  28. if {Trabalho.%player%::K} is false:
  29. set {Trabalho.%player%::L} to true
  30. set {Quantia.L::%player%} to true
  31. send "&6&lTrabalho: &eAgora você trabalha como lenhador"
  32. stop
  33. else:
  34. send "&6&lTrabalho: &eVocê ja possue um trabalho"
  35. stop
  36. else:
  37. send "&6&lTrabalho: &eVocê ja possue um trabalho"
  38. stop
  39. if arg 1 is "matador":
  40. if {Trabalho.%player%::M} is false:
  41. if {Trabalho.%player%::L} is false:
  42. set {Trabalho.%player%::K} to true
  43. set {Quantia.K::%player%} to true
  44. send "&6&lTrabalho: &eAgora você trabalha como matador"
  45. stop
  46. else:
  47. send "&6&lTrabalho: &eVocê ja possue um trabalho"
  48. stop
  49. else:
  50. send "&6&lTrabalho: &eVocê ja possue um trabalho"
  51. stop
  52.  
  53. on mine of Lapis Lazuli Ore:
  54. if {Trabalho.%player%::M} is true:
  55. if {Quantia.M::%player%} = 1500:
  56. send "&aVocê conseguil acumular 64 blocos, dinheiro entregue..."
  57. make console execute command "/money give %player% 1500"
  58. stop
  59. if {Quantia.M::%player%} = 2240:
  60. send "&a&lVocê conseguil acumular 2240 blocos, dinheiro entregue..."
  61. set {Quantia.M::%player%} to 0
  62. make console execute command "/money give %player% 15000"
  63. stop
  64. else:
  65. add 1 to {Quantia.M::%player%}
  66. stop
  67.  
  68. on death of a player:
  69. if {Trabalho.%player%::K} is true:
  70. if {Quantia.K::%player%} is 50:
  71. set {Quantia.K::%player%} to 0
  72. send "&a&lVocê conseguil acumular 50 kills, dinheiro entregue..."
  73. make console execute command "/money give %player% 50000"
  74. stop
  75. else:
  76. add 1 to {Quantia.K::%player%}
  77. stop
  78.  
  79. on break of log:
  80. if {Trabalho.%player%::L} is true:
  81. if {Quantia.L::%player%} is 64:
  82. set {Quantia.L::%player%} to 0
  83. send "&a&lVocê conseguil acumular 64 madeiras, dinheiro entregue..."
  84. make console execute command "/money give %player% 500"
  85. stop
  86. else:
  87. add 1 to {Quantia.L::%player%}
  88. stop
Add Comment
Please, Sign In to add comment