Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On Script Load:
- set {_inv} to "&6Efekty"
- new Inventory {_inv}
- {_inv}.Inventory.setRow{1};
- {_inv}.Inventory.setItem{1, water bottle named "&bStrength 2"};
- {_inv}.Inventory.setLore{1, "64 diamenty (01:00)"};
- {_inv}.Inventory.setExecutor{1, "player"};
- {_inv}.Inventory.setCommand{1, "buyeff 1"};
- {_inv}.Inventory.setCancelled{1, true};
- {_inv}.Inventory.setClosed{1, true};
- {_inv}.Inventory.setItem{2, water bottle named "&bSpeed"};
- {_inv}.Inventory.setLore{2, "32 diamenty (01:00)"};
- {_inv}.Inventory.setExecutor{2, "player"};
- {_inv}.Inventory.setCommand{2, "buyeff 2"};
- {_inv}.Inventory.setCancelled{2, true};
- {_inv}.Inventory.setClosed{2, true};
- {_inv}.Inventory.setItem{3, water bottle named "&bFire Resistance"};
- {_inv}.Inventory.setLore{3, "64 diamenty (02:00)"};
- {_inv}.Inventory.setExecutor{3, "player"};
- {_inv}.Inventory.setCommand{3, "buyeff 3"};
- {_inv}.Inventory.setCancelled{3, true};
- {_inv}.Inventory.setClosed{3, true};
- {_inv}.Inventory.setItem{4, water bottle named "&bRegeneration"};
- {_inv}.Inventory.setLore{4, "32 diamenty (00:10)"};
- {_inv}.Inventory.setExecutor{4, "player"};
- {_inv}.Inventory.setCommand{4, "buyeff 4"};
- {_inv}.Inventory.setCancelled{4, true};
- {_inv}.Inventory.setClosed{4, true};
- {_inv}.Inventory.setItem{5, water bottle named "&bJump Boost 2"};
- {_inv}.Inventory.setLore{5, "32 diamenty (00:30)"};
- {_inv}.Inventory.setExecutor{5, "player"};
- {_inv}.Inventory.setCommand{5, "buyeff 5"};
- {_inv}.Inventory.setCancelled{5, true};
- {_inv}.Inventory.setClosed{5, true};
- command /efekty:
- trigger:
- set {_inv} to "&6Efekty"
- {_inv}.Inventory.display{player};
- command /buyeff [<number>]:
- trigger:
- if arg 1 is 1:
- set {_diax} to number of diamonds in player's inventory
- if {_diax} >= 64:
- remove 64 diamonds from player
- apply strength 2 to player for 1 minute
- display "&aKupiles miksture &bStrength 2 &ana &e01:00&a!" on bossbar with 100 percent by 3 seconds for player
- else:
- display "&cNie masz 64 diamentow!" on bossbar with 100 percent by 3 seconds for player
- else if arg 1 is 2:
- set {_diax} to number of diamonds in player's inventory
- if {_diax} >= 32:
- remove 32 diamonds from player
- apply speed to player for 1 minute
- display "&aKupiles miksture &bSpeed &ana &e01:00&a!" on bossbar with 100 percent by 3 seconds for player
- else:
- display "&cNie masz 32 diamentow!" on bossbar with 100 percent by 3 seconds for player
- else if arg 1 is 3:
- set {_diax} to number of diamonds in player's inventory
- if {_diax} >= 64:
- remove 64 diamonds from player
- apply fire resistance to player for 2 minutes
- display "&aKupiles miksture &bFire Resistance &ana &e02:00&a!" on bossbar with 100 percent by 3 seconds for player
- else:
- display "&cNie masz 64 diamentow!" on bossbar with 100 percent by 3 seconds for player
- else if arg 1 is 4:
- set {_diax} to number of diamonds in player's inventory
- if {_diax} >= 32:
- remove 32 diamonds from player
- apply regeneration to player for 10 seconds
- display "&aKupiles miksture &bRegeneration &ana &e00:10&a!" on bossbar with 100 percent by 3 seconds for player
- else:
- display "&cNie masz 32 diamentow!" on bossbar with 100 percent by 3 seconds for player
- else if arg 1 is 5:
- set {_diax} to number of diamonds in player's inventory
- if {_diax} >= 32:
- remove 32 diamonds from player
- apply jump boost 2 to player for 30 seconds
- display "&aKupiles miksture &bJump Boost 2 &ana &e00:30&a!" on bossbar with 100 percent by 3 seconds for player
- else:
- display "&cNie masz 32 diamentow!" on bossbar with 100 percent by 3 seconds for player
Advertisement
Add Comment
Please, Sign In to add comment