Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.83 KB | None | 0 0
  1. command /jk:
  2. permission: skript.ad
  3. trigger:
  4. loop all players:
  5. if {opjoin} is false:
  6. if loop-player do not have permission "sk.admin":
  7. set {oni} to random player of loop-player
  8. set {dete} to random player of loop-players
  9. if {opjoin} is true:
  10. set {oni} to random player of all players
  11. set {dete} to random player of all players
  12. if {oni} is {dete}:
  13. delete {dete}
  14. broadcast "&9MurderとDetectiveが被ったので今回のゲームはDetectiveが居ません"
  15. loop all players:
  16. if loop-player is not {oni}:
  17. if {opjoin} is true:
  18. add loop-player to {allplayer::*}
  19. if {opjoin} is false:
  20. if loop-player do not have permission "sk.admin":
  21. add loop-player to {allplayer::*}
  22. if loop-player is {oni}:
  23. message "&cYour Murder!!" to loop-player
  24. if loop-player is {dete}:
  25. message "&bYour Detective!!" to loop-player
  26. if loop-player has permission "sk.admin":
  27. set {logs.%loop-player%} to false
  28. loop {allplayer::*}:
  29. add 1 to {players}
  30. add 1 to {member}
  31. add 1 to {member} #Muderの分とDetectiveの分
  32. execute {oni} command "/role murder"
  33. execute {allplayer::*} command "/role innocent"
  34. execute {dete} command "/role detective"
  35. execute {allplayer::*} command "/rs"
  36. execute {oni} command "/rs"
  37. wait 1 seconds
  38. loop all players:
  39. if loop-player has permission "sk.admin":
  40. set {logs.%loop-player%} to true
  41. stop
  42. command /opjoin <text>:
  43. permission: skript.ad
  44. trigger:
  45. if arg 1 is "on":
  46. set {opjoin} to true
  47. broadcast "&6opの参加を&aONに&6しました"
  48. stop
  49. if arg 1 is "off":
  50. set {opjoin} to false
  51. broadcast "&6opの参加を&cOFF&6にしました"
  52. command /stopgame:
  53. permission: skript.ad
  54. trigger:
  55. delete {oni}
  56. delete {allplayer::*}
  57. delete {death::*}
  58. delete {players}
  59. delete {member}
  60. delete {korosu}
  61. delete {dete}
  62. set {2m} to false
  63. set {1m} to false
  64. set {0m} to false
  65. set {game} to false
  66. message "リセットしました"
  67. execute console command "/tp 0 4 0"
  68. execute console command "/clear @a"
  69. execute console command "/gamemode 2 @a"
  70. execute console command "/kill @e[type=item]"
  71. execute console command "/tp @a 0 4 0"
  72. execute console command "/hd delete Dete"
  73. set {shot} to 1
  74. broadcast "&6ゲームを終了しました"
  75. loop all players:
  76. execute loop-player command "/rs lobby"
  77. execute console command "/pex user %loop-player% remove skript.admin"
  78. set {death.%player%} to false
  79. if {regame} is true:
  80. broadcast "&6リスタートが有効になっているので45秒後にリスタートします"
  81. wait 45 seconds
  82. execute console command "/start"
  83. command /stoprestart <text>:
  84. permission: skript.ad
  85. trigger:
  86. if arg 1 is "off":
  87. message "&6リスタートを&c無効にしました"
  88. set {regame} to false
  89. if arg 1 is "on":
  90. message "&6リスタートを&a有効にしました"
  91. set {regame} to true
  92. command /de:
  93. permission: skript.ad
  94. trigger:
  95. delete {oni}
  96. delete {dete}
  97. delete {allplayer::*}
  98. delete {players}
  99. delete {member}
  100. set {game} to false
  101. set {shot} to 1
  102. execute console command "/hd delete Dete"
  103. message "リセットしました"
  104. loop all players:
  105. set {death.%loop-player%} to false
  106. command /start:
  107. permission: skript.ad
  108. trigger:
  109. set {game} to true
  110. if {game} is true:
  111. broadcast "&65秒後にゲームを開始します。少々ラグが生じますが気にしないでください"
  112. execute console command "/jk"
  113. wait 5 seconds
  114. if {member} < 2:
  115. broadcast "&6人数が足りないのでゲームを開始できません"
  116. execute console command "/stopgame"
  117. stop
  118. execute console command "/gamemode 2 @a"
  119. execute console command "/kill @e[type=item]"
  120. execute console command "/kill @e[type=arrow]"
  121. execute console command "/random"
  122. loop all players:
  123. if {invs.%loop-player%} is true:
  124. execute loop-player command "/invv"
  125. broadcast "&610秒後にMurderに剣が渡されます"
  126. wait 5 seconds
  127. broadcast "&e5"
  128. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  129. wait 1 seconds
  130. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  131. broadcast "&e4"
  132. wait 1 seconds
  133. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  134. broadcast "&e3"
  135. wait 1 seconds
  136. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  137. broadcast "&e2"
  138. wait 1 seconds
  139. execute console command "/playsound ui.button.click master @a ~ ~ ~ 1 1 1"
  140. broadcast "&e1"
  141. wait 1 seconds
  142. broadcast "&6Murderに剣が与えられました"
  143. execute console command "/playsound entity.zombie_villager.converted master @a ~ ~ ~ 1 1 1"
  144. set slot 1 of {oni} to iron sword
  145. set slot 0 of {dete} to bow
  146. set slot 1 of {dete} to arrow
  147. command /random:
  148. trigger:
  149. set {map} to random integer between 1 and 4
  150. if {map} is 1:
  151. broadcast "&l今回のMap:&f&6いつもの館"
  152. broadcast "&6[製作者] &f&nsiso_ & jeek2008 (解雇済み)"
  153. loop all players:
  154. execute loop-player command "/map1"
  155. if {map} is 2:
  156. broadcast "&l今回のMap:&f&7刑務所"
  157. broadcast "&6[製作者] &f&nfutabanyan106"
  158. loop all players:
  159. execute loop-player command "/map2"
  160. if {map} is 3:
  161. broadcast "&l今回のMap:&f&aDesert"
  162. broadcast "&6[製作者] &f&nfutabanyan106"
  163. loop all players:
  164. execute loop-player command "/map3"
  165. if {map} is 4:
  166. broadcast "&l今回のMap:&f&0Dark The Snow"
  167. broadcast "&6[製作者] &f&nToppi1228"
  168. loop all players:
  169. execute loop-player command "/map4"
  170. command /map1:
  171. trigger:
  172. set {spawn.x} to random integer between 1 and 4
  173. if {spawn.x} is 1:
  174. teleport player to {spawn1}
  175. if {spawn.x} is 2:
  176. teleport player to {spawn2}
  177. if {spawn.x} is 3:
  178. teleport player to {spawn3}
  179. if {spawn.x} is 4:
  180. teleport player to {spawn4}
  181. command /map2:
  182. trigger:
  183. set {spawn.l} to random integer between 1 and 4
  184. if {spawn.l} is 1:
  185. teleport player to {spawn5}
  186. if {spawn.l} is 2:
  187. teleport player to {spawn6}
  188. if {spawn.l} is 3:
  189. teleport player to {spawn7}
  190. if {spawn.l} is 4:
  191. teleport player to {spawn8}
  192. command /map3:
  193. trigger:
  194. set {spawn.n} to random integer between 1 and 4
  195. if {spawn.n} is 1:
  196. teleport player to {spawn9}
  197. if {spawn.n} is 2:
  198. teleport player to {spawn10}
  199. if {spawn.n} is 3:
  200. teleport player to {spawn11}
  201. if {spawn.n} is 4:
  202. teleport player to {spawn12}
  203. command /map4:
  204. trigger:
  205. set {spawn.b} to random integer between 1 and 4
  206. if {spawn.b} is 1:
  207. teleport player to {spawn13}
  208. if {spawn.b} is 2:
  209. teleport player to {spawn14}
  210. if {spawn.b} is 3:
  211. teleport player to {spawn14}
  212. if {spawn.b} is 4:
  213. teleport player to {spawn16}
  214. command /spawnsett <text>:
  215. permission: tag.spawn
  216. trigger:
  217. if arg 1 is "1":
  218. set {spawn1} to location of player
  219. message "1"
  220. if arg 1 is "2":
  221. set {spawn2} to location of player
  222. message "2"
  223. if arg 1 is "3":
  224. set {spawn3} to location of player
  225. message "3"
  226. if arg 1 is "4":
  227. set {spawn4} to location of player
  228. message "4"
  229. if arg 1 is "5": #ここからmap2
  230. set {spawn5} to location of player
  231. message "5"
  232. if arg 1 is "6":
  233. set {spawn6} to location of player
  234. message "6"
  235. if arg 1 is "7":
  236. set {spawn7} to location of player
  237. message "7"
  238. if arg 1 is "8":
  239. set {spawn8} to location of player
  240. message "8"
  241. if arg 1 is "9": #map3
  242. set {spawn9} to location of player
  243. message "9"
  244. if arg 1 is "10":
  245. set {spawn10} to location of player
  246. message "10"
  247. if arg 1 is "11":
  248. set {spawn11} to location of player
  249. message "11"
  250. if arg 1 is "12":
  251. set {spawn12} to location of player
  252. message "12"
  253. if arg 1 is "13": #map4
  254. set {spawn13} to location of player
  255. message "13"
  256. if arg 1 is "14":
  257. set {spawn14} to location of player
  258. message "14"
  259. if arg 1 is "15":
  260. set {spawn15} to location of player
  261. message "15"
  262. if arg 1 is "16":
  263. set {spawn16} to location of player
  264. message "16"
  265. if arg 1 is "delete":
  266. delete {spawn1}
  267. delete {spawn2}
  268. delete {spawn3}
  269. delete {spawn4}
  270. delete {spawn5}
  271. delete {spawn6}
  272. delete {spawn7}
  273. delete {spawn8}
  274. delete {spawn9}
  275. delete {spawn10}
  276. delete {spawn11}
  277. delete {spawn12}
  278. delete {spawn13}
  279. delete {spawn14}
  280. delete {spawn15}
  281. delete {spawn16}
  282. message "deleted"
  283. stop
  284. command /ma4 delete:
  285. permission: skript.ad
  286. trigger:
  287. delete {spawn13}
  288. delete {spawn14}
  289. delete {spawn15}
  290. delete {spawn16}
  291. message "aa"
  292. command /ma3 delete:
  293. permission: skript.ad
  294. trigger:
  295. delete {spawn12}
  296. delete {spawn11}
  297. delete {spawn10}
  298. delete {spawn9}
  299. message "aa&a"
  300. command /invv:
  301. trigger:
  302. if {inv.%player%} is true:
  303. execute console command "/effect %player% minecraft:invisibility 3 1 true"
  304. stop
  305. if {inv2.%player%} is true:
  306. execute console command "/effect %player% minecraft:invisibility 5 1 true"
  307. stop
  308. if {inv3.%player%} is true:
  309. execute console command "/effect %player% minecraft:invisibility 10 1 true"
  310. stop
  311. on pick up of gold ingot:
  312. if {sinnsoku.%player%} is true:
  313. apply speed 2 to the player for 20 tick
  314. if {sinnsoku2.%player%} is true:
  315. apply speed 2 to the player for 40 tick
  316. if {sinnsoku3.%player%} is true:
  317. apply speed 2 to the player for 1 seconds
  318. if {luck.%player%} is true:
  319. chance of 10%:
  320. give gold ingot to player
  321. message "&eラッキー"
  322. if {luck2.%player%} is true:
  323. chance of 20%:
  324. give gold ingot to player
  325. message "&eラッキー"
  326. if {luck3.%player%} is true:
  327. chance of 30%:
  328. give gold ingot to player
  329. message "&eラッキー"
  330. message "&a+1xp"
  331. add 1 to {stats.%player%.xp}
  332. if number of all gold ingot in player's inventory is greater than 8:
  333. if player do not have bow:
  334. chance of 20%:
  335. give arrow to player
  336. message "&e&lラッキー 矢が二つ手に入った"
  337. execute console command "/playsound entity.cat.ambient ambient %player% ~ ~ ~ 1 2"
  338. give bow to player
  339. give arrow to player
  340. wait 5 tick
  341. remove 10 gold ingot from player's inventory
  342. execute console command "/playsound item.armor.equip_diamond ambient %player% ~ ~ ~ 1 1"
  343. stop
  344. if player has bow:
  345. give arrow to player
  346. wait 5 tick
  347. remove 10 gold ingot from player's inventory
  348. on rightclick holding gold ingot:
  349. if number of all gold ingot in player's inventory is greater than 9:
  350. if player do not have bow:
  351. chance of 10%:
  352. give arrow to player
  353. message "&eラッキー☆ 矢が二つ手に入った"
  354. execute console command "/playsound entity.cat.ambient ambient %player% ~ ~ ~ 1 2"
  355. give bow to player
  356. give arrow to player
  357. wait 5 tick
  358. remove 10 gold ingot from player's inventory
  359. execute console command "/playsound item.armor.equip_diamond ambient %player% ~ ~ ~ 1 1"
  360. stop
  361. if player has bow:
  362. give arrow to player
  363. wait 5 tick
  364. remove 10 gold ingot from player's inventory
  365. else:
  366. if player do not have 10 gold ingot:
  367. message "&6弓と交換するには金が足りません!"
  368. on pick up of bow:
  369. if player is {oni}:
  370. cancel event
  371. stop
  372. if player has bow:
  373. cancel event
  374. stop
  375. broadcast "&a%player%が&bDetectiveの弓を拾った"
  376. give arrow to player
  377. on rightclick holding iron sword:
  378. if {shot} is 0:
  379. message "&6もう矢を発射しました!"
  380. stop
  381. remove 1 from {shot}
  382. make the player shoot a arrow at speed 10
  383. wait 1 seconds
  384. if {players} is 0:
  385. broadcast "&cまーだー勝ち"
  386. wait 5 seconds
  387. execute console command "/stopgame"
  388. on leftclick holding bow:
  389. if player is {oni}:
  390. if player is sneaking:
  391. if {shine.%player%} is true:
  392. execute console command "/effect @a minecraft:glowing 2"
  393. broadcast "&cMurderが心眼を使った!"
  394. stop
  395. if {shine2.%player%} is true:
  396. execute console command "/effect @a minecraft:glowing 4"
  397. broadcast "&cMurderが心眼を使った!"
  398. stop
  399. if {shine3.%player%} is true:
  400. execute console command "/effect @a minecraft:glowing 8"
  401. broadcast "&cMurderが心眼を使った!"
  402. stop
  403. command /players:
  404. permission: skript.ad
  405. trigger:
  406. message "&a参加者は%{allplayer::*}%です!"
  407. message "&d人数は%{member}%です"
  408. message "&cマーダーは%{oni}%です"
  409. message "&bDetectiveは%{dete}%です"
  410. on damage of player:
  411. if {game} is true:
  412. if attacker's tool is iron sword:
  413. if {players} is 1:
  414. broadcast "&c村人を全員倒した、マーダーの勝利!"
  415. execute console command "/playsound minecraft:entity.wolf.howl master @a ~ ~ ~ 1 1 1"
  416. set victim's gamemode to spectator
  417. wait 1 seconds
  418. broadcast "&5===================================================="
  419. broadcast " &6今回のMurder &6Murderを倒した人"
  420. broadcast " &c%{oni}% いませんでした"
  421. wait 7 seconds
  422. execute console command "/stopgame"
  423. message "&a+30xp" to attacker
  424. add 30 to {stats.%attacker%.xp}
  425. add 1 to {stats.%attacker%.kill}
  426. stop
  427. set victim's gamemode to spectator
  428. remove 1 from {players}
  429. set {death.%victim%} to true
  430. execute console command "/playsound entity.hostile.hurt master @a ~ ~ ~ 1 1 1"
  431. message "&a+5xp" to attacker
  432. add 5 to {stats.%attacker%.xp}
  433. add 1 to {stats.%attacker%.kill}
  434. if victim is {dete}:
  435. drop bow at location of victim
  436. drop arrow at location of victim
  437. broadcast "&bDetectiveが倒された"
  438. loop all players:
  439. set action bar of loop-player to "&c%victim%が倒された、残り&a%{players}%&c人"
  440. stop
  441. if projectile is arrow:
  442. if victim is {oni}:
  443. broadcast "&aMurderを倒した、村人の勝利!"
  444. set {korosu} to attacker
  445. set victim's gamemode to spectator
  446. execute console command "/playsound entity.player.levelup master @a ~ ~ ~ 1 1 1"
  447. message "&a+15xp" to attacker
  448. add 15 to {stats.%attacker%.xp}
  449. add 1 to {stats.%attacker%.kill}
  450. loop all players:
  451. loop-player is {allplayer::*}:
  452. add 5 to {stats.%loop-player%.xp}
  453. message "&a+5xp" to loop-player
  454. wait 1 seconds
  455. broadcast " &6今回のMurder &6Murderを倒した人"
  456. broadcast " &c%{oni}% &a%{korosu}%"
  457. wait 7 seconds
  458. execute console command "/stopgame"
  459. stop
  460. if attacker is {oni}:
  461. if {players} is 1:
  462. broadcast "&c村人を全員倒した、マーダーの勝利!"
  463. execute console command "/playsound minecraft:entity.wolf.howl master @a ~ ~ ~ 1 1 1"
  464. set victim's gamemode to spectator
  465. wait 1 seconds
  466. broadcast "&5===================================================="
  467. broadcast " &6今回のMurder &6Murderを倒した人"
  468. broadcast " &c%{oni}% いませんでした"
  469. wait 7 seconds
  470. execute console command "/stopgame"
  471. message "&a+30xp" to attacker
  472. add 30 to {stats.%attacker%.xp}
  473. add 1 to {stats.%attacker%.kill}
  474. stop
  475. set victim's gamemode to spectator
  476. remove 1 from {players}
  477. set {death.%victim%} to true
  478. execute console command "/playsound entity.hostile.hurt master @a ~ ~ ~ 1 1 1"
  479. message "&a+5xp" to attacker
  480. add 5 to {stats.%attacker%.xp}
  481. add 1 to {stats.%attacker%.kill}
  482. if victim is {dete}:
  483. drop bow at location of victim
  484. drop arrow at location of victim
  485. broadcast "&bDetectiveが倒された"
  486. loop all players:
  487. set action bar of loop-player to "&c%victim%が倒された、残り&a%{players}%&c人"
  488. stop
  489. if victim is {oni}:
  490. broadcast "&cError"
  491. execute console command "/stopgame"
  492. stop
  493. else:
  494. set victim's gamemode to spectator
  495. set attacker's gamemode to spectator
  496. remove 15 from {stats.%attacker%.xp}
  497. message "&c-5xp" to attacker
  498. message "&6Murderではなかったようだ..." to attacker
  499. execute console command "/playsound entity.wither.spawn master %attacker% ~ ~ ~ 1 1 1"
  500. remove 2 from {players}
  501. broadcast "&d誤射:&5攻撃者 %attacker%・&c犠牲者 &e%victim%"
  502. remove 10 from {stats.%attacker%.xp}
  503. message "&c-10xp" to attacker
  504. loop all players:
  505. if loop-player has permission "sk.admin":
  506. message "&d誤射&5%attacker%・&e%victim% &6もし自殺だった場合その人をBAN or KICKしてください" to loop-player
  507. wait 30 tick
  508. if {players} is 0:
  509. broadcast "&5村人が誤って村人を倒してしまった、Murderの勝利"
  510. wait 10 seconds
  511. execute console command "/stopgame"
  512. stop
  513. else:
  514. cancel event
  515. if {game} is false:
  516. cancel event
  517. command /sinnda:
  518. permission: skript.ad
  519. trigger:
  520. remove 1 from {players}
  521. command /reloadstats [<text>]:
  522. aliases: /rs
  523. trigger:
  524. if arg 1 is not set:
  525. if {dete} is not set:
  526. wipe player's sidebar
  527. set name of sidebar of player to "&5Murder Mystery"
  528. set score "&6sisoPixel" in sidebar of player to 1
  529. set score "" in sidebar of player to 2
  530. set score "Detective: &bいません" in sidebar of player to 3
  531. set score "" in sidebar of player to 4
  532. set score "参加者: &a%{member}%" in sidebar of player to 5
  533. set score "" in sidebar of player to 6
  534. set score "Role: %{Role.%player%}%" in sidebar of player to 7
  535. set score "" in sidebar of player to 8
  536. stop
  537. wipe player's sidebar
  538. set name of sidebar of player to "&5Murder Mystery"
  539. set score "&6sisoPixel" in sidebar of player to 1
  540. set score "" in sidebar of player to 2
  541. set score "Detective: &b%{dete}%" in sidebar of player to 3
  542. set score "" in sidebar of player to 4
  543. set score "参加者: &a%{member}%" in sidebar of player to 5
  544. set score "" in sidebar of player to 6
  545. set score "Role: %{Role.%player%}%" in sidebar of player to 7
  546. set score "" in sidebar of player to 8
  547. stop
  548. if arg 1 is "deathdev":
  549. wipe player's sidebar
  550. set name of sidebar of player to "&5Murder Mystery"
  551. set score "&6sisoPixel" in sidebar of player to 1
  552. set score "" in sidebar of player to 2
  553. set score "Detective: &a死亡" in sidebar of player to 3
  554. set score "" in sidebar of player to 4
  555. set score "Time Left: &aTime" in sidebar of player to 5
  556. set score "Innocent Left: &a%{players}%" in sidebar of player to 6
  557. set score "" in sidebar of player to 7
  558. set score "Role: %{Role.%player%}%" in sidebar of player to 8
  559. set score "" in sidebar of player to 9
  560. if arg 1 is "lobby":
  561. wipe player's sidebar
  562. set name of sidebar of player to "&eしその鯖"
  563. set score "&6sisoPixel" in sidebar of player to 1
  564. set score "" in sidebar of player to 2
  565. set score "XP: &a%{stats.%player%.xp}%" in sidebar of player to 3
  566. set score "Kills: &c%{stats.%player%.kill}%" in sidebar of player to 4
  567. set score "&b===Your Stats===" in sidebar of player to 5
  568. set score "" in sidebar of player to 6
  569. on first join:
  570. wait a tick
  571. set player's gamemode to adventure
  572. execute console command "/tp %player% 0 4 0"
  573. set tab header to "&5Murder Mystery" and footer to "&6sisoPixel" for player
  574. on join:
  575. wait a tick
  576. set player's gamemode to adventure
  577. execute console command "/tp %player% 0 4 0"
  578. broadcast "&e%player%がサーバーに参加しました"
  579. execute console command "/clear %player%"
  580. loop all players:
  581. set tab header to "&5Murder Mystery" and footer to "&6sisoPixel &a%number of all players%&7/15" for loop-player
  582. on quit:
  583. if player is {oni}:
  584. broadcast "&6鬼が抜けたので強制終了します、※ゲーム中にサーバーを抜けるのは控えてください"
  585. execute console command "/stopgame"
  586. stop
  587. if player is {allplayer::*}:
  588. if {death.%player%} is true:
  589. remove 1 from {member}
  590. stop
  591. if player is {allplayer::*}:
  592. remove 1 from {players}
  593. remove 1 from {member}
  594. command /setxp <player> <number>:
  595. permission: skript.setxp
  596. trigger:
  597. set {stats.%arg 1%.xp} to arg 2
  598. broadcast "&e%player%&9さんが&b%arg 1%&9さんの所持xpを&a%arg 2%xp&9にしました。"
  599. execute arg 1 command "/rs lobby"
  600. command /setkill <player> <number>:
  601. permission: skript.setkill
  602. trigger:
  603. set {stats.%arg 1%.kill} to arg 2
  604. broadcast "&e%player%&9さんが&b%arg 1%&9さんのKillを&c%arg 2%&9Killにしました。"
  605. execute arg 1 command "/rs lobby"
  606. command /addxp <player> <number>:
  607. permission: skript.ad
  608. trigger:
  609. if arg 1 is set:
  610. if arg 2 is set:
  611. add arg 2 to {stats.%arg 1%.xp}
  612. broadcast "&e%player%&9さんが&b%arg 1%&9さんの所持xpを&a%arg 2%xp&9増やしました。"
  613. execute arg 1 command "/rs lobby"
  614. stop
  615. if arg 1 is not set:
  616. loop all players:
  617. add 10 to {stats.%loop-player%.xp}
  618. execute loop-player command "/rs lobby"
  619. broadcast "66全員のxpを10増やしました!"
  620. stop
  621. command /Role <text>:
  622. trigger:
  623. if arg 1 is "murder":
  624. set {Role.%player%} to "&cMurder"
  625. stop
  626. if arg 1 is "Innocent":
  627. set {Role.%player%} to "&aInnocent"
  628. stop
  629. if arg 1 is "detective":
  630. set {Role.%player%} to "&bDetective"
  631. stop
  632. on drop:
  633. if player do not have permission "sk.admin":
  634. cancel event
  635. on command "fun":
  636. message "つかうな失せろ"
  637. cancel event
  638. on command "kifumenu":
  639. message "つかうな失せろ"
  640. cancel event
  641. command /fun:
  642. trigger:
  643. stop
  644. command /funmenu:
  645. trigger:
  646. stop
  647. on right click on a villager:
  648. wait 1 ticks
  649. open chest with 2 row named "&6Perkの購入" to player
  650. format slot 0 of player with experience bottle named "&bXP : &e%{stats.%player%.xp}%" to close
  651. if {sinnsoku.%player%} is true:
  652. if {stats.%player%.xp} >= 700:
  653. format slot 2 of player with sugar named "&9&l神速Lv2" with lore "&d金を取ると足が速くなります。&a(700xp)" to close then run [execute player command "/pay sinnsoku2"]
  654. if {stats.%player%.xp} <= 700:
  655. format slot 2 of player with sugar named "&9&l神速Lv2" with lore "&d金を取ると足が速くなります。&c(あなたは購入条件を満たしてません!) &6(必要xp=700)" to be unstealable
  656. stop
  657. else:
  658. if {stats.%player%.xp} >= 500:
  659. format slot 2 of player with sugar named "&9&l神速" with lore "&d金を取ると足が速くなります。&a(500xp)" to close then run [execute player command "/pay sinnsoku"]
  660. else:
  661. format slot 2 of player with sugar named "&9&l神速" with lore "&d金を取ると足が速くなります。&c(あなたは購入条件を満たしてません!) &6(必要xp=500)" to be unstealable
  662. if {sinnsoku2.%player%} is true:
  663. if {stats.%player%.xp} >= 1000:
  664. format slot 2 of player with sugar named "&9&l神速Lv3" with lore "&d金を取ると足が速くなります。&a(1000xp)" to close then run [execute player command "/pay sinnsoku3"]
  665. if {stats.%player%.xp} <= 1000:
  666. format slot 2 of player with sugar named "&9&l神速Lv3" with lore "&d金を取ると足が速くなります。&c(あなたは購入条件を満たしてません!) &6(必要xp=1000)" to be unstealable
  667. if {sinnsoku3.%player%} is true:
  668. format slot 2 of player with sugar named "&b&l神速 &aComplete!!" to be unstealable
  669. #luck
  670. if {luck.%player%} is true:
  671. if {stats.%player%.xp} >= 800:
  672. format slot 3 of player with gold ingot named "&e&lラッキーLv2" with lore "&d金を取った時20%%の確率でもう一個金が手に入ります。&a(800xp)" to close then run [execute player command "/pay luck2"]
  673. if {stats.%player%.xp} <= 800:
  674. format slot 3 of player with gold ingot named "&e&lラッキーLv2" with lore "&d金を取った時20%%の確率でもう一個金が手に入ります。&c(あなたは購入条件を満たしてません!) &6(必要xp=800)" to be unstealable
  675. stop
  676. else:
  677. if {stats.%player%.xp} >= 600:
  678. format slot 3 of player with gold ingot named "&e&lラッキー" with lore "&d金を取った時10%%の確率でもう一個金が手に入ります。&a(600xp)" to close then run [execute player command "/pay luck"]
  679. else:
  680. format slot 3 of player with gold ingot named "&e&l神速" with lore "&d金を取った時10%%の確率でもう一個金が手に入ります。&c(あなたは購入条件を満たしてません!) &6(必要xp=600)" to be unstealable
  681. if {luck2.%player%} is true:
  682. if {stats.%player%.xp} >= 1000:
  683. format slot 3 of player with gold ingot named "&e&lラッキーLv3" with lore "&d金を取った時30%%の確率でもう一個金が手に入ります。&a(1000xp)" to close then run [execute player command "/pay luck3"]
  684. if {stats.%player%.xp} <= 1000:
  685. format slot 3 of player with gold ingot named "&e&l神速Lv3" with lore "&d金を取った時30%%の確率でもう一個金が手に入ります。&c(あなたは購入条件を満たしてません!) &6(必要xp=1000)" to be unstealable
  686. if {luck3.%player%} is true:
  687. format slot 3 of player with gold ingot named "&e&lラッキー &aComplete!!" to be unstealable
  688. #心眼
  689. if {shine.%player%} is true:
  690. if {stats.%player%.xp} >= 350:
  691. format slot 11 of player with Pumpkin named "&5&l心眼Lv2" with lore "&d弓を右クリックすると全プレイヤーが光ります、鬼のみ使用可能。 &a(350xp)" to close then run [execute player command "/pay shine2"]
  692. if {stats.%player%.xp} <= 350:
  693. format slot 11 of player with Pumpkin named "&5&l心眼Lv2" with lore "&d弓を右クリックすると全プレイヤーが光ります、鬼のみ使用可能。 &c(あなたは購入条件を満たしてません!) &6(必要xp=350)" to be unstealable
  694. stop
  695. else:
  696. if {stats.%player%.xp} >= 150:
  697. format slot 11 of player with Pumpkin named "&5&l心眼" with lore "&d弓を右クリックすると全プレイヤーが光ります、鬼のみ使用可能。&a(150xp)" to close then run [execute player command "/pay shine"]
  698. else:
  699. format slot 11 of player with Pumpkin named "&5&l心眼" with lore "&d弓を右クリックすると全プレイヤーが光ります、鬼のみ使用可能。&c(あなたは購入条件を満たしてません!) &6(必要xp=150)" to be unstealable
  700. if {shine2.%player%} is true:
  701. if {stats.%player%.xp} >= 500:
  702. format slot 11 of player with Pumpkin named "&5&l心眼Lv3" with lore "&d弓を右クリックすると全プレイヤーが光ります、鬼のみ使用可能。&a(500xp)" to close then run [execute player command "/pay shine3"]
  703. if {stats.%player%.xp} <= 1000:
  704. format slot 11 of player with Pumpkin named "&5&l心眼Lv3" with lore "&d弓を右クリックすると全プレイヤーが光ります、鬼のみ使用可能。&c(あなたは購入条件を満たしてません!) &6(必要xp=500)" to be unstealable
  705. if {shine3.%player%} is true:
  706. format slot 11 of player with Pumpkin named "&5&l心眼 &aComplete!!" to be unstealable
  707. #透明
  708. if {inv.%player%} is true:
  709. if {stats.%player%.xp} >= 450:
  710. format slot 4 of player with Bone named "&7&l透明Lv2" with lore "&d開始時に透明が付きます。 &a(450xp)" to close then run [execute player command "/pay inv2"]
  711. if {stats.%player%.xp} <= 450:
  712. format slot 4 of player with Bone named "&7&l透明Lv2" with lore "&d開始時に透明が付きます。 &c(あなたは購入条件を満たしてません!) &6(必要xp=450)" to be unstealable
  713. stop
  714. else:
  715. if {stats.%player%.xp} >= 130:
  716. format slot 4 of player with Bone named "&7&l透明" with lore "&d開始時に透明が付きます。&a(130xp)" to close then run [execute player command "/pay inv"]
  717. else:
  718. format slot 4 of player with Bone named "&7&l透明" with lore "&d開始時に透明が付きます。&c(あなたは購入条件を満たしてません!) &6(必要xp=130)" to be unstealable
  719. if {inv2.%player%} is true:
  720. if {stats.%player%.xp} >= 1200:
  721. format slot 4 of player with Bone named "&7&l透明Lv3" with lore "&d開始時に透明が付きます。&a(1200xp)" to close then run [execute player command "/pay inv3"]
  722. if {stats.%player%.xp} <= 1200:
  723. format slot 4 of player with Bone named "&7&l透明Lv3" with lore "&d開始時に透明が付きます。&c(あなたは購入条件を満たしてません!) &6(必要xp=1200)" to be unstealable
  724. if {inv3.%player%} is true:
  725. format slot 4 of player with Bone named "&7&l透明 &aComplete!!" to be unstealable
  726. command /pay <text>:
  727. trigger:
  728. if arg 1 is "sinnsoku":
  729. broadcast "&e%player%が&9&l神速&6を購入しました!"
  730. set {sinnsoku.%player%} to true
  731. remove 500 from {stats.%player%.xp}
  732. if arg 1 is "sinnsoku2":
  733. broadcast "&e%player%が&b&l神速Lv2&6を購入しました!"
  734. delete {sinnsoku.%player%}
  735. set {sinnsoku2.%player%} to true
  736. remove 700 from {stats.%player%.xp}
  737. if arg 1 is "sinnsoku3":
  738. broadcast "&e%player%が&b&l神速Lv3&6を購入しました!"
  739. delete {sinnsoku2.%player%}
  740. set {sinnsoku3.%player%} to true
  741. remove 1000 from {stats.%player%.xp}
  742. #ちゃう
  743. if arg 1 is "luck":
  744. broadcast "&e%player%が&e&lラッキー&6を購入しました!"
  745. set {luck.%player%} to true
  746. remove 600 from {stats.%player%.xp}
  747. if arg 1 is "luck2":
  748. broadcast "&e%player%が&e&lラッキーLv2&6を購入しました!"
  749. delete {luck.%player%}
  750. set {luck2.%player%} to true
  751. remove 800 from {stats.%player%.xp}
  752. if arg 1 is "luck3":
  753. broadcast "&e%player%が&e&lラッキーLv3&6を購入しました!"
  754. delete {luck2.%player%}
  755. set {luck3.%player%} to true
  756. remove 1000 from {stats.%player%.xp}
  757. #しんがん
  758. if arg 1 is "shine":
  759. broadcast "&e%player%が&5&l心眼&6を購入しました!"
  760. set {shine.%player%} to true
  761. remove 150 from {stats.%player%.xp}
  762. if arg 1 is "shine2":
  763. broadcast "&e%player%が&5&l心眼Lv2&6を購入しました!"
  764. delete {shine.%player%}
  765. set {shine2.%player%} to true
  766. remove 350 from {stats.%player%.xp}
  767. if arg 1 is "shine3":
  768. broadcast "&e%player%が&5&l心眼Lv3&6を購入しました!"
  769. delete {shine2.%player%}
  770. set {shine3.%player%} to true
  771. remove 500 from {stats.%player%.xp}
  772. #inv
  773. if arg 1 is "inv":
  774. broadcast "&e%player%が&7&l透明さん&6を購入しました!"
  775. set {inv.%player%} to true
  776. set {invs.%player%} to true
  777. remove 130 from {stats.%player%.xp}
  778. if arg 1 is "inv2":
  779. broadcast "&e%player%が&7&l透明さんLv2&6を購入しました!"
  780. delete {inv.%player%}
  781. set {inv2.%player%} to true
  782. remove 450 from {stats.%player%.xp}
  783. if arg 1 is "inv3":
  784. broadcast "&e%player%が&7&l透明さんLv3&6を購入しました!"
  785. delete {inv2.%player%}
  786. set {inv3.%player%} to true
  787. remove 1200 from {stats.%player%.xp}
  788. every 10 minutes:
  789. execute console command "/me ビルダー募集してます Discord→https://discord.gg/PXtdk5Q"
  790. command /slot:
  791. trigger:
  792. message "&eXPギャンブルスタート!"
  793. message "&c-5xp"
  794. remove 5 from {stats.%player%.xp}
  795. wait 1 seconds
  796. message "&6・"
  797. wait 1 seconds
  798. message "&6・・"
  799. wait 1 seconds
  800. message "&6・・・"
  801. wait 1 seconds
  802. chance of 50%:
  803. message "&e勝ち!!!!"
  804. add 10 to {stats.%player%.xp}
  805. message "&a+10xp"
  806. execute player command "/rs lobby"
  807. if {game} is true:
  808. execute player command "/rs"
  809. stop
  810. message "&7負け..."
  811. execute player command "/rs lobby"
  812. if {game} is true:
  813. execute player command "/rs"
  814. #Report
  815. command /report [<player>] [<text>]:
  816. aliases: /rp
  817. trigger:
  818. if arg 1 is not set:
  819. message "&8&m----------------------------"
  820. message "/rp &c(player) &9(reson)"
  821. message "&8&m----------------------------"
  822. stop
  823. if arg 2 is not set:
  824. message "&8&m----------------------------"
  825. message "/rp &c(player) &9(reson)"
  826. message "&8&m----------------------------"
  827. stop
  828. add 1 to {log.hensuu}
  829. set {log::%{log.hensuu}%} to "%player%が報告 &c%arg 1% &9%arg 2%"
  830. play sound "entity.villager.ambient" at player
  831. loop all players:
  832. if loop-player is op:
  833. message "%player%が報告 &c%arg 1% &9%arg 2%"
  834. command /clogs:
  835. permission: skript.admin
  836. trigger:
  837. set {c.logs} to 1
  838. loop {log.hensuu} times:
  839. message "%{log::%{c.logs}%}%"
  840. add 1 to {c.logs}
  841. play sound "block.fire.extinguish" at player
  842. command /resetlogs:
  843. permission: skript.ad
  844. trigger:
  845. message "&cリセットしました。"
  846. set {log.hensuu} to 0
  847. play sound "block.anvil.place" at player
  848. loop all players:
  849. delete {sinnsoku.%loop-player%}
  850. command /fuckoff <text>:
  851. trigger:
  852. if arg 1 is "sinnsoku":
  853. delete {sinnsoku.%player%}
  854. delete {sinnsoku2.%player%}
  855. message "deleted"
  856. on rightclick on a cow:
  857. if player has 1 gold ingot:
  858. remove 1 gold ingot from player's inventory
  859. apply speed 2 to the player for 20 seconds
  860. command /tabchange [<text>] [<text>]:
  861. aliases: /tc
  862. permission: skript.ad
  863. trigger:
  864. play sound "entity.itemframe.place" at player
  865. if arg 1 is not set:
  866. message "&8使い方"
  867. message "&a&0/tabchange &5(text) &5(text) &7※/tc"
  868. loop all players:
  869. set tab header to "%colored arg-1%" and footer to "%colored arg-2%" for loop-player
  870. stop
  871. on rightclick holding paper:
  872. name of held item contains "100円寄付ありがとう"
  873. add 10 to {stats.%player%.xp}
  874. message "&a+10xp"
  875. execute player command "/rs lobby"
  876. remove 1 of held item from player
  877. on rightclick holding paper:
  878. name of held item contains "500円寄付ありがとう"
  879. add 50 to {stats.%player%.xp}
  880. execute player command "/rs lobby"
  881. message "&a+50xp"
  882. remove 1 of held item from player
  883. on rightclick holding paper:
  884. name of held item contains "vote特典"
  885. add 100 to {stats.%player%.xp}
  886. message "&a+100xp"
  887. broadcast "&e%player%&6さんが投票で&a100XP&6を手に入れました!"
  888. execute player command "/rs lobby"
  889. remove 1 of held item from player
  890. on rightclick holding paper:
  891. name of held item contains "ガチャ"
  892. remove 1 of held item from player
  893. set {g} to random integer between 1 and 4
  894. if {g} is 1:
  895. add 100 to {stats.%player%.xp}
  896. message "&a+100xp"
  897. broadcast "&e%player%&6がガチャ券で&a+100XP&6された"
  898. if {g} is 2:
  899. add 50 to {stats.%player%.xp}
  900. message "&a+50xp"
  901. if {g} is 3:
  902. add 10 to {stats.%player%.xp}
  903. message "&a+10xp"
  904. if {g} is 4:
  905. message "&9大チャンスの予感!!"
  906. wait 3 seconds
  907. chance of 60:
  908. add 150 to {stats.%player%.xp}
  909. message "&a+100xp"
  910. broadcast "&e%player%&bがガチャ券で大当たりを出した!!"
  911. stop
  912. message "予感は外れた..."
  913. execute player command "/rs lobby"
  914. remove 1 of held item from player
  915. command /murder:
  916. permission: skript.ad
  917. trigger:
  918. message "/startでスタート"
  919. message "/opjoin off/on でOPの参加を変える"
  920. message "/stoprestart on/off でリスタートのおんおふ"
  921. message "/stopgame で終了(バグが起きたときだけつかって)"
  922. message "&a/opjoin をオフにするとDetectiveが選ばれなくなるバグがあるから控えて"
  923. message "&a参加したくないときは、/sinndaをやって作業して"
  924. message "&6コマンドを不正に使ってる人いたらBANしね"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement