Advertisement
dai_pon

Untitled

May 18th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.08 KB | None | 0 0
  1. variables:
  2. {joinbonus} = 50
  3. {escapebonus} = 500
  4.  
  5.  
  6. command /start:
  7. executable by: console
  8. trigger:
  9. loop all players:
  10. if {ready.%loop-player%} is 1:
  11. execute console command "scoreboard players set %loop-player% human 1"
  12. execute console command "scoreboard teams join human %loop-player%"
  13. set {game.%loop-player%} to 1
  14. set {score1.%loop-player%} to 0
  15. set {score2.%loop-player%} to 0
  16. set {score3.%loop-player%} to 0
  17. set {score5.%loop-player%} to 0
  18. set {ready.%loop-player%} to 0
  19. else:
  20. set {join.%loop-player%} to 0
  21. wait 4 seconds
  22. loop all players:
  23. if {game.%loop-player%} is 1:
  24. loop {bullet.%loop-player%} times:
  25. give 1 gold_nugget named "&eAmmo" to the loop-player
  26.  
  27.  
  28. on death:
  29. victim is a player:
  30. attacker is a player:
  31. add 20 to {exp.%attacker%}
  32. send "&9》 &6PlayerKillBonus &e&l《&e30円 &7& &d20EXP&e&l》" to attacker
  33. add 30 to {money.%attacker%}
  34. add 1 to {kill.%attacker%}
  35. execute console command "effect %attacker% 6 10 10"
  36.  
  37. command /end:
  38. executable by: console
  39. trigger:
  40. loop all players:
  41. if {game.%loop-player%} is 1:
  42. set {score1.%loop-player%} to 0
  43. set {score2.%loop-player%} to 0
  44. set {score3.%loop-player%} to 0
  45. set {score5.%loop-player%} to 0
  46. set {game.%loop-player%} to 0
  47. if {game.%loop-player%} is 2:
  48. set {score1.%loop-player%} to 0
  49. set {score2.%loop-player%} to 0
  50. set {score3.%loop-player%} to 0
  51. set {score5.%loop-player%} to 0
  52. set {game.%loop-player%} to 0
  53.  
  54.  
  55. on damage:
  56. victim is a player:
  57. attacker is a player:
  58. if {game.%attacker%} is 2:
  59. add 25 to {score2.%attacker%}
  60.  
  61. on damage:
  62. victim is a player:
  63. if {game.%victim%} is 2:
  64. if victim's health - final damage is less than or equal to 3:
  65. execute console command "gamemode 3 %victim%"
  66. show a title from "&d&l再生中....." and subtitle "&6&l5秒後に復活します。" to victim for 5 seconds and 10 ticks fade in and 15 ticks fadeout
  67. execute console command "scoreboard players tag %victim% add restart"
  68. execute console command "effect %victim% 12 100000 10"
  69. execute console command "effect %victim% 10 3 50"
  70. broadcast "&4&lDead &6&l》&a%victim%"
  71. execute console command "title %victim% times 20 100 20"
  72. execute console command "effect %victim% 15 6 10"
  73. wait 5 seconds
  74. execute console command "gamemode 2 %victim%"
  75. execute console command "scoreboard players tag %victim% add zombiedeath"
  76.  
  77.  
  78.  
  79.  
  80. on damage:
  81. victim is a player:
  82. if victim's health - final damage is less than or equal to 9:
  83. if {game.%victim%} is 1:
  84. set {game.%victim%} to 2
  85. show a title from "&2&lあなたは感染しました!" and subtitle "&6&l人間共を感染させろ...!" to victim for 5 seconds and 10 ticks fade in and 15 ticks fadeout
  86. execute console command "scoreboard players set %victim% zombie 1"
  87. execute console command "scoreboard players set %victim% human 0"
  88. execute console command "scoreboard teams leave human %victim%"
  89. execute console command "scoreboard teams join zombie %victim%"
  90. execute console command "nte player %victim% prefix &c-*Zombie*-"
  91. execute console command "clear %victim%"
  92. execute console command "effect %victim% 15 5 1"
  93. execute console command "effect %victim% 2 5 100"
  94. execute console command "effect %victim% 18 5 100"
  95. execute console command "scoreboard players set %victim% damage 0"
  96. execute console command "scoreboard players tag %victim% add zombie"
  97. broadcast "&9&lInfected &c&l》&4&l☣ &l》&a%victim%"
  98.  
  99.  
  100. command /hoge <player> <number>:
  101. permission: sk.hoge
  102. trigger:
  103. if number-arg is not number:
  104. send "&c/hoge <player> <number>" to player
  105. if player-arg is not player:
  106. send "&c/hoge <player> <number>" to player
  107. else:
  108. set {_player2} to arg-1
  109. add number-arg to {score3.%{_player2}%}
  110.  
  111. command /level <player> <number>:
  112. permission: sk.level
  113. trigger:
  114. if number-arg is not number:
  115. send "&c/hoge <player> <number>" to player
  116. if player-arg is not player:
  117. send "&c/hoge <player> <number>" to player
  118. else:
  119. set {_player3} to arg-1
  120. set {level.%{_player3}%} to number-arg
  121. send "&9》 &eレベルを&e&l%{level.%player%}%&eにセット。"
  122.  
  123. command /money <player> <number>:
  124. permission: sk.money
  125. trigger:
  126. if number-arg is not number:
  127. send "&c/hoge <player> <number>" to player
  128. if player-arg is not player:
  129. send "&c/hoge <player> <number>" to player
  130. else:
  131. set {_player4} to arg-1
  132. set {money.%{_player4}%} to number-arg
  133. send "&9》 &e所持金を&e&l%{money.%player%}%&eにセット。"
  134. execute console command "scoreboard players set %{_player4}% money number-arg"
  135.  
  136. every 1 second in "world":
  137. loop all players:
  138. if {game.%loop-player%} is 1:
  139. add 1 to {score1.%loop-player%}
  140.  
  141. command /first:
  142. permission: sk.first
  143. trigger:
  144. if {game.%player%} is 1:
  145. set {game.%player%} to 2
  146. show a title from "&2&lあなたは感染しました!" and subtitle "&6&l人間共を感染させろ...!" to player for 5 seconds and 10 ticks fade in and 15 ticks fadeout
  147. execute console command "scoreboard players set %player% zombie 1"
  148. execute console command "scoreboard players set %player% human 0"
  149. execute console command "scoreboard teams leave human %player%"
  150. execute console command "scoreboard teams join zombie %player%"
  151. execute console command "nte player %player% prefix &c-*Zombie*-"
  152. execute console command "clear %player%"
  153. execute console command "effect %player% 15 5 1"
  154. execute console command "effect %player% 10 10 10"
  155. execute console command "effect %player% 2 5 100"
  156. execute console command "effect %player% 18 5 100"
  157. execute console command "scoreboard players set %player% damage 0"
  158. execute console command "scoreboard players tag %player% add first"
  159. execute console command "order"
  160. broadcast "&9&lInfected &c&l》&4&l☣ &c&l》&a%player%"
  161.  
  162.  
  163.  
  164.  
  165. command /out:
  166. permission: sk.out
  167. trigger:
  168. set {game.%player%} to 0
  169. set {ready.%player%} to 0
  170. execute console command "scoreboard players set %player% human 0"
  171. execute console command "scoreboard players set %player% zombie 0"
  172. execute console command "scoreboard players set %player% join 0"
  173. execute console command "nte player %player% prefix &f"
  174. execute console command "scoreboard teams leave zombie %player%"
  175. execute console command "scoreboard teams human zombie %player%"
  176. execute console command "scoreboard players tag %player% remove escape"
  177. execute console command "gamemode 2 %player%"
  178. execute console command "title %player% times 20 100 20"
  179.  
  180. command /totyuu:
  181. permission: sk.totyuu
  182. trigger:
  183. set {game.%player%} to 2
  184. execute console command "scoreboard players set %player% zombie 1"
  185. execute console command "scoreboard teams join zombie %player%"
  186. execute console command "nte player %player% prefix &c-*Zombie*-"
  187. send "&9》 &7ゲームに途中参加します...."
  188. execute console command "effect %player% 15 5 100"
  189. execute console command "effect %player% 2 5 100"
  190. execute console command "effect %player% 18 5 100"
  191. execute console command "clear %player%"
  192. execute console command "scoreboard players tag %player% add zombie"
  193. execute console command "effect %player% 12 10000 1"
  194.  
  195.  
  196. command /damage:
  197. permission: sk.damage
  198. trigger:
  199. if {game.%player%} is 2:
  200. add 25 to {score2.%player%}
  201.  
  202. command /total:
  203. executable by: console
  204. trigger:
  205. loop all players:
  206. if {game.%loop-player%} is 1:
  207. set {score5.%loop-player%} to {score1.%loop-player%} + {score3.%loop-player%} + {joinbonus} + {escapebonus}
  208. wait 1 seconds
  209. send "&4&l&m-----*-------------------------*-----" to loop-player
  210. send " " to loop-player
  211. send " &c&l戦闘報酬 " to loop-player
  212. send " " to loop-player
  213. send " &6参加ボーナス &e%{joinbonus}%&e円 " to loop-player
  214. send " &6防衛ボーナス &e%{score3.%loop-player%}%&e円 " to loop-player
  215. send " &6脱出ボーナス &e%{escapebonus}%&e円 " to loop-player
  216. send " &6生存ボーナス &e%{score1.%loop-player%}%&e円 " to loop-player
  217. send " " to loop-player
  218. send " &6合計 &e%{score5.%loop-player%}%&e円 " to loop-player
  219. send " " to loop-player
  220. send "&4&l&m-----*-------------------------*-----" to loop-player
  221. add {score5.%loop-player%} to {money.%loop-player%}
  222. add {score5.%loop-player%} to {exp.%loop-player%}
  223. add 2 to {zpoint.%loop-player%}
  224. add 1 to {seizon.%loop-player%}
  225. add 1 to {rseizon.%loop-player%}
  226. execute console command "scoreboard players add %loop-player% money %{score5.%loop-player%}%"
  227. if {game.%loop-player%} is 2:
  228. set {score5.%loop-player%} to {score1.%loop-player%} + {score2.%loop-player%} + {score3.%loop-player%} + {joinbonus}
  229. wait 1 seconds
  230. send "&4&l&m-----*-------------------------*-----" to loop-player
  231. send " " to loop-player
  232. send " &c&l戦闘報酬 " to loop-player
  233. send " " to loop-player
  234. send " &6参加賞 &e%{joinbonus}%&e円 " to loop-player
  235. send " &6防衛ボーナス &e%{score3.%loop-player%}%&e円 " to loop-player
  236. send " &6感染ボーナス &e%{score2.%loop-player%}%&e円 " to loop-player
  237. send " &6生存ボーナス &e%{score1.%loop-player%}%&e円 " to loop-player
  238. send " " to loop-player
  239. send " &6合計 &e%{score5.%loop-player%}%&e円 " to loop-player
  240. send " " to loop-player
  241. send "&4&l&m-----*-------------------------*-----" to loop-player
  242. add {score5.%loop-player%} to {exp.%loop-player%}
  243. add {score5.%loop-player%} to {money.%loop-player%}
  244. add 1 to {zpoint.%loop-player%}
  245. set {rseizon.%loop-player%} to 0
  246. execute console command "scoreboard players add %loop-player% money %{score5.%loop-player%}%"
  247. else:
  248. set {score5.%loop-player%} to 0
  249.  
  250.  
  251. every 5 second in "world":
  252. loop all players:
  253. if {exp.%loop-player%} is greater than or equal to {exp2.%loop-player%}:
  254. add 1 to {level.%loop-player%}
  255. add {exp3.%loop-player%} to {exp2.%loop-player%}
  256. add 20 to {exp3.%loop-player%}
  257. set {exp.%loop-player%} to 0
  258. execute console command "scoreboard players add %loop-player% level 1"
  259. broadcast "&9》&c&l%loop-player% &c&lis Level UP! &eレベル&e&l%{level.%loop-player%}%&eになりました!"
  260. loop all players:
  261. if {level.%loop-player%} is between 0 and 5:
  262. set {bullet2.%loop-player%} to 140
  263. if {level.%loop-player%} is between 6 and 10:
  264. set {bullet2.%loop-player%} to 160
  265. if {level.%loop-player%} is between 11 and 15:
  266. set {bullet2.%loop-player%} to 180
  267. if {level.%loop-player%} is between 16 and 20:
  268. set {bullet2.%loop-player%} to 200
  269. if {level.%loop-player%} is between 21 and 25:
  270. set {bullet2.%loop-player%} to 220
  271. if {level.%loop-player%} is between 26 and 30:
  272. set {bullet2.%loop-player%} to 240
  273. if {level.%loop-player%} is between 31 and 35:
  274. set {bullet2.%loop-player%} to 260
  275. if {level.%loop-player%} is between 36 and 40:
  276. set {bullet2.%loop-player%} to 280
  277. if {level.%loop-player%} is between 41 and 45:
  278. set {bullet2.%loop-player%} to 300
  279. if {level.%loop-player%} is between 46 and 50:
  280. set {bullet2.%loop-player%} to 320
  281. if {level.%loop-player%} is between 51 and 55:
  282. set {bullet2.%loop-player%} to 340
  283. if {level.%loop-player%} is between 56 and 5:
  284. set {bullet2.%loop-player%} to 360
  285. if {level.%loop-player%} is between 61 and 65:
  286. set {bullet2.%loop-player%} to 380
  287. if {level.%loop-player%} is between 66 and 70:
  288. set {bullet2.%loop-player%} to 400
  289. if {level.%loop-player%} is between 71 and 75:
  290. set {bullet2.%loop-player%} to 420
  291. if {level.%loop-player%} is between 76 and 80:
  292. set {bullet2.%loop-player%} to 440
  293. if {level.%loop-player%} is between 81 and 85:
  294. set {bullet2.%loop-player%} to 460
  295. if {level.%loop-player%} is between 86 and 90:
  296. set {bullet2.%loop-player%} to 480
  297. if {level.%loop-player%} is between 91 and 96:
  298. set {bullet2.%loop-player%} to 500
  299.  
  300.  
  301.  
  302. command /status [<offline player>]:
  303. trigger:
  304. if arg-1 is not set:
  305. message "&6&m&l-----*-------------------------------*-----"
  306. message " &6&lStatus"
  307. message "&6&l・ &eLevel: &6%{level.%player%}%&7Lv"
  308. message "&6&l・ &e次のレベルまで: &6%{exp.%player%}%&7/&6%{exp2.%player%}%"
  309. message "&6&l・ &e所持Zpoint: &6%{zpoint.%player%}%&7Point"
  310. message "&6&l・ &e所持弾数: &6%{bullet.%player%}%&7/&7&6%{bullet2.%player%}%&7発"
  311. message "&6&l・ &e所持金: &6%{money.%player%}%&7円"
  312. message "&6&l・ &e生存回数: &6%{seizon.%player%}%&7回"
  313. message "&6&l・ &e連続生存回数: &6%{rseizon.%player%}%&7回"
  314. message "&6&m&l----*---------------------------------*-----"
  315. else:
  316. if player have permission "stats.others.sk":
  317. set {_player} to arg-1
  318. wait 1 tick
  319. if {_player} has played on this server before:
  320. message "&6&m-----*-------------------------------*-----"
  321. message " &6&lStatus"
  322. message "&6&l・ &ePlayer: &6&l%{_player}%"
  323. message "&6&l・ &eLevel: &6%{level.%{_player}%}%&7Lv"
  324. message "&6&l・ &e次のレベルまで: &6%{exp.%{_player}%}%&7/&6%{exp2.%{_player}%}%"
  325. message "&6&l・ &e所持Zpoint: &6%{zpoint.%{_player}%}%&7Point"
  326. message "&6&l・ &e所持弾数: &6%{bullet.%{_player}%}%&7/&6%{bullet2.%{_player}%}%&7発"
  327. message "&6&l・ &e所持金: &6%{money.%{_player}%}%&7円"
  328. message "&6&l・ &e生存回数: &6%{seizon.%{_player}%}%&7回"
  329. message "&6&l・ &e連続生存回数: &6%{rseizon.%{_player}%}%&7回"
  330. message "&6&m----*---------------------------------*-----"
  331. else:
  332. message "&c登録されていないプレイヤー名です"
  333. else:
  334. message "&c登録されていないプレイヤー名です"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement