Advertisement
dai_pon

Untitled

Jun 4th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.49 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☣ &c&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. broadcast "&9&lInfected &c&l》&4&l☣ &c&l》&a%player%"
  160.  
  161.  
  162.  
  163.  
  164. command /out:
  165. permission: sk.out
  166. trigger:
  167. set {game.%player%} to 0
  168. set {ready.%player%} to 0
  169. execute console command "scoreboard players set %player% human 0"
  170. execute console command "scoreboard players set %player% zombie 0"
  171. execute console command "scoreboard players set %player% join 0"
  172. execute console command "nte player %player% prefix &f"
  173. execute console command "scoreboard teams leave zombie %player%"
  174. execute console command "scoreboard teams human zombie %player%"
  175. execute console command "scoreboard players tag %player% remove escape"
  176. execute console command "gamemode 2 %player%"
  177. execute console command "title %player% times 20 100 20"
  178.  
  179. command /totyuu:
  180. permission: sk.totyuu
  181. trigger:
  182. set {game.%player%} to 2
  183. execute console command "scoreboard players set %player% zombie 1"
  184. execute console command "scoreboard teams join zombie %player%"
  185. execute console command "nte player %player% prefix &c-*Zombie*-"
  186. send "&9》 &7ゲームに途中参加します...."
  187. execute console command "effect %player% 15 5 100"
  188. execute console command "effect %player% 2 5 100"
  189. execute console command "effect %player% 18 5 100"
  190. execute console command "clear %player%"
  191. execute console command "scoreboard players tag %player% add zombie"
  192. execute console command "effect %player% 12 10000 1"
  193. set {score1.%player%} to 0
  194. set {score2.%player%} to 0
  195. set {score3.%player%} to 0
  196. set {score5.%player%} to 0
  197.  
  198.  
  199.  
  200. command /damage:
  201. permission: sk.damage
  202. trigger:
  203. if {game.%player%} is 2:
  204. add 25 to {score2.%player%}
  205.  
  206. command /total:
  207. executable by: console
  208. trigger:
  209. loop all players:
  210. if {game.%loop-player%} is 1:
  211. set {score5.%loop-player%} to {score1.%loop-player%} + {score3.%loop-player%} + {joinbonus} + {escapebonus}
  212. send "&4&l&m-----*-------------------------*-----" to loop-player
  213. send " " to loop-player
  214. send " &c&l戦闘報酬 " to loop-player
  215. send " " to loop-player
  216. send " &6参加賞 &e%{joinbonus}%&e円 " to loop-player
  217. send " &6防衛ボーナス &e%{score3.%loop-player%}%&e円 " to loop-player
  218. send " &6脱出ボーナス &e%{escapebonus}%&e円 " to loop-player
  219. send " &6生存ボーナス &e%{score1.%loop-player%}%&e円 " to loop-player
  220. send " " to loop-player
  221. send " &6合計 &e%{score5.%loop-player%}%&e円 " to loop-player
  222. send " " to loop-player
  223. send "&4&l&m-----*-------------------------*-----" to loop-player
  224. add {score5.%loop-player%} to {money.%loop-player%}
  225. add {score5.%loop-player%} to {exp.%loop-player%}
  226. add 2 to {zpoint.%loop-player%}
  227. add 1 to {seizon.%loop-player%}
  228. add 1 to {rseizon.%loop-player%}
  229. execute console command "scoreboard players add %loop-player% money %{score5.%loop-player%}%"
  230. if {game.%loop-player%} is 2:
  231. set {score5.%loop-player%} to {score1.%loop-player%} + {score2.%loop-player%} + {score3.%loop-player%} + {joinbonus}
  232. send "&4&l&m-----*-------------------------*-----" to loop-player
  233. send " " to loop-player
  234. send " &c&l戦闘報酬 " to loop-player
  235. send " " to loop-player
  236. send " &6参加賞 &e%{joinbonus}%&e円 " to loop-player
  237. send " &6防衛ボーナス &e%{score3.%loop-player%}%&e円 " to loop-player
  238. send " &6感染ボーナス &e%{score2.%loop-player%}%&e円 " to loop-player
  239. send " &6生存ボーナス &e%{score1.%loop-player%}%&e円 " to loop-player
  240. send " " to loop-player
  241. send " &6合計 &e%{score5.%loop-player%}%&e円 " to loop-player
  242. send " " to loop-player
  243. send "&4&l&m-----*-------------------------*-----" to loop-player
  244. add {score5.%loop-player%} to {exp.%loop-player%}
  245. add {score5.%loop-player%} to {money.%loop-player%}
  246. add 1 to {zpoint.%loop-player%}
  247. set {rseizon.%loop-player%} to 0
  248. execute console command "scoreboard players add %loop-player% money %{score5.%loop-player%}%"
  249.  
  250.  
  251.  
  252. every 1 second in "world":
  253. loop all players:
  254. if {exp.%loop-player%} is greater than or equal to {exp2.%loop-player%}:
  255. add 1 to {level.%loop-player%}
  256. subtract {exp2.%loop-player%} from {exp.%loop-player%}
  257. add {exp3.%loop-player%} to {exp2.%loop-player%}
  258. add 10 to {exp3.%loop-player%}
  259. execute console command "scoreboard players add %loop-player% level 1"
  260. broadcast "&9》&c&l%loop-player% &c&lis Level UP! &eレベル&e&l%{level.%loop-player%}%&eになりました!"
  261. loop all players:
  262. if {level.%loop-player%} is between 0 and 5:
  263. set {bullet2.%loop-player%} to 140
  264. if {level.%loop-player%} is between 6 and 10:
  265. set {bullet2.%loop-player%} to 160
  266. if {level.%loop-player%} is between 11 and 15:
  267. set {bullet2.%loop-player%} to 180
  268. if {level.%loop-player%} is between 16 and 20:
  269. set {bullet2.%loop-player%} to 200
  270. if {level.%loop-player%} is between 21 and 25:
  271. set {bullet2.%loop-player%} to 220
  272. if {level.%loop-player%} is between 26 and 30:
  273. set {bullet2.%loop-player%} to 240
  274. if {level.%loop-player%} is between 31 and 35:
  275. set {bullet2.%loop-player%} to 260
  276. if {level.%loop-player%} is between 36 and 40:
  277. set {bullet2.%loop-player%} to 280
  278. if {level.%loop-player%} is between 41 and 45:
  279. set {bullet2.%loop-player%} to 300
  280. if {level.%loop-player%} is between 46 and 50:
  281. set {bullet2.%loop-player%} to 320
  282. if {level.%loop-player%} is between 51 and 55:
  283. set {bullet2.%loop-player%} to 340
  284. if {level.%loop-player%} is between 56 and 5:
  285. set {bullet2.%loop-player%} to 360
  286. if {level.%loop-player%} is between 61 and 65:
  287. set {bullet2.%loop-player%} to 380
  288. if {level.%loop-player%} is between 66 and 70:
  289. set {bullet2.%loop-player%} to 400
  290. if {level.%loop-player%} is between 71 and 75:
  291. set {bullet2.%loop-player%} to 420
  292. if {level.%loop-player%} is between 76 and 80:
  293. set {bullet2.%loop-player%} to 440
  294. if {level.%loop-player%} is between 81 and 85:
  295. set {bullet2.%loop-player%} to 460
  296. if {level.%loop-player%} is between 86 and 90:
  297. set {bullet2.%loop-player%} to 480
  298. if {level.%loop-player%} is between 91 and 96:
  299. set {bullet2.%loop-player%} to 500
  300.  
  301.  
  302.  
  303. command /status [<offline player>]:
  304. trigger:
  305. if arg-1 is not set:
  306. message "&6&m&l-----*-------------------------------*-----"
  307. message " &6&lStatus"
  308. message "&6&l・ &eLevel: &6%{level.%player%}%&7Lv"
  309. message "&6&l・ &e次のレベルまで: &6%{exp.%player%}%&7/&6%{exp2.%player%}%"
  310. message "&6&l・ &e所持Zpoint: &6%{zpoint.%player%}%&7Point"
  311. message "&6&l・ &e所持弾数: &6%{bullet.%player%}%&7/&7&6%{bullet2.%player%}%&7発"
  312. message "&6&l・ &e所持金: &6%{money.%player%}%&7円"
  313. message "&6&l・ &e生存回数: &6%{seizon.%player%}%&7回"
  314. message "&6&l・ &e連続生存回数: &6%{rseizon.%player%}%&7回"
  315. message "&6&l・ &eFFAキル数: &6%{kill.%player%}%&7回"
  316. message "&6&m&l----*---------------------------------*-----"
  317. else:
  318. if player have permission "stats.others.sk":
  319. set {_player} to arg-1
  320. wait 1 tick
  321. if {_player} has played on this server before:
  322. message "&6&m-----*-------------------------------*-----"
  323. message " &6&lStatus"
  324. message "&6&l・ &ePlayer: &6&l%{_player}%"
  325. message "&6&l・ &eLevel: &6%{level.%{_player}%}%&7Lv"
  326. message "&6&l・ &e次のレベルまで: &6%{exp.%{_player}%}%&7/&6%{exp2.%{_player}%}%"
  327. message "&6&l・ &e所持Zpoint: &6%{zpoint.%{_player}%}%&7Point"
  328. message "&6&l・ &e所持弾数: &6%{bullet.%{_player}%}%&7/&6%{bullet2.%{_player}%}%&7発"
  329. message "&6&l・ &e所持金: &6%{money.%{_player}%}%&7円"
  330. message "&6&l・ &e生存回数: &6%{seizon.%{_player}%}%&7回"
  331. message "&6&l・ &e連続生存回数: &6%{rseizon.%{_player}%}%&7回"
  332. message "&6&l・ &eFFAキル数: &6%{kill.%{_player}%}%&7回"
  333. message "&6&m----*---------------------------------*-----"
  334. else:
  335. message "&c登録されていないプレイヤー名です"
  336. else:
  337. message "&c登録されていないプレイヤー名です"
  338.  
  339. on right click:
  340. if name of held item contains "&6鍛錬の書 &e&lⅠ":
  341. remove 1 of player's held item from the player's inventory
  342. add 100 to {exp.%player%}
  343. send "&9》 &6&l100経験値&eを獲得しました!"
  344. set {_location} to location of player
  345. play sound "BLOCK_NOTE_BELL" with volume 1 with pitch 1.2 at {_location}
  346.  
  347. on right click:
  348. if name of held item contains "&6鍛錬の書 &e&lⅡ":
  349. remove 1 of player's held item from the player's inventory
  350. add 500 to {exp.%player%}
  351. send "&9》 &6&l500経験値&eを獲得しました!"
  352. set {_location} to location of player
  353. play sound "BLOCK_NOTE_BELL" with volume 1 with pitch 1.2 at {_location}
  354.  
  355. on right click:
  356. if name of held item contains "&6鍛錬の書 &e&lⅢ":
  357. remove 1 of player's held item from the player's inventory
  358. add 1000 to {exp.%player%}
  359. send "&9》 &6&l1000経験値&eを獲得しました!"
  360. set {_location} to location of player
  361. play sound "BLOCK_NOTE_BELL" with volume 1 with pitch 1.2 at {_location}
  362.  
  363. on right click:
  364. if name of held item contains "&6鍛錬の書 &e&lⅣ":
  365. remove 1 of player's held item from the player's inventory
  366. add 3000 to {exp.%player%}
  367. send "&9》 &6&l3000経験値&eを獲得しました!"
  368. set {_location} to location of player
  369. play sound "BLOCK_NOTE_BELL" with volume 1 with pitch 1.2 at {_location}
  370.  
  371. on right click:
  372. if name of held item contains "&6鍛錬の書 &e&lⅤ":
  373. remove 1 of player's held item from the player's inventory
  374. add 5000 to {exp.%player%}
  375. send "&9》 &6&l5000経験値&eを獲得しました!"
  376. set {_location} to location of player
  377. play sound "BLOCK_NOTE_BELL" with volume 1 with pitch 1.2 at {_location}
  378.  
  379. on right click:
  380. if name of held item contains "&6鍛錬の書 &e&lⅥ":
  381. remove 1 of player's held item from the player's inventory
  382. add 10000 to {exp.%player%}
  383. send "&9》 &6&l10000経験値&eを獲得しました!"
  384. set {_location} to location of player
  385. play sound "BLOCK_NOTE_BELL" with volume 1 with pitch 1.2 at {_location}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement