Advertisement
kama6012

point

Jul 30th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. variables:
  2. {bs.%player%.strength} = 0 #筋力
  3. {bs.%player%.intellect} = 0 #知力
  4. {bs.%player%.spell} = 0 #魔力
  5. {bs.%player%.dexterity} = 0 #器用さ
  6. {bs.%player%.bravery} = 0 #勇気
  7. {bs.%player%} = 0
  8.  
  9. on first join:
  10. set {bs.%player%} to 0
  11.  
  12. On SkillAPI level up:
  13. add 1 to {bs.%player%}
  14.  
  15. command /skill [<text>] [<text>] [<text>]:
  16. trigger:
  17. if arg-1 is "bp":
  18. if arg-2 is not set:
  19. if arg-3 is not set:
  20. open virtual chest inventory with size 1 named "&a残り&cBP &7: &e%{bs.%player%}%" to player
  21. create a gui slot 0 of player with iron sword named "&c筋力" to close then run player command "skill up 筋力"
  22. create a gui slot 1 of player with redstone named "&c知力" to close then run player command "skill up 知力"
  23. create a gui slot 2 of player with book named "&c魔力" to close then run player command "skill up 魔力"
  24. create a gui slot 3 of player with bow named "&c器用さ" to close then run player command "skill up 器用さ"
  25. create a gui slot 4 of player with nether star named "&c勇気" to close then run player command "skill up 勇気"
  26. if arg-1 is "up":
  27. if arg-3 is not set:
  28. if {bs.%player%} is more than 1:
  29. if arg-2 is "筋力":
  30. add 1 to {bs.%player%.strength}
  31. remove 1 from {bs.%player%}
  32. send "BPを筋力に振りました" to player
  33. if arg-2 is "知力":
  34. add 1 to {bs.%player%.intellect}
  35. remove 1 from {bs.%player%}
  36. send "BPを知力に振りました" to player
  37. if arg-2 is "魔力":
  38. add 1 to {bs.%player%.spell}
  39. remove 1 from {bs.%player%}
  40. send "BPを魔力に振りました" to player
  41. if arg-2 is "器用さ":
  42. add 1 to {bs.%player%.dexterity}
  43. remove 1 from {bs.%player%}
  44. send "BPを器用さに振りました" to player
  45. if arg-2 is "勇気":
  46. add 1 to {bs.%player%.bravery}
  47. remove 1 from {bs.%player%}
  48. send "BPを勇気に振りました" to player
  49. else:
  50. send "&cBPが足りません" to player
  51. if arg-1 is "reset":
  52. if arg-2 is not set:
  53. if arg-3 is not set:
  54. add {bs.%player%.strength} to {bs.%player%}
  55. add {bs.%player%.intellect} to {bs.%player%}
  56. add {bs.%player%.spell} to {bs.%player%}
  57. add {bs.%player%.dexterity} to {bs.%player%}
  58. add {bs.%player%.bravery} to {bs.%player%}
  59. set {bs.%player%.strength} to 0
  60. set {bs.%player%.intellect} to 0
  61. set {bs.%player%.spell} to 0
  62. set {bs.%player%.dexterity} to 0
  63. set {bs.%player%.bravery} to 0
  64. if arg-1 is "stats":
  65. if arg-2 is not set:
  66. if arg-3 is not set:
  67. send "&a---------------[ &cBP &a]---------------" to player
  68. send "&c筋力 &7: &e%{bs.%player%.strength}%" to player
  69. send "&f知力 &7: &e%{bs.%player%.intellect}%" to player
  70. send "&d魔力 &7: &e%{bs.%player%.spell}%" to player
  71. send "&a器用さ &7: &e%{bs.%player%.dexterity}%" to player
  72. send "&6勇気 &7: &e%{bs.%player%.bravery}%" to player
  73. send "&a---------------[ &cBP &a]---------------" to player
  74. if arg-1 is "add":
  75. if arg-2 is player:
  76. if arg-3 is number:
  77. if player has permission "skript.bp.add":
  78. add arg-3 to {bs.%arg 2%}
  79. if arg-1 is "remove":
  80. if arg-2 is player:
  81. if arg-3 is number:
  82. if player has permission "skript.bp.remove":
  83. remove arg-3 from {bs.%arg 2%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement