Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1.  
  2. function votepartystart():
  3. if cooldown "voteparty" is finish:
  4. broadcast "&b&l(!) &a&lVOTEPARTY ACTIVATED!"
  5. broadcast " &fWithin the next &e9m59s &fthere is:"
  6. broadcast " &e* 2x sell multiplier"
  7. set {sellbooster} to 2
  8. create cooldown "voteparty" for 9 minutes and 59 seconds
  9. if {votepartybooster} is "0s":
  10. set {sellbooster} to 1
  11.  
  12. function voteparty() :: text:
  13. set {_cooldown} to "%cooldown ""voteparty""%" parsed as a timespan
  14. set {votepartytimer} to roundedTimespan({_cooldown})
  15. set {votepartybooster} to parse("%{votepartytimer}%")
  16. return "%{votepartybooster}%"
  17.  
  18.  
  19.  
  20.  
  21.  
  22. function deleteBoard(p: player):
  23. delete stylish scoreboard "P-%{_p}%"
  24.  
  25.  
  26.  
  27.  
  28. on join:
  29. player is online
  30. deleteBoard(player)
  31. loop 999999999 times:
  32. player is offline:
  33. stop
  34. if stylish scoreboard "P-%player%" does not exist:
  35. create new stylish scoreboard named "P-%player%"
  36. loop 11 times:
  37. create a new id based score "%player%Slot%loop-value-2%" with text "ยง%loop-number-2%" slot loop-value-2 for stylish scoreboard "P-%player%"
  38.  
  39. set title of stylish scoreboard "P-%player%" to "&f&l&nLoL&b&l&nMC"
  40. set the text of id "%player%Slot11" to "&7&e&1"
  41. set the text of id "%player%Slot10" to "&a&lBank Account"
  42. set the text of id "%player%Slot9" to "&a&l> &f$%{money::%player%}%"
  43. set the text of id "%player%Slot8" to "&r&a"
  44. set the text of id "%player%Slot7" to "&c&lIsland Stats"
  45. set the text of id "%player%Slot6" to "&c&l> &cLevel &f%asb player's island level%"
  46. if {sellbooster} is not 1:
  47. set the text of id "%player%Slot5" to "&9&b&1"
  48. set the text of id "%player%Slot4" to "&e&l/Vote Party &a&lLIVE"
  49. set the text of id "%player%Slot3" to "&e&l> &f%voteparty()% left"
  50. set the text of id "%player%Slot2" to "&e&l> &f%{voteparty}% / 10"
  51. set the text of id "%player%Slot1" to "&e&d&a"
  52. set stylish scoreboard of player to "P-%player%"
  53. else:
  54. set the text of id "%player%Slot5" to "&8&d&a"
  55. set the text of id "%player%Slot4" to "&8&d&a"
  56. set the text of id "%player%Slot3" to "&e&l/Vote Party"
  57. set the text of id "%player%Slot2" to "&e&l> &f%{voteparty}% / 10"
  58. set the text of id "%player%Slot1" to "&e&d&a"
  59. set stylish scoreboard of player to "P-%player%"
  60. wait 10 ticks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement