sora200507

Untitled

Apr 30th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. on damage:
  2. if Line 1 of attacker's tool's lore contains "リス地設定":
  3. execute console command "/spawnpoint %attacker%"
  4. if Line 2 of attacker's tool's lore contains "HP回復":
  5. set {_a} to Line 2 of attacker's tool's lore
  6. numpick(Line 2 of attacker's tool's lore)
  7. message "%{_re}%" to attacker
  8. set {_num} to {_re}
  9. set {_num1} to {_num} * 20
  10. set {_num2} to {_num1} / 100
  11. set {_num3} to damage * {_num2}
  12. add {_num3} to attacker's health
  13. if Line 3 of attacker's tool's lore contains "放火":
  14. execute console command "execute %attacker% ~ ~ ~ /setblock ~ ~ ~ fire 0 keep"
  15. if Line 4 of attacker's tool's lore contains "爆発":
  16. set {_a} to Line 4 of attacker's tool's lore
  17. numpick({_a})
  18. set {_num} to {_re}
  19. make a safe explosion of power {_num}
  20. set {isexplo.%attacker%} to true
  21. if Line 6 of attacker's tool's lore contains "ウィザー":
  22. execute console command "/effect %victim% wither 10 1"
  23. every 2 ticks:
  24. loop all players:
  25. set {_num1} to 0
  26. if Line 5 of loop-player's leggings's lore contains "矢殺し":
  27. set {_a} to Line 5 of loop-player's leggings's lore
  28. numpick({_a})
  29. set {_num} to {_re}
  30. {power.%loop-player%} is greater than or equal to 2
  31. remove 2 from {power.%loop-player%}
  32. loop entities in radius {_num1} of loop-player's location:
  33. loop-entity-1 is an arrow
  34. kill the loop-entity-1
  35. on damage:
  36. if {isexplo.%victim%} is set:
  37. cancel event
  38. clear {isexplo.%victim%}
  39. command /setlore <number> <text>:
  40. permission:skript.admin
  41. trigger:
  42. set line arg-1 of player's tool's lore to arg-2
  43. on right click on a sign:
  44. player's tool is not air
  45. if line 1 is "LoreSet":
  46. line 2 is set
  47. line 4 is set
  48. line 3 is set
  49. set {_line} to line 2
  50. evaluate "set line %line 2% of player's tool's lore to ""%line 3%"""
  51. set event-block to air
  52. function numpick(t: text) :: number:
  53. set {_text} to {_t}
  54. set {_args::*} to {_text} split at ""
  55. set {_count} to 1
  56. set {_re} to 0
  57. set {_b} to 1
  58. while {_args::%{_count}%} is set:
  59. set {_num} to {_args::%{_count}%} parsed as number
  60. if {_num} is set:
  61. add {_num} * {_b} to {_re}
  62. set {_b} to {_b} * 10
  63. clear {_num}
  64. add 1 to {_count}
  65. return {_re}
Add Comment
Please, Sign In to add comment