Advertisement
dai_pon

Untitled

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