Guest User

Efekty

a guest
Aug 19th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. On Script Load:
  2. set {_inv} to "&6Efekty"
  3. new Inventory {_inv}
  4. {_inv}.Inventory.setRow{1};
  5. {_inv}.Inventory.setItem{1, water bottle named "&bStrength 2"};
  6. {_inv}.Inventory.setLore{1, "64 diamenty (01:00)"};
  7. {_inv}.Inventory.setExecutor{1, "player"};
  8. {_inv}.Inventory.setCommand{1, "buyeff 1"};
  9. {_inv}.Inventory.setCancelled{1, true};
  10. {_inv}.Inventory.setClosed{1, true};
  11. {_inv}.Inventory.setItem{2, water bottle named "&bSpeed"};
  12. {_inv}.Inventory.setLore{2, "32 diamenty (01:00)"};
  13. {_inv}.Inventory.setExecutor{2, "player"};
  14. {_inv}.Inventory.setCommand{2, "buyeff 2"};
  15. {_inv}.Inventory.setCancelled{2, true};
  16. {_inv}.Inventory.setClosed{2, true};
  17. {_inv}.Inventory.setItem{3, water bottle named "&bFire Resistance"};
  18. {_inv}.Inventory.setLore{3, "64 diamenty (02:00)"};
  19. {_inv}.Inventory.setExecutor{3, "player"};
  20. {_inv}.Inventory.setCommand{3, "buyeff 3"};
  21. {_inv}.Inventory.setCancelled{3, true};
  22. {_inv}.Inventory.setClosed{3, true};
  23. {_inv}.Inventory.setItem{4, water bottle named "&bRegeneration"};
  24. {_inv}.Inventory.setLore{4, "32 diamenty (00:10)"};
  25. {_inv}.Inventory.setExecutor{4, "player"};
  26. {_inv}.Inventory.setCommand{4, "buyeff 4"};
  27. {_inv}.Inventory.setCancelled{4, true};
  28. {_inv}.Inventory.setClosed{4, true};
  29. {_inv}.Inventory.setItem{5, water bottle named "&bJump Boost 2"};
  30. {_inv}.Inventory.setLore{5, "32 diamenty (00:30)"};
  31. {_inv}.Inventory.setExecutor{5, "player"};
  32. {_inv}.Inventory.setCommand{5, "buyeff 5"};
  33. {_inv}.Inventory.setCancelled{5, true};
  34. {_inv}.Inventory.setClosed{5, true};
  35.  
  36.  
  37. command /efekty:
  38. trigger:
  39. set {_inv} to "&6Efekty"
  40. {_inv}.Inventory.display{player};
  41.  
  42. command /buyeff [<number>]:
  43. trigger:
  44. if arg 1 is 1:
  45. set {_diax} to number of diamonds in player's inventory
  46. if {_diax} >= 64:
  47. remove 64 diamonds from player
  48. apply strength 2 to player for 1 minute
  49. display "&aKupiles miksture &bStrength 2 &ana &e01:00&a!" on bossbar with 100 percent by 3 seconds for player
  50. else:
  51. display "&cNie masz 64 diamentow!" on bossbar with 100 percent by 3 seconds for player
  52. else if arg 1 is 2:
  53. set {_diax} to number of diamonds in player's inventory
  54. if {_diax} >= 32:
  55. remove 32 diamonds from player
  56. apply speed to player for 1 minute
  57. display "&aKupiles miksture &bSpeed &ana &e01:00&a!" on bossbar with 100 percent by 3 seconds for player
  58. else:
  59. display "&cNie masz 32 diamentow!" on bossbar with 100 percent by 3 seconds for player
  60. else if arg 1 is 3:
  61. set {_diax} to number of diamonds in player's inventory
  62. if {_diax} >= 64:
  63. remove 64 diamonds from player
  64. apply fire resistance to player for 2 minutes
  65. display "&aKupiles miksture &bFire Resistance &ana &e02:00&a!" on bossbar with 100 percent by 3 seconds for player
  66. else:
  67. display "&cNie masz 64 diamentow!" on bossbar with 100 percent by 3 seconds for player
  68. else if arg 1 is 4:
  69. set {_diax} to number of diamonds in player's inventory
  70. if {_diax} >= 32:
  71. remove 32 diamonds from player
  72. apply regeneration to player for 10 seconds
  73. display "&aKupiles miksture &bRegeneration &ana &e00:10&a!" on bossbar with 100 percent by 3 seconds for player
  74. else:
  75. display "&cNie masz 32 diamentow!" on bossbar with 100 percent by 3 seconds for player
  76. else if arg 1 is 5:
  77. set {_diax} to number of diamonds in player's inventory
  78. if {_diax} >= 32:
  79. remove 32 diamonds from player
  80. apply jump boost 2 to player for 30 seconds
  81. display "&aKupiles miksture &bJump Boost 2 &ana &e00:30&a!" on bossbar with 100 percent by 3 seconds for player
  82. else:
  83. display "&cNie masz 32 diamentow!" on bossbar with 100 percent by 3 seconds for player
Advertisement
Add Comment
Please, Sign In to add comment