Guest User

BounceBall v1.1 by boleknowak

a guest
Feb 10th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. aliases:
  2. zoltawelna = 35:4
  3. czerwonawelna = 35:14
  4. niebieskawelna = 35:11
  5. options:
  6. tag: &8[&3BounceBall&8]
  7. command /bb [<text>] [<text>]:
  8. aliases: bounce, ball, bounceball, bounceball:help
  9. trigger:
  10. if arg 1 is not set:
  11. send "&2&m----------------------------------------------------"
  12. send "&b BounceBall"
  13. send "&7- &e/bb create [arena_name] &7- Tworzy arene"
  14. send "&7- &e/bb delete [arena_name] &7- Usuwa arene"
  15. send "&7- &e/bb setlobby [arena_name] &7- Ustawia lobby na arenie"
  16. send "&7- &e/bb setmainlobby &7- Ustawia glowne lobby gry"
  17. send "&7- &e/bb join [arena_name] &7- Dolacza do areny"
  18. send "&7- &e/bb leave &7- Wychodzi z areny"
  19. send "&7- &e/bb reload &7- Przeladowywuje skrypt"
  20. send "&7- &e/bb shop &7- Sklepik"
  21. send "&7- &e/bb stats &7- Statystyki"
  22. send "&7- &e/bb music &7- Wlacza/Wylacza muzyke"
  23. send "&7- &e/bb lvl &7- Pokazuje poziomy do zdobycia/zdobyte"
  24. send "&b by boleknowak"
  25. send "&2&m----------------------------------------------------"
  26. if arg 1 is "reload":
  27. send "{@tag} &7Przeladowywanie...."
  28. execute player command "sk reload %script%"
  29. send "{@tag} &7Przeladowano!"
  30. if arg 1 is "shop":
  31. send "{@tag} &cJuz wkrotce!"
  32. if arg 1 is "stats":
  33. send "{@tag} &cJuz wkrotce!"
  34. if arg 1 is "music":
  35. send "{@tag} &cJuz wkrotce!"
  36. if arg 1 is "lvl":
  37. send "{@tag} &cJuz wkrotce!"
  38. if arg 1 is "create":
  39. if arg 2 is set:
  40. if player has permission "bounceball.create":
  41. if {bounceball::arena::%arg 2%} is true:
  42. send "{@tag} &cTaka arena juz istnieje!"
  43. else:
  44. send "{@tag} &aUtworzyles arene &3%arg 2%&a!"
  45. set {bounceball::arena::%arg 2%} to true
  46. else:
  47. send "{@tag} &cNie masz do tego uprawnien!"
  48. if arg 2 is not set:
  49. send "{@tag} &cMusisz podac nazwe areny!"
  50. if arg 1 is "delete":
  51. if arg 2 is set:
  52. if player has permission "bounceball.delete":
  53. if {bounceball::arena::%arg 2%} is true:
  54. send "{@tag} &aPomyslnie usuneles arene &3%arg 2%&a!"
  55. delete {bounceball::arena::%arg 2%}
  56. set {bounceball::arena::%arg 2%} to false
  57. else:
  58. send "{@tag} &cTaka arena nie istnieje!"
  59. else:
  60. send "{@tag} &cNie masz do tego uprawnien!"
  61. if arg 2 is not set:
  62. send "{@tag} &cMusisz podac nazwe areny!"
  63. if arg 1 is "join":
  64. if arg 2 is set:
  65. if player has permission "bounceball.join":
  66. if {bounceball::arena::%arg 2%} is true:
  67. if {bounceball::%player%::state} is true:
  68. send "{@tag} &cJestes juz w grze!"
  69. else:
  70. send "{@tag} &aDolaczyles do areny &3%arg 2%&a!"
  71. teleport player to {bounceball::arena::%arg 2%::lobby}
  72. set {bounceball::%player%::state} to true
  73. else:
  74. send "{@tag} &cTaka arena nie istnieje!"
  75. else:
  76. send "{@tag} &cNie masz do tego uprawnien!"
  77. if arg 2 is not set:
  78. send "{@tag} &cMusisz podac nazwe areny!"
  79. if arg 1 is "leave":
  80. if player has permission "bounceball.leave":
  81. if {bounceball::%player%::state} is true:
  82. send "{@tag} &eOpusciles arene!"
  83. set {bounceball::%player%::state} to false
  84. teleport player to {bounceball::lobby}
  85. else:
  86. send "{@tag} &cAktualnie nie znajdujesz sie na zadnej arenie!"
  87. else:
  88. send "{@tag} &cNie masz do tego uprawnien!"
  89. if arg 1 is "setmainlobby":
  90. if player has permission "bounceball.setmainlobby":
  91. set {bounceball::lobby} to location of player
  92. send "{@tag} &aUstawiles glowne lobby!"
  93. else:
  94. send "{@tag} &cNie masz do tego uprawnien!"
  95. if arg 1 is "setlobby":
  96. if arg 2 is set:
  97. if player has permission "bounceball.setlobby":
  98. if {bounceball::arena::%arg 2%} is true:
  99. send "{@tag} &aUstawiles lobby dla areny &3%arg 2%&a!"
  100. set {bounceball::arena::%arg 2%::lobby} to location of player
  101. else:
  102. send "{@tag} &cTaka arena nie istnieje!"
  103. else:
  104. send "{@tag} &cNie masz do tego uprawnien!"
  105. if arg 2 is not set:
  106. send "{@tag} &cMusisz podac nazwe areny!"
  107. every 1.2 seconds:
  108. loop all players:
  109. if {bounceball::%loop-player%::state} is true:
  110. push loop-player upwards with speed 1
  111. on walking on zoltawelna:
  112. if {bounceball::%player%::state} is true:
  113. teleport player to {bounceball::lobby}
  114. send ""
  115. send ""
  116. send "{@tag} &aGratulacje! Zdobyles gwiazdke! Wygrales!"
  117. send ""
  118. send ""
  119. set {bounceball::%player%::state} to false
  120. on walking on czerwonawelna:
  121. if {bounceball::%player%::state} is true:
  122. teleport player to {bounceball::lobby}
  123. send ""
  124. send ""
  125. send "{@tag} &cNiestety! Trafiles na przeszkode. Przegrales!"
  126. send ""
  127. send ""
  128. set {bounceball::%player%::state} to false
  129. on walking on niebieskawelna:
  130. if {bounceball::%player%::state} is true:
  131. push player upwards with speed 1.2
Advertisement
Add Comment
Please, Sign In to add comment