Advertisement
dai_pon

Untitled

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