Advertisement
dai_pon

Untitled

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