1c7

here _c02

1c7
Jan 7th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.40 KB | None | 0 0
  1. # game.sk
  2. command /debug:
  3. permission: admin.only
  4. trigger:
  5. teleport {ingame::*} to spawn
  6. set {queue.1} to false
  7. set {queue.2} to false
  8. delete {1::player's uuid}
  9. delete {2::player's uuid}
  10. delete {1::player}
  11. delete {2::player}
  12. clear {ingame::*}
  13. send "done"
  14. command /queue:
  15. trigger:
  16. if {queue.1} is false:
  17. set {queue.1} to true
  18. set {1::player's uuid} to player's uuid
  19. set {1::player} to player
  20. add player to {ingame::*}
  21. send "&b&lGAME &7You are now in the queue [1/2]"
  22. else if {queue.1} is true:
  23. if {queue.2} is false:
  24. set {queue.2} to true
  25. set {2::player's uuid} to player's uuid
  26. set {2::player} to player
  27. add player to {ingame::*}
  28. send "&b&lGAME &7You are now in the queue [2/2]"
  29. console command "game::start"
  30. else if {queue.1} is true:
  31. if {queue.2} is true:
  32. send "&b&lGAME &7The game is full!"
  33. command /game::start:
  34. executable by: console
  35. trigger:
  36. broadcast "&b&lGAME &7Game Starting..."
  37. teleport {1::player} to {loc1}
  38. teleport {2::player} to {loc2}
  39. equip {1::player} with unbreakable iron boots
  40. equip {2::player} with unbreakable iron boots
  41. equip {1::player} with unbreakable iron leggings
  42. equip {2::player} with unbreakable iron leggings
  43. equip {1::player} with unbreakable iron chestplate
  44. equip {2::player} with unbreakable iron chestplate
  45. equip {1::player} with unbreakable iron helmet
  46. equip {2::player} with unbreakable iron helmet
  47. give 1 diamond sword to {1::player}
  48. give 1 diamond sword to {2::player}
  49. on death:
  50. if {ingame::*} contains attacker:
  51. if {ingame::*} contains victim:
  52. broadcast "&b&lDUELSGG &6%attacker% &7has won against &6%victim%&7."
  53. add 1 to {stats::won::%attacker's uuid%}
  54. add 5 to {coins::%attacker's uuid%}
  55. add 1 to {stats::lost::%victim's uuid%}
  56. add 1 to {stats::played::%attacker's uuid%}
  57. add 1 to {stats::played::%victim's uuid%}
  58. force the victim to respawn
  59. teleport victim to {spawn}
  60. teleport attacker to {spawn}
  61. set {queue.1} to false
  62. set {queue.2} to false
  63. delete {1::player's uuid}
  64. delete {2::player's uuid}
  65. delete {1::player}
  66. delete {2::player}
  67. clear {ingame::*}
  68.  
  69.  
  70. # core
  71.  
  72. every second:
  73. add 1 to {sec}
  74. if {sec} is 60:
  75. set {sec} to 0
  76. add 1 to {min}
  77. if {min} is 60:
  78. set {min} to 0
  79. add 1 to {hour}
  80. if {hour} is 24:
  81. add 1 to {day}
  82. loop all players:
  83. set loop-player's tablist name to the displayname of loop-player
  84. wipe loop-player's sidebar
  85. set name of sidebar of loop-player to "&b&lDUELSGG"
  86. set score "&c" in sidebar of loop-player to 6
  87. set score "&6Online: &9%number of all players%" in sidebar of loop-player to 5
  88. set score "&b/stats" in sidebar of loop-player to 4
  89. set score "&6Coins: &9%{coins::%loop-player's uuid%}%" in sidebar of loop-player to 3
  90. set score "&a" in sidebar of loop-player to 2
  91. set score "&7officialgame.ga" in sidebar of loop-player to 1
  92. every second:
  93. loop all players:
  94. if {stats::played::%loop-player's uuid%} is not set:
  95. set {stats::played::%loop-player's uuid%} to 0
  96. if {stats::won::%loop-player's uuid%} is not set:
  97. set {stats::won::%loop-player's uuid%} to 0
  98. if {stats::lost::%loop-player's uuid%} is not set:
  99. set {stats::lost::%loop-player's uuid%} to 0
  100. on skript load:
  101. set {sec} to 0
  102. set {min} to 0
  103. set {hour} to 0
  104. on first join:
  105. add 1 to {joins}
  106. add player's uuid to {joins::*}
  107. wait 2 ticks
  108. send "&bWelcome to DEULSGG, by Kingdoms.gg"
  109. broadcast "&b[+] %player% &e[##%{joins}%]"
  110. on join:
  111. if {joins::*} does not contain player's uuid:
  112. add player's uuid to {joins::*}
  113. send "&bWelcome to DUELSGG, by Kingdoms.gg"
  114. broadcast "&b[+] %player%"
  115. teleport player to {spawn}
  116. command /help:
  117. trigger:
  118. send "&b&lDUELSGG - Help"
  119. send "&e/stats [<player>] &7See your or another player's duel stats."
  120. send "&e/info &7See the servers info."
  121. command /stats [<offline player>]:
  122. trigger:
  123. if arg-1 is not set:
  124. send "&b&LDUELSGG - Your Stats"
  125. send "&eGames Played: &7%{stats::played::%player's uuid%}%"
  126. send "&eGames Won: &7%{stats::won::%player's uuid%}%"
  127. send "&eGames Lost: &7%{stats::lost::%player's uuid%}%"
  128. else if arg-1 is set:
  129. if {joins::*} does not contain player's uuid:
  130. send "&b&LDUELSGG &7That player has not joined before!"
  131. else:
  132. send "&b&LDUELSGG - %arg-1%'s Stats"
  133. send "&eGames Played: &7%{stats::played::%arg-1's uuid%}%"
  134. send "&eGames Won: &7%{stats::won::%arg-1's uuid%}%"
  135. send "&eGames Lost: &7%{stats::lost::%arg-1's uuid%}%"
  136. command /info:
  137. trigger:
  138. send "&b&lDUELSGG - Server Info"
  139. send "&eVersion: &7%{server::version}%"
  140. if {day} is greater than 0:
  141. send "&eUptime: &7%{sec}% seconds, %{min}% minutes, %{hour}% hours, %{day}% days."
  142. else:
  143. send "&eUptime: &7%{sec}% seconds, %{min}% minutes, %{hour}% hours."
  144. command /admin [<text>] [<text>]:
  145. permission: admin.main
  146. permission message: &cNo Perm.
  147. trigger:
  148. if arg-1 is not set:
  149. send "&b&lDUELSGG &7You can use ""/admin help"" for commands"
  150. else if arg-1 is "help":
  151. send "&b&lDUELSGG - Admin Commands"
  152. send "&b/admin setversion <version>"
  153. send "&b/admin setspawn"
  154. else if arg-1 is "setversion":
  155. if arg-2 is set:
  156. set {server::version} to arg-2
  157. send "&b&lDUELSGG &7New version has beeen set."
  158. else:
  159. send "&b&lDUELSGG - 7Enter a new version."
  160. else if arg-1 is "setspawn":
  161. set {spawn} to location of player
  162. send "&b&lDUELSGG &7New spawn has beeen set."
  163. on chat:
  164. cancel event
  165. broadcast "&3[%{coins::%player's uuid%}%] &f%displayname of player%&7: %message%"
  166. command /spawn:
  167. trigger:
  168. teleport player to {spawn}
  169. send "&b&lDUELSGG &7Teleporting to spawn."
  170. command /suggest [<text>]:
  171. trigger:
  172. if arg-1 is not set:
  173. send "&b&lDUELSGG &7Please enter your suggestion!"
  174. else:
  175. add " - &9%player% &6| &f%arg-1% - " to {suggestions::*}
  176. send "&b&lDUELSGG &7Added!"
  177. command /suggestions [<text>]:
  178. permission: s.clear
  179. permission message: &cNo perm.
  180. trigger:
  181. if arg-1 is not set:
  182. send "%{suggestions::*}%"
  183. else if arg-1 is "clear":
  184. clear {suggestions::*}
  185. command /staffchat [<text>]:
  186. permission: staff.chat
  187. permission message: &cNo perm.
  188. aliases: sc
  189. trigger:
  190. if arg-1 is not set:
  191. send "&b&lDUELSGG &7Please enter your message!"
  192. else:
  193. loop all players:
  194. if loop-player has the permission "staff.chat":
  195. send "&c&l[SC] %displayname of executor%: &f%arg-1%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment