chibimario

Untitled

May 5th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. on damage of player:
  2. victim is player
  3. if attacker is {Oni}:
  4. set attacker's helmet to air
  5. set victim's helmet to TNT
  6. remove speed from attacker
  7. remove speed from victim
  8. apply ambient speed 1 to victim for 1 day
  9. apply ambient speed 2 to attacker for 3 second
  10. wait a tick
  11. set {Oni} to victim
  12. broadcast "&f%{Oni}%がハンターになりました!"
  13. stop
  14.  
  15. command /tousoutyuu [<text>]:
  16. permission:op
  17. permission message:&fUnknown commands. Type "/help" for help.
  18. trigger:
  19. if arg 1 is "setlobby":
  20. set {Lobby} to player's location
  21. send "&f逃走中>> &fロビーを設定しました"
  22. stop
  23. if arg 1 is "setonispawn":
  24. set {oniSpawn} to player's location
  25. send "&f逃走中>> &fゲームのスポーン地点を設定しました"
  26. stop
  27. if arg 1 is "setspawn":
  28. set {Spawn} to player's location
  29. send "&f逃走中>> &fゲームのスポーン地点を設定しました"
  30. stop
  31. if arg 1 is "start":
  32. clear {Oni}
  33. set {Count} to 240
  34. wait 1 tick
  35. set {Oni} to random player out of all players
  36. set {Oni}'s helmet to diamond_helmet
  37. broadcast "&d%{Oni}%&cがハンターになりました!"
  38. broadcast "&c逃走中&6開始!"
  39. loop all players:
  40. apply ambient speed 1 to {Oni} for 1 day
  41. apply ambient instant health 10 to loop-player for 1 day
  42. apply ambient strength 100 to loop-player for 1 day
  43. set {Count} to 360
  44. if loop-player is not {Oni}:
  45. teleport loop-player to {Spawn}
  46. if loop-player is {Oni}:
  47. wait 5 seconds
  48. teleport {Oni} to {oniSpawn}
  49. wait 120 seconds
  50.  
  51. while {Count} is more than 0:
  52. wait 1 seconds
  53. remove 1 from {Count}
  54. set loop-player's helmet to air
  55. broadcast "&fタイムアップ"
  56. teleport loop-player to {Lobby}
  57. stop
  58. if arg 1 is "stop":
  59. set {Count} to 0
  60. send "&f逃走中>> &fゲームをストップしました"
  61. clear {Oni}
  62. stop
  63. else:
  64. send "/tousoutyuu setlobby"
  65. send "/tousoutyuu setspawn"
  66. send "/tousoutyuu start"
  67. send "/tousoutyuu stop"
  68. send "/tousoutyuu setonispawn"
  69. every 10 tick:
  70. loop all players:
  71. wipe loop-player's sidebar
  72. set name of sidebar of loop-player to "&f逃走中"
  73. set score "&fゲーム終了まで" in sidebar of loop-player to {Count}
  74. set score "&c現在のハンター %{Oni}%" in sidebar of loop-player to -1
  75. stop
  76. on disconnect:
  77. if player is {Oni}:
  78. execute console command "/onigokko stop"
  79. broadcast "&f逃走中>> &fハンターが&cログアウト&fしたため、ゲームが終了されました"
  80. broadcast "&cログアウト/log out - %player%"
  81. stop
  82. on join:
  83. teleport player to {Lobby}
  84. broadcast "&aLogin - %player%"
  85. stop
  86. on inventory click:
  87. if clicked slot type is armor:
  88. if player's helmet is tnt:
  89. cancel eventon death:
  90. on death
  91. if attacker is set:
  92. broadcast "%victim%は%attacker%に捕まった"
Add Comment
Please, Sign In to add comment