Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /vote:
- trigger:
- set {event::timer} to {eventtime}
- remove 4 hours from {event::timer}
- create new gui with id "vote" with virtual chest named " &7>=&aVOTING&7=<" with 3 rows:
- open gui with id "vote" to player
- loop integers between 0 and 26:
- format gui slot loop-integer of player with gray glass pane named "&r"
- format gui slot 4 of player with end crystal named "&3&lNext event at %{event::timer}% EST"
- format gui slot 9 of player with coal named "&2&lLoot chest" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::loot}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 11 of player with redstone named "&6&lEveryone gets 5 coin+" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::coin+}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 13 of player with iron ingot named "&b&lEveryone gets $1200" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::1200}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 15 of player with emerald named "&2&l30m Speedbooster" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::speed}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 17 of player with diamond named "&9&l60m Strengthbooster" to run:
- if {%player's uuid%::hasvoted} is not set:
- add 1 to {vote::strength}
- set {%player's uuid%::hasvoted} to true
- else:
- send "&aYou have already voted for the next event"
- format gui slot 22 of player with barrier named "&c&lClose" to close
- every 10 seconds in world "world":
- set {_1} to -1
- set {_2} to -1
- set {_3} to -1
- set {_4} to -1
- set {_5} to -1
- set {_1} to {vote::strength}
- set {_1th} to "60m Strength Booster"
- if {vote::speed} is more than {_1}:
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::speed}
- set {_1th} to "30m Speed Booster"
- else if {vote::speed} is more than {_2}:
- set {_2} to {vote::speed}
- set {_2th} to "30m Speed Booster"
- if {vote::1200} is more than {_1}:
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::1200}
- set {_1th} to "$1200"
- else if {vote::1200} is more than {_2}:
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {vote::1200}
- set {_2th} to "$1200"
- else if {vote::1200} is more than {_3}:
- set {_3} to {vote::1200}
- set {_3th} to "$1200"
- if {vote::coin+} is more than {_1}:
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::coin+}
- set {_1th} to "5 coin+"
- else if {vote::coin+} is more than {_2}:
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {vote::coin+}
- set {_2th} to "5 coin+"
- else if {vote::coin+} is more than {_3}:
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {vote::coin+}
- set {_3th} to "5 coin+"
- else if {vote::coin+} is more than {_4}:
- set {_4} to {vote::coin+}
- set {_4th} to "5 coin+"
- if {vote::loot} is more than {_1}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {_1}
- set {_2th} to {_1th}
- set {_1} to {vote::loot}
- set {_1th} to "Loot Chest"
- else if {vote::loot} is more than {_2}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {_2}
- set {_3th} to {_2th}
- set {_2} to {vote::loot}
- set {_2th} to "Loot Chest"
- else if {vote::loot} is more than {_3}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {_3}
- set {_4th} to {_3th}
- set {_3} to {vote::loot}
- set {_3th} to "Loot Chest"
- else if {vote::loot} is more than {_4}:
- set {_5} to {_4}
- set {_5th} to {_4th}
- set {_4} to {vote::loot}
- set {_4th} to "Loot Chest"
- else if {vote::loot} is more than {_5}:
- set {_5} to {vote::loot}
- set {_5th} to "Loot Chest"
- broadcast ""
- broadcast "&b&lSky&f&lEscape &b&lThe votes for the past 3 hours are:"
- broadcast "&7%{_1th}% &bwith %{_1}% votes"
- broadcast "&7%{_2th}% &bwith %{_2}% votes"
- broadcast "&7%{_3th}% &bwith %{_3}% votes"
- broadcast "&7%{_4th}% &bwith %{_4}% votes"
- broadcast "&7%{_5th}% &bwith %{_5}% votes"
- broadcast ""
- set {vote::loot} to 0
- set {vote::coin+} to 0
- set {vote::1200} to 0
- set {vote::speed} to 0
- set {vote::strength} to 0
- if {_1th} is "Loot Chest":
- set {_thing} to a random integer between 1 and 5
- if {_thing} is 1:
- set block at location at -608, 63, 1380 in world "world" to chest
- set {chest} to "-607.5, 63.5, 1380.5"
- broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-608, 63, 1380"
- if {_thing} is 2:
- set block at location at -711, 63, 1395 in world "world" to chest
- set {chest} to "-710.5, 63.5, 1395.5"
- broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-711, 63, 1395"
- if {_thing} is 3:
- set block at location at -695, 63, 1333 in world "world" to chest
- set {chest} to "-694.5, 63.5, 1333.5"
- broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-695, 63, 1333"
- if {_thing} is 4:
- set block at location at -766, 59, 1380 in world "world" to chest
- set {chest} to "-765.5, 59.5, 1380.5"
- broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-765, 59, 1380"
- if {_thing} is 5:
- set block at location at -766, 59, 1380 in world "world" to chest
- set {chest} to "-765.5, 59.5, 1380.5"
- broadcast "&aA loot chest has spawned! Get it fast for good loot, coords are: &4-765, 59, 1380"
- if {_1th} is "5 coin+":
- loop all players:
- give loop-player 5 sunflower named "&6&lCoin +"
- if {_1th} is "$1200":
- loop all players:
- add 1200 to loop-player's balance
- if {_1th} is "30m Speed Booster":
- set {speedbooster} to 3
- if {_1th} is "60m Strength Booster":
- wait 1 seconds
- set {strengthbooster} to 5
- broadcast "&b5x Strength Booster enabled for 60 minutes"
- wait 60 minutes
- delete {strengthbooster}
- loop {players::*}:
- delete {%loop-value%::hasvoted}
- on skript load:
- set {eventtime} to 3 hours from now
- on right click on chest:
- cancel event
- set {_coords} to event-block's location
- set {_coords} to "%{_coords}%"
- replace all "x: " with "" in {_coords}
- replace all "y: " with "" in {_coords}
- replace all "z: " with "" in {_coords}
- send "%{chest}%"
- send "%{_coords}%"
- if {_coords} is the same as {chest}:
- if {loot::opened} is not set:
- create new gui with id "loot" with virtual chest named " >=LOOT CHEST=<"
- open gui with id "loot" to player
- loop all integers from 1 to 27:
- format gui slot loop-integer of player with air
- set {_test} to stone sword named "&3Prisoner Sword"
- enchant {_test} with sharpness 2
- enchant {_test} with unbreaking 1
- set {_helmet} to leather helmet named "&aPrisoner+ Helmet"
- enchant {_helmet} with protection 1
- enchant {_helmet} with unbreaking 1
- set {_chestplate} to leather chestplate named "&aPrisoner+ Chestplate"
- enchant {_chestplate} with protection 1
- enchant {_chestplate} with unbreaking 1
- set {_legs} to leather leggings named "&aPrisoner+ Leggings"
- enchant {_legs} with protection 1
- enchant {_legs} with unbreaking 1
- set {_boots} to leather boots named "&aPrisoner+ Boots"
- enchant {_boots} with protection 1
- enchant {_boots} with unbreaking 1
- set {_number} to a random integer between 1 and 5
- format gui slot {_number} of player with {_test} to run:
- give player {_test}
- format gui slot {_number} of player with air
- set {_number2} to a random integer between 6 and 19
- format gui slot {_number2} of player with {_chestplate} to run:
- give player {_chestplate}
- format gui slot {_number2} of player with air
- set {_number3} to {_number2} + 2
- format gui slot {_number3} of player with {_boots} to run:
- give player {_boots}
- format gui slot {_number3} of player with air
- set {_number4} to {_number3} + 3
- format gui slot {_number4} of player with {_legs} to run:
- give player {_legs}
- format gui slot {_number4} of player with air
- set {_number5} to a random integer between -2 and 3
- if {_number5} is 0:
- set {_number5} to -1
- set {_number6} to {_number4} + {_number5}
- format gui slot {_number6} of player with {_helmet} to run:
- give player {_helmet}
- format gui slot {_number6} of player with air
- set {_number7} to random integer between 1 and 27
- if {_number7} is not {_number}:
- if {_number7} is not {_number2}:
- if {_number7} is not {_number3}:
- if {_number7} is not {_number4}:
- if {_number7} is not {_number6}:
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- else:
- add 1 to {_number7}
- if {_number7} is not {_number6}:
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- else:
- add 1 to {_number6}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- else:
- add 1 to {_number7}
- format gui slot {_number7} of player with 5 sunflower named "&6&lCoin" to run:
- give player 5 sunflower named "&6&lCoin"
- format gui slot {_number7} of player with air
- set {loot::opened} to true
- wait 30 seconds
- set event-block to air
- delete {loot::opened}
- else:
- send "This loot chest has already been opened!"
- on join:
- loop {players::*}:
- if loop-value is player's uuid:
- set {hasjoined::%player's uuid%} to true
- if {hasjoined::%player's uuid%} is not set:
- add player's uuid to {players::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement