Advertisement
siso_

攻防戦

Jan 16th, 2019
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.99 KB | None | 0 0
  1. command /random:
  2. trigger:
  3. set {_pnum} to 0
  4. set {_lnum} to 0
  5. delete {teamred::*}
  6. delete {teamblue::*}
  7. delete {teamwhite::*}
  8. loop all players:
  9. add loop-player to {teamwhite::*}
  10. add 1 to {_pnum}
  11. loop {_pnum} times:
  12. add 1 to {_lnum}
  13. set {_random} to a random player out of {teamwhite::*}
  14. remove {_random} from {teamwhite::*}
  15. if {_lnum} is 1:
  16. add {_random} to {red::*}
  17. set {red.%{_random}%} to true
  18. else if {_lnum} is 2:
  19. add {_random} to {blue::*}
  20. set {blue.%{_random}%} to true
  21. remove 2 from {_lnum}
  22. message "&6あなたは&c赤チーム&6です!" to {red::*}
  23. message "&6あなたは&9青チーム&6です!" to {blue::*}
  24. command /teamspawn [<text>] [<text>]:
  25. permission: skript.admin
  26. trigger:
  27. if arg 1 is set:
  28. if arg 1 is "red":
  29. if arg 2 is set:
  30. set {red%arg 2%} to location of player
  31. message "&cRedTeam at Number %arg 2%"
  32. if arg 1 is "blue":
  33. if arg 2 is set:
  34. set {blue%arg 2%} to location of player
  35. message "&9blueTeam at Number %arg 2%"
  36. if arg 1 is set:
  37. if arg 2 is not set:
  38. set {lobby} to location of player
  39. message "&6ロビーの位置を%location%にしました"
  40. command /players:
  41. permission: skript.admin
  42. trigger:
  43. broadcast "&c赤は%{red::*}%です"
  44. broadcast "&9青は%{blue::*}%です"
  45. send "Red HP &c%{hp.red}%"
  46. send "Blue HP &9%{hp.blue}%"
  47. command /114:
  48. permission: skript.admin
  49. trigger:
  50. loop all players:
  51. if {blue.%loop-player%} is true:
  52. teleport loop-player to {blue1}
  53. if {red.%loop-player%} is true:
  54. teleport loop-player to {red1}
  55. command /de:
  56. permission: skript.admin
  57. trigger:
  58. delete {red::*}
  59. delete {blue::*}
  60. delete {teamnone::*}
  61. loop all players:
  62. set {red.%loop-player%} to false
  63. set {blue.%loop-player%} to false
  64. message "&6deleted"
  65. stop
  66. command /stopgame:
  67. permission: skript.admin
  68. trigger:
  69. disable PvP in all worlds
  70. heal all players
  71. command "/clear @a"
  72. command "/effect @a clear"
  73. delete {red::*}
  74. delete {blue::*}
  75. set {hp.red} to 5
  76. set {hp.blue} to 5
  77. loop all players:
  78. set {red.%loop-player%} to false
  79. set {blue.%loop-player%} to false
  80. set {god.%loop-player%} to false
  81. execute all players command "/rs lobby"
  82. loop all players:
  83. teleport loop-players to {lobby}
  84. if {re} is true:
  85. broadcast "&630秒後に開始します"
  86. wait 30 seconds
  87. execute console command "/start"
  88. command /restart <text>:
  89. permission: skript.admin
  90. trigger:
  91. if arg 1 is "on":
  92. set {re} to true
  93. message "ON"
  94. if arg 1 is "off":
  95. set {re} to false
  96. message "OFF"
  97. on rightclick holding stick:
  98. if event-block is end stone:
  99. set {nexus.blue} to location of targeted block
  100. message "&9青&6のネクサスを設定しました"
  101. else:
  102. message "&6エンドストーン以外は指定できません"
  103. stop
  104. on leftclick holding stick:
  105. if event-block is end stone:
  106. cancel event
  107. set {nexus.red} to location of targeted block
  108. message "&c赤&6のネクサスを設定しました"
  109. else if event-block is not end stone:
  110. message "&6エンドストーン以外は指定できません"
  111. cancel event
  112. stop
  113. on drop of stick:
  114. cancel event
  115. message "&6ネクサスの場所を削除しました"
  116. delete {nexus.red}
  117. delete {nexus.blue}
  118. on mine:
  119. if location of event-block is {nexus.blue}:
  120. if player is {blue::*}:
  121. message "&6自軍のネクサスには攻撃できません"
  122. cancel event
  123. stop
  124. cancel event
  125. broadcast "&c%player%&6が&9青&6のネクサスを削りました!"
  126. remove 1 from {hp.blue}
  127. execute all players command "/rs"
  128. set {_chance} to random integer between 1 and 4
  129. if {_chance} is 1:
  130. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 1 1"
  131. if {_chance} is 2:
  132. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.9 1"
  133. if {_chance} is 3:
  134. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.6 1"
  135. if {_chance} is 4:
  136. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.3 1"
  137. if {hp.blue} is 1:
  138. broadcast "&9青チームのHPが1になりました!!"
  139. execute console command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 2 1 1"
  140. teleport {red::*} to {redspawn}
  141. if {hp.blue} is 0:
  142. broadcast "&c赤チーム&6の勝利!!"
  143. execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
  144. loop {red::*}:
  145. add 10 to {xp.%{red::%loop-index%}%}
  146. message "&a+10XP" to {red::*}
  147. wait 5 seconds
  148. execute console command "/stopgame"
  149. on mine:
  150. if location of event-block is {nexus.red}:
  151. if player is {red::*}:
  152. message "&6自軍のネクサスには攻撃できません"
  153. cancel event
  154. stop
  155. cancel event
  156. broadcast "&9%player%&6が&c赤&6のネクサスを削りました!"
  157. set {_chance} to random integer between 1 and 4
  158. remove 1 from {hp.red}
  159. execute all players command "/rs"
  160. if {_chance} is 1:
  161. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 1 1"
  162. if {_chance} is 2:
  163. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.9 1"
  164. if {_chance} is 3:
  165. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.6 1"
  166. if {_chance} is 4:
  167. command "/playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.3 1"
  168. if {hp.red} is 1:
  169. broadcast "&c赤チームのHPが1になりました!!"
  170. execute console command "/playsound entity.enderdragon.ambient master @a ~ ~ ~ 2 1 1"
  171. teleport {blue::*} to {bluespawn}
  172. if {hp.red} is 0:
  173. execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 2 1 1"
  174. broadcast "&9青チーム&6の勝利!!"
  175. loop {blue::*}:
  176. add 10 to {xp.%{blue::%loop-index%}%}
  177. message "&a+10XP" to {blue::*}
  178. wait 5 seconds
  179. execute console command "/stopgame"
  180. on break:
  181. if player is not ops:
  182. cancel event
  183. on place:
  184. if player is not op:
  185. cancel event
  186. on drop:
  187. if player is not op:
  188. cancel event
  189. on damage of player:
  190. if {god.%victim%} is true:
  191. cancel event
  192. if attacker is {red::*}:
  193. if victim is {red::*}:
  194. cancel event
  195. stop
  196. if attacker is {blue::*}:
  197. if victim is {blue::*}:
  198. cancel event
  199. stop
  200. if {p.%attacker%} is true:
  201. damage the victim by 2
  202. stop
  203. if name of attacker's held item contains "FireSword":
  204. chance of 30%:
  205. ignite victim for 5 seconds
  206. stop
  207. on death of player:
  208. set {god.%player%} to true
  209. add 1 to {kill.%attacker%}
  210. if {red.%player%} or {blue.%player%} is true:
  211. set slot 7 of player to chest named "Kit選択"
  212. force respawn of player
  213. if player is {blue::*}:
  214. teleport player to {blue1}
  215. if player is {red::*}:
  216. teleport player to {red1}
  217. else if player is not {red::*} or {blue::*}:
  218. teleport player to {lobby}
  219. wait 5 seconds
  220. set {god.%player%} to false
  221. wait 2 seconds
  222. remove chest from player's inventory
  223. on first join:
  224. set {kill.%player%} to 0
  225. set {xp.%player%} to 0
  226. wait 3 seconds
  227. loop 3 times:
  228. command "/tp %player% 0 10 0"
  229. wait 30 tick
  230. if player's health is 20:
  231. if player's ping < 1000:
  232. ip-ban the player
  233. kick the player
  234. broadcast "&4[SisoAntiCheat] &aCONSOLE BANNED %player% because NoFall"
  235. command "/gamemode 2 %player%"
  236. execute player command "/rs lobby"
  237. command "/tp %player% 121 6 118"
  238. heal the player
  239. on join:
  240. broadcast "&e%player% &9Has Joined"
  241. teleport player to {lobby}
  242. command "/gamemode 2 %player%"
  243. execute player command "/rs lobby"
  244. on quit:
  245. if player is {red::*}:
  246. remove player from {red::*}
  247. set {red.%player%} to false
  248. stop
  249. if player is {blue::*}:
  250. remove player from {blue::*}
  251. set {blue.%player%} to false
  252. stop
  253. on right click on a villager:
  254. wait 1 ticks
  255. open chest with 1 row named "&6Kitの購入" to player
  256. format slot 0 of player with experience bottle named "&bXP : &e%{xp.%player%}%" to close
  257. if {xp.%player%} >= 50:
  258. format slot 3 of player with golden sword named "&4アサシン" with lore "&6頭:チェーン||胴:革||腰:革||足:チェーン||剣:鉄の剣||スキル:スピード||特殊:透明||&aXP (50XP) " to close then run [execute player command "/pay asa"]
  259. if {xp.%player%} <= 50:
  260. format slot 3 of player with golden sword named "&4アサシン" with lore "&6頭:チェーン||胴:革||腰:革||足:チェーン||剣:鉄の剣||スキル:透明||特殊:スピード||&c必要XP &a(50XP)" to be unstealable
  261. if {xp.%player%} >= 100:
  262. format slot 4 of player with flint named "&cパイロ" with lore "&6頭:チェーン||胴:チェーン||腰:チェーン||足:チェーン||剣:石の剣||スキル:発火||特殊:無し||&aXP (100XP) " to close then run [execute player command "/pay pyro"]
  263. if {xp.%player%} <= 100:
  264. format slot 4 of player with flint named "&cパイロ" with lore "&6頭:チェーン||胴:チェーン||腰:チェーン||足:チェーン||剣:石の剣||スキル:発火||特殊:無し||&c必要XP &a(100XP)" to be unstealable
  265. if {xp.%player%} >= 150:
  266. format slot 5 of player with bow named "&3アーチャー" with lore "&6頭:チェーン||胴:チェーン||腰:革||足:革||剣:木の剣||スキル:スピード||特殊:無し||&aXP (150XP)" to close then run [execute player command "/py ar"]
  267. if {xp.%player%} >= 150:
  268. format slot 5 of player with bow named "&3アーチャー" with lore "&6頭:チェーン||胴:チェーン||腰:革||足:革||剣:木の剣||スキル:スピード||特殊:無し||&c必要XP &a(150XP)" to be unstealable
  269. on rightclick holding chest:
  270. name of held item contains "Kit選択"
  271. open chest with 1 row named "&6Kitの選択" to player
  272. format slot 0 of player with diamond sword named "&bKill : &e%{kill.%player%}%" to close
  273. format slot 2 of player with iron sword named "戦士" with lore "&6頭:鉄||胴:チェーン||腰:チェーン||足:鉄||剣:鉄の剣||スキル:攻撃UP||特殊:無し" to close then run [execute player command "/kit kisi"]
  274. format slot 3 of player with iron chestplate named "&7アーマナイト" with lore "&6頭:チェーン||胴:鉄||腰:鉄||足:チェーン||剣:石の剣||スキル:ヒール||特殊:無し" to close then run [execute player command "/kit naito"]
  275. if {asa.%player%} is true:
  276. format slot 4 of player with golden sword named "&4アサシン" with lore "&6頭:チェーン||胴:革||腰:革||足:チェーン||剣:鉄の剣||スキル:透明||特殊:スピード" to close then run [execute player command "/kit asasinn"]
  277. if {asa.%player%} is false:
  278. format slot 4 of player with golden sword named "&4アサシン" with lore "&6頭:チェーン||胴:革||腰:革||足:チェーン||剣:鉄の剣||スキル:透明||特殊:スピード||&c必要XP &a(50XP)" to be unstealable
  279. if {fire.%player%} is true:
  280. format slot 5 of player with flint named "&cパイロ" with lore "&6頭:チェーン||胴:チェーン||腰:チェーン||足:チェーン||剣:石の剣||スキル:発火||特殊:無し" to close then run [execute player command "/kit pyro"]
  281. if {asa.%player%} is false:
  282. format slot 5 of player with flint named "&cパイロ" with lore "&6頭:チェーン||胴:チェーン||腰:チェーン||足:チェーン||剣:石の剣||スキル:発火||特殊:無し||&c必要XP &a(100XP)" to be unstealable
  283. if {ar.%player%} is true:
  284. format slot 6 of player with bow named "&3アーチャー" with lore "&6頭:チェーン||胴:チェーン||腰:革||足:革||剣:木の剣||スキル:スピード||特殊:無し" to close then run [execute player command "/kit ar"]
  285. if {ar.%player%} is false:
  286. format slot 6 of player with bow named "&3アーチャー" with lore "&6頭:チェーン||胴:チェーン||腰:革||足:革||剣:木の剣||スキル:スピード||特殊:無し||&c必要XP &a(150XP)" to be unstealable
  287. #/give @p minecraft:iron_helmet 1 0 {Unbreakable:1b}
  288. #/give @p minecraft:chainmail_chestplate 1 0 {Unbreakable:1b}
  289. #/give @p minecraft:chainmail_leggings 1 0 {Unbreakable:1b}
  290. #/give @p minecraft:chainmail_boots 1 0 {Unbreakable:1b}
  291. command /kit [<text>]:
  292. trigger:
  293. if arg 1 is not set:
  294. message "NONE"
  295. if arg 1 is "kisi":
  296. command "/clear %player%"
  297. command "/effect %player% clear"
  298. if {hp.red} is 1:
  299. if player is {blue::*}:
  300. set slot 1 of player to wooden pickaxe
  301. if {hp.blue::*} is 1:
  302. if player is {red::*}:
  303. set slot 1 of player to wooden pickaxe
  304. else:
  305. set slot 1 of player to iron pickaxe
  306. command "/give %player% minecraft:iron_sword 1 0 {Unbreakable:1b}"
  307. command "/give %player% minecraft:iron_helmet 1 0 {Unbreakable:1b}"
  308. command "/give %player% minecraft:chainmail_chestplate 1 0 {Unbreakable:1b}"
  309. command "/give %player% minecraft:chainmail_leggings 1 0 {Unbreakable:1b}"
  310. command "/give %player% minecraft:iron_boots 1 0 {Unbreakable:1b}"
  311. set slot 8 of player to blaze powder named "&c攻撃UP" with lore "&6効果時間:10 seconds"
  312. stop
  313. if arg 1 is "naito":
  314. command "/clear %player%"
  315. command "/effect %player% clear"
  316. if {hp.red} is 1:
  317. if player is {blue::*}:
  318. set slot 1 of player to wooden pickaxe
  319. if {hp.blue::*} is 1:
  320. if player is {red::*}:
  321. set slot 1 of player to wooden pickaxe
  322. else:
  323. set slot 1 of player to iron pickaxe
  324. command "/give %player% minecraft:stone_sword 1 0 {Unbreakable:1b}"
  325. command "/give %player% minecraft:chainmail_helmet 1 0 {Unbreakable:1b}"
  326. command "/give %player% minecraft:iron_chestplate 1 0 {Unbreakable:1b}"
  327. command "/give %player% minecraft:iron_leggings 1 0 {Unbreakable:1b}"
  328. command "/give %player% minecraft:chainmail_boots 1 0 {Unbreakable:1b}"
  329. stop
  330. if arg 1 is "asasinn":
  331. if {asasinn.%player%} is true:
  332. command "/clear %player%"
  333. command "/effect %player% clear"
  334. if {hp.red} is 1:
  335. if player is {blue::*}:
  336. set slot 1 of player to wooden pickaxe
  337. if {hp.blue::*} is 1:
  338. if player is {red::*}:
  339. set slot 1 of player to wooden pickaxe
  340. else:
  341. set slot 1 of player to iron pickaxe
  342. command "/give %player% minecraft:stone_sword 1 0 {Unbreakable:1b}"
  343. command "/give %player% minecraft:chainmail_helmet 1 0 {Unbreakable:1b}"
  344. command "/give %player% minecraft:iron_chestplate 1 0 {Unbreakable:1b}"
  345. command "/give %player% minecraft:iron_leggings 1 0 {Unbreakable:1b}"
  346. command "/give %player% minecraft:chainmail_boots 1 0 {Unbreakable:1b}"
  347. set slot 8 of player to sugar named "&7透明" with lore "&6効果時間:7 seconds"
  348. apply speed 1 to the player for 1 day
  349. stop
  350. if arg 1 is "pyro":
  351. if {pyro.%player%} is true:
  352. command "/clear %player%"
  353. command "/effect %player% clear"
  354. if {hp.red} is 1:
  355. if player is {blue::*}:
  356. set slot 1 of player to wooden pickaxe
  357. if {hp.blue::*} is 1:
  358. if player is {red::*}:
  359. set slot 1 of player to wooden pickaxe
  360. else:
  361. set slot 1 of player to iron pickaxe
  362. give stone sword named "&cFireSword" with lore "&630%%の確率で相手が炎上します" to player
  363. command "/give %player% minecraft:chainmail_helmet 1 0 {Unbreakable:1b}"
  364. command "/give %player% minecraft:chainmail_chestplate 1 0 {Unbreakable:1b}"
  365. command "/give %player% minecraft:chainmail_leggings 1 0 {Unbreakable:1b}"
  366. command "/give %player% minecraft:chainmail_boots 1 0 {Unbreakable:1b}"
  367. set slot 8 of player to flint named "&c発火" with lore "&6効果時間:5 seconds"
  368. stop
  369. if arg 1 is "ar":
  370. if {ar.%player%} is true:
  371. command "/clear %player%"
  372. command "/effect %player% clear"
  373. if {hp.red} is 1:
  374. if player is {blue::*}:
  375. set slot 1 of player to wooden pickaxe
  376. if {hp.blue::*} is 1:
  377. if player is {red::*}:
  378. set slot 1 of player to wooden pickaxe
  379. else:
  380. set slot 1 of player to iron pickaxe
  381. command "/give %player% minecraft:wooden_sword 1 0 {Unbreakable:1b}"
  382. command "/give %player% minecraft:bow 1"
  383. command "/give %player% minecraft:chainmail_helmet 1 0 {Unbreakable:1b}"
  384. command "/give %player% minecraft:chainmail_chestplate 1 0 {Unbreakable:1b}"
  385. command "/give %player% minecraft:leather_leggings 1 0 {Unbreakable:1b}"
  386. command "/give %player% minecraft:leather_boots 1 0 {Unbreakable:1b}"
  387. set slot 8 of player to feather named "&bスピード" with lore "&6効果時間:5 seconds"
  388. set slot 37 of player to 16 arrow
  389. stop
  390. command /pay [<text>]:
  391. trigger:
  392. if arg 1 is not set:
  393. if player is not op:
  394. kick the player
  395. ban the player
  396. else:
  397. message "そこからは選べません"
  398. stop
  399. if arg 1 is "asa":
  400. set {asasinn.%player%} to true
  401. remove 50 from {xp.%player%}
  402. command "/rs lobby"
  403. broadcast "&e%player%が&4アサシン&6を購入しました!"
  404. stop
  405. if arg 1 is "pyro":
  406. set {pyro.%player%} to true
  407. remove 100 from {xp.%player%}
  408. command "/rs lobby"
  409. broadcast "&e%player%が&cPyro&6を購入しました!"
  410. stop
  411. if arg 1 is "ar":
  412. set {asasinn.%player%} to true
  413. remove 150 from {xp.%player%}
  414. command "/rs lobby"
  415. broadcast "&e%player%が&3アーチャー&6を購入しました!"
  416. stop
  417. on Rightclick holding a blaze powder:
  418. name of held item contains "攻撃UP"
  419. set {_cooldown} to difference between {skill.%player%.lastused} and now
  420. if {_cooldown} is less than 45 seconds:
  421. message "%difference between 45 seconds and {_cooldown}% &6後に使用可能です"
  422. stop
  423. clear {_cooldown.%player%}
  424. set {skill.%player%.lastused} to now
  425. set {p.%player%} to true
  426. wait 10 seconds
  427. set {p.%player%} to false
  428. on Rightclick holding a bread:
  429. name of held item contains "ヒール"
  430. set {_cooldown} to difference between {skill.%player%.lastused} and now
  431. if {_cooldown} is less than 45 seconds:
  432. message "%difference between 45 seconds and {_cooldown}% &6後に使用可能です"
  433. stop
  434. clear {_cooldown.%player%}
  435. set {skill.%player%.lastused} to now
  436. heal the player by 4
  437. on Rightclick holding a sugar:
  438. name of held item contains "透明"
  439. set {_cooldown} to difference between {skill.%player%.lastused} and now
  440. if {_cooldown} is less than 50 seconds:
  441. message "%difference between 50 seconds and {_cooldown}% &6後に使用可能です"
  442. stop
  443. clear {_cooldown.%player%}
  444. set {skill.%player%.lastused} to now
  445. apply invisibility 1 to the player for 7 seconds
  446. on Rightclick holding a flint:
  447. name of held item contains "発火"
  448. set {_cooldown} to difference between {skill.%player%.lastused} and now
  449. if {_cooldown} is less than 45 seconds:
  450. message "%difference between 45 seconds and {_cooldown}% &6後に使用可能です"
  451. stop
  452. clear {_cooldown.%player%}
  453. set {skill.%player%.lastused} to now
  454. if player is {blue::*}:
  455. loop all players in radius 7 around player:
  456. if loop-player is {red::*}:
  457. make a fake explosion at loop-players
  458. damage loop-players by 2 hearts
  459. ignite loop-player for 5 seconds
  460. stop
  461. if player is {red::*}:
  462. loop all players in radius 7 around player:
  463. if loop-player is {blue::*}:
  464. make a fake explosion at loop-players
  465. damage loop-players by 2 hearts
  466. ignite loop-player for 5 seconds
  467. stop
  468. on Rightclick holding a feather:
  469. name of held item contains "スピード"
  470. set {_cooldown} to difference between {skill.%player%.lastused} and now
  471. if {_cooldown} is less than 15 seconds:
  472. message "%difference between 15 seconds and {_cooldown}% &6後に使用可能です"
  473. stop
  474. clear {_cooldown.%player%}
  475. set {skill.%player%.lastused} to now
  476. apply speed 2 to the player for 5 seconds
  477. command /reloadstats [<text>]:
  478. aliases: /rs
  479. trigger:
  480. if arg 1 is not set:
  481. wipe player's sidebar
  482. set name of sidebar of player to "&6攻防戦"
  483. set score "&6SisoPixel" in sidebar of player to 1
  484. set score "" in sidebar of player to 2
  485. set score "&9Blue&f: &9%{hp.blue}%" in sidebar of player to 3
  486. set score "&cRed&f: &c%{hp.red}%" in sidebar of player to 4
  487. set score "" in sidebar of player to 5
  488. stop
  489. if arg 1 is "lobby":
  490. wipe player's sidebar
  491. set name of sidebar of player to "&eしその鯖"
  492. set score "&6SisoPixel" in sidebar of player to 1
  493. set score "" in sidebar of player to 2
  494. set score "XP: &a%{xp.%player%}%" in sidebar of player to 3
  495. set score "Kills: &c%{kill.%player%}%" in sidebar of player to 4
  496. set score "&b===Your Stats===" in sidebar of player to 5
  497. set score "" in sidebar of player to 6
  498. command /rule:
  499. trigger:
  500. message "&5==================================================="
  501. message "&6先に相手のネクサスを5回破壊したチームが勝利です"
  502. message "&6敵チームのHPが1になると自軍のチームメイトは一旦全員スポーン地点にワープされます"
  503. message "&5==================================================="
  504. command /start:
  505. permission: skript.admin
  506. trigger:
  507. broadcast "&6ゲームを開始します、Kitを選択してください"
  508. execute console command "/random"
  509. command "/gamemode 0 @a"
  510. execute console command "/rs"
  511. loop all players:
  512. if {red.%loop-player%} or {blue.%loop-player%} is true:
  513. give chest named "&6Kit選択" to loop-player
  514. broadcast "&610秒後に開戦します"
  515. wait 5 seconds
  516. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  517. broadcast "&65"
  518. wait 1 seconds
  519. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  520. broadcast "&64"
  521. wait 1 seconds
  522. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  523. broadcast "&63"
  524. wait 1 seconds
  525. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  526. broadcast "&62"
  527. wait 1 seconds
  528. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  529. broadcast "&61"
  530. wait 1 seconds
  531. execute console command "/playsound item.totem.use master @a ~ ~ ~ 1 1 1"
  532. broadcast "&6開戦!!"
  533. execute all players command "/rs"
  534. enable PvP in all worlds
  535. loop all players:
  536. if {blue.%loop-player%} is true:
  537. teleport loop-player to {blue1}
  538. stop loop
  539. loop all players:
  540. if {red.%loop-player%} is true:
  541. teleport loop-player to {red1}
  542. stop loop
  543. stop
  544. command /setxp <player> <number>:
  545. permission: skript.setxp
  546. trigger:
  547. set {xp.%arg 1%} to arg 2
  548. broadcast "&e%player%&9さんが&b%arg 1%&9さんの所持xpを&a%arg 2%xp&9にしました。"
  549. execute arg 1 command "/rs lobby"
  550. command /setkill <player> <number>:
  551. permission: skript.setkill
  552. trigger:
  553. set {kill.%arg 1%} to arg 2
  554. broadcast "&e%player%&9さんが&b%arg 1%&9さんのKillを&c%arg 2%&9Killにしました。"
  555. execute arg 1 command "/rs lobby"
  556. command /addxp [<player>] <number>:
  557. permission: skript.ad
  558. trigger:
  559. if arg 1 is set:
  560. if arg 2 is set:
  561. add arg 2 to {xp.%arg 1%}
  562. broadcast "&e%player%&9さんが&b%arg 1%&9さんの所持xpを&a%arg 2%xp&9増やしました。"
  563. execute arg 1 command "/rs lobby"
  564. stop
  565. if arg 1 is not set:
  566. loop all players:
  567. add 10 to {xp.%loop-player%}
  568. execute loop-player command "/rs lobby"
  569. broadcast "66全員のxpを10増やしました!"
  570. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement