Advertisement
Shovelwarf_

RPG-main-

Dec 8th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.48 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 /bpskill [<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 chest with 1 rows named "&a残り&cBP &7: &e%{bs.%player%}%" to player
  21. Format slot 0 of player with iron sword named "&c筋力" with lore "&6Click!!" to run [execute player command "bpskill up 筋力"]
  22. Format slot 1 of player with iron sword named "&c知力" with lore "&6Click!!" to run [execute player command "bpskill up 知力"]
  23. Format slot 2 of player with iron sword named "&c魔力" with lore "&6Click!!" to run [execute player command "bpskill up 魔力"]
  24. Format slot 3 of player with iron sword named "&c器用さ" with lore "&6Click!!" to run [execute player command "bpskill up 器用さ"]
  25. Format slot 4 of player with iron sword named "&c勇気" with lore "&6Click!!" to run [execute player command "bpskill 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. if {bs.%player%} is 0:
  50. send "&cBPが足りません!"
  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%}
  84. command /menuskill [<text>]:
  85. trigger:
  86. if arg 1 is "meiji":
  87. open chest with 3 rows named "&aMeijiSkill" to player
  88. Format slot 0 of player with {skill1.%player%} named "%{skill1n.%player%}%" with lore "" to close
  89. Format slot 9 of player with iron sword named "&cSkill1" with lore "&7Skill1" to close
  90. Format slot 18 of player with {skill1.%player%} named "%{skill1n.%player%}%" with lore "" to close
  91. Format slot 1 of player with {skill2.%player%} named "%{skill2n.%player%}%" with lore "" to close
  92. Format slot 10 of player with iron sword named "&cSkill2" with lore "&7Skill2" to close
  93. Format slot 19 of player with {skill2.%player%} named "%{skill2n.%player%}%" with lore "" to close
  94. Format slot 2 of player with {skill3.%player%} named "%{skill3n.%player%}%" with lore "" to close
  95. Format slot 11 of player with iron sword named "&cSkill3" with lore "&7Skill3" to close
  96. Format slot 20 of player with {skill3.%player%} named "%{skill3n.%player%}%" with lore "" to close
  97. Format slot 3 of player with {skill4.%player%} named "%{skill4n.%player%}%" with lore "" to close
  98. Format slot 12 of player with iron sword named "&cSkill4" with lore "&7Skill4" to close
  99. Format slot 21 of player with {skill4.%player%} named "%{skill4n.%player%}%" with lore "" to close
  100. Format slot 4 of player with {skill5.%player%} named "%{skill5n.%player%}%" with lore "" to close
  101. Format slot 13 of player with iron sword named "&cSkill5" with lore "&7Skill5" to close
  102. Format slot 22 of player with {skill5.%player%} named "%{skill5n.%player%}%" with lore "" to close
  103. Format slot 5 of player with {skill6.%player%} named "%{skill6n.%player%}%" with lore "" to close
  104. Format slot 14 of player with iron sword named "&cSkill6" with lore "&7Skill6" to close
  105. Format slot 23 of player with {skill6.%player%} named "%{skill6n.%player%}%" with lore "" to close
  106. Format slot 6 of player with {skill7.%player%} named "%{skill7n.%player%}%" with lore "" to close
  107. Format slot 15 of player with iron sword named "&cSkill7" with lore "&7Skill7" to close
  108. Format slot 24 of player with {skill7.%player%} named "%{skill7n.%player%}%" with lore "" to close
  109. Format slot 7 of player with {skill8.%player%} named "%{skill8n.%player%}%" with lore "" to close
  110. Format slot 16 of player with iron sword named "&cSkill8" with lore "&7Skill8" to close
  111. Format slot 25 of player with {skill8.%player%} named "%{skill8n.%player%}%" with lore "" to close
  112. Format slot 8 of player with {skill9.%player%} named "%{skill9n.%player%}%" with lore "" to close
  113. Format slot 17 of player with iron sword named "&cSkill9" with lore "&7Skill9" to close
  114. Format slot 26 of player with {skill9.%player%} named "%{skill9n.%player%}%" with lore "" to close
  115. if arg 1 is "GUN":
  116. open chest with 3 rows named "&aGunSkill" to player
  117. Format slot 0 of player with {skillg1.%player%} named "%{skillg1n.%player%}%" with lore "" to close
  118. Format slot 9 of player with iron sword named "&cSkill1" with lore "&7Skill1" to close
  119. Format slot 18 of player with {skillg1.%player%} named "%{skillg1n.%player%}%" with lore "" to close
  120. Format slot 1 of player with {skillg2.%player%} named "%{skillg2n.%player%}%" with lore "" to close
  121. Format slot 10 of player with iron sword named "&cSkill2" with lore "&7Skill2" to close
  122. Format slot 19 of player with {skillg2.%player%} named "%{skillg2n.%player%}%" with lore "" to close
  123. Format slot 2 of player with {skillg3.%player%} named "%{skillg3n.%player%}%" with lore "" to close
  124. Format slot 11 of player with iron sword named "&cSkill3" with lore "&7Skill3" to close
  125. Format slot 20 of player with {skillg3.%player%} named "%{skillg3n.%player%}%" with lore "" to close
  126. Format slot 3 of player with {skillg4.%player%} named "%{skillg4n.%player%}%" with lore "" to close
  127. Format slot 12 of player with iron sword named "&cSkill4" with lore "&7Skill4" to close
  128. Format slot 21 of player with {skillg4.%player%} named "%{skillg4n.%player%}%" with lore "" to close
  129. Format slot 4 of player with {skillg5.%player%} named "%{skillg5n.%player%}%" with lore "" to close
  130. Format slot 13 of player with iron sword named "&cSkill5" with lore "&7Skill5" to close
  131. Format slot 22 of player with {skillg5.%player%} named "%{skillg5n.%player%}%" with lore "" to close
  132. Format slot 5 of player with {skillg6.%player%} named "%{skillg6n.%player%}%" with lore "" to close
  133. Format slot 14 of player with iron sword named "&cSkill6" with lore "&7Skill6" to close
  134. Format slot 23 of player with {skillg6.%player%} named "%{skillg6n.%player%}%" with lore "" to close
  135. Format slot 6 of player with {skillg7.%player%} named "%{skillg7n.%player%}%" with lore "" to close
  136. Format slot 15 of player with iron sword named "&cSkill7" with lore "&7Skill7" to close
  137. Format slot 24 of player with {skillg7.%player%} named "%{skillg7n.%player%}%" with lore "" to close
  138. Format slot 7 of player with {skillg8.%player%} named "%{skillg8n.%player%}%" with lore "" to close
  139. Format slot 16 of player with iron sword named "&cSkill8" with lore "&7Skill8" to close
  140. Format slot 25 of player with {skillg8.%player%} named "%{skillg8n.%player%}%" with lore "" to close
  141. Format slot 8 of player with {skillg9.%player%} named "%{skillg9n.%player%}%" with lore "" to close
  142. Format slot 17 of player with iron sword named "&cSkill9" with lore "&7Skill9" to close
  143. Format slot 26 of player with {skillg9.%player%} named "%{skillg9n.%player%}%" with lore "" to close
  144. if arg 1 is "sword":
  145. open chest with 3 rows named "&aSwordSkill" to player
  146. Format slot 0 of player with {skills1.%player%} named "%{skills1n.%player%}%" with lore "" to close
  147. Format slot 9 of player with iron sword named "&cSkill1" with lore "&7Skill1" to close
  148. Format slot 18 of player with {skills1.%player%} named "%{skills1n.%player%}%" with lore "" to close
  149. Format slot 1 of player with {skills2.%player%} named "%{skills2n.%player%}%" with lore "" to close
  150. Format slot 10 of player with iron sword named "&cSkill2" with lore "&7Skill2" to close
  151. Format slot 19 of player with {skills2.%player%} named "%{skills2n.%player%}%" with lore "" to close
  152. Format slot 2 of player with {skills3.%player%} named "%{skills3n.%player%}%" with lore "" to close
  153. Format slot 11 of player with iron sword named "&cSkill3" with lore "&7Skill3" to close
  154. Format slot 20 of player with {skills3.%player%} named "%{skills3n.%player%}%" with lore "" to close
  155. Format slot 3 of player with {skills4.%player%} named "%{skills4n.%player%}%" with lore "" to close
  156. Format slot 12 of player with iron sword named "&cSkill4" with lore "&7Skill4" to close
  157. Format slot 21 of player with {skills4.%player%} named "%{skills4n.%player%}%" with lore "" to close
  158. Format slot 4 of player with {skills5.%player%} named "%{skills5n.%player%}%" with lore "" to close
  159. Format slot 13 of player with iron sword named "&cSkill5" with lore "&7Skill5" to close
  160. Format slot 22 of player with {skills5.%player%} named "%{skills5n.%player%}%" with lore "" to close
  161. Format slot 5 of player with {skills6.%player%} named "%{skills6n.%player%}%" with lore "" to close
  162. Format slot 14 of player with iron sword named "&cSkill6" with lore "&7Skill6" to close
  163. Format slot 23 of player with {skills6.%player%} named "%{skills6n.%player%}%" with lore "" to close
  164. Format slot 6 of player with {skills7.%player%} named "%{skills7n.%player%}%" with lore "" to close
  165. Format slot 15 of player with iron sword named "&cSkill7" with lore "&7Skill7" to close
  166. Format slot 24 of player with {skills7.%player%} named "%{skills7n.%player%}%" with lore "" to close
  167. Format slot 7 of player with {skills8.%player%} named "%{skills8n.%player%}%" with lore "" to close
  168. Format slot 16 of player with iron sword named "&cSkill8" with lore "&7Skill8" to close
  169. Format slot 25 of player with {skills8.%player%} named "%{skills8n.%player%}%" with lore "" to close
  170. Format slot 8 of player with {skills9.%player%} named "%{skills9n.%player%}%" with lore "" to close
  171. Format slot 17 of player with iron sword named "&cSkill9" with lore "&7Skill9" to close
  172. Format slot 26 of player with {skills9.%player%} named "%{skills9n.%player%}%" with lore "" to close
  173.  
  174.  
  175. command /menuskillset [<text>] [<text>] [<text>]:
  176. trigger:
  177. if arg 1 is "meiji":
  178. if arg 2 is "true":
  179. if arg 3 is "1":
  180. set {skill1.%player%} to lime stained glass pane
  181. set {skill1n.%player%} to "&a解放済み"
  182. if arg 3 is "2":
  183. set {skill2.%player%} to lime stained glass pane
  184. set {skill2n.%player%} to "&a解放済み"
  185. if arg 3 is "3":
  186. set {skill3.%player%} to lime stained glass pane
  187. set {skill3n.%player%} to "&a解放済み"
  188. if arg 3 is "4":
  189. set {skill4.%player%} to lime stained glass pane
  190. set {skill4n.%player%} to "&a解放済み"
  191. if arg 3 is "5":
  192. set {skill5.%player%} to lime stained glass pane
  193. set {skill5n.%player%} to "&a解放済み"
  194. if arg 3 is "6":
  195. set {skill6.%player%} to lime stained glass pane
  196. set {skill6n.%player%} to "&a解放済み"
  197. if arg 3 is "7":
  198. set {skill7.%player%} to lime stained glass pane
  199. set {skill7n.%player%} to "&a解放済み"
  200. if arg 3 is "8":
  201. set {skill8.%player%} to lime stained glass pane
  202. set {skill8n.%player%} to "&a解放済み"
  203. if arg 3 is "9":
  204. set {skill9.%player%} to lime stained glass pane
  205. set {skill9n.%player%} to "&a解放済み"
  206. if arg 2 is "false":
  207. if arg 3 is "1":
  208. set {skill1.%player%} to red stained glass pane
  209. set {skill1n.%player%} to "&c未開放"
  210. if arg 3 is "2":
  211. set {skill2.%player%} to red stained glass pane
  212. set {skill2n.%player%} to "&c未開放"
  213. if arg 3 is "3":
  214. set {skill3.%player%} to red stained glass pane
  215. set {skill3n.%player%} to "&c未開放"
  216. if arg 3 is "4":
  217. set {skill4.%player%} to red stained glass pane
  218. set {skill4n.%player%} to "&c未開放"
  219. if arg 3 is "5":
  220. set {skill5.%player%} to red stained glass pane
  221. set {skill5n.%player%} to "&c未開放"
  222. if arg 3 is "6":
  223. set {skill6.%player%} to red stained glass pane
  224. set {skill6n.%player%} to "&c未開放"
  225. if arg 3 is "7":
  226. set {skill7.%player%} to red stained glass pane
  227. set {skill7n.%player%} to "&c未開放"
  228. if arg 3 is "8":
  229. set {skill8.%player%} to red stained glass pane
  230. set {skill8n.%player%} to "&c未開放"
  231. if arg 3 is "9":
  232. set {skill9.%player%} to red stained glass pane
  233. set {skill9n.%player%} to "&c未開放"
  234. if arg 1 is "GUN":
  235. if arg 2 is "true":
  236. if arg 3 is "1":
  237. set {skillg1.%player%} to lime stained glass pane
  238. set {skillg1n.%player%} to "&a解放済み"
  239. if arg 3 is "2":
  240. set {skillg2.%player%} to lime stained glass pane
  241. set {skillg2n.%player%} to "&a解放済み"
  242. if arg 3 is "3":
  243. set {skillg3.%player%} to lime stained glass pane
  244. set {skillg3n.%player%} to "&a解放済み"
  245. if arg 3 is "4":
  246. set {skillg4.%player%} to lime stained glass pane
  247. set {skillg4n.%player%} to "&a解放済み"
  248. if arg 3 is "5":
  249. set {skillg5.%player%} to lime stained glass pane
  250. set {skillg5n.%player%} to "&a解放済み"
  251. if arg 3 is "6":
  252. set {skillg6.%player%} to lime stained glass pane
  253. set {skillg6n.%player%} to "&a解放済み"
  254. if arg 3 is "7":
  255. set {skillg7.%player%} to lime stained glass pane
  256. set {skillg7n.%player%} to "&a解放済み"
  257. if arg 3 is "8":
  258. set {skillg8.%player%} to lime stained glass pane
  259. set {skillg8n.%player%} to "&a解放済み"
  260. if arg 3 is "9":
  261. set {skillg9.%player%} to lime stained glass pane
  262. set {skillg9n.%player%} to "&a解放済み"
  263. if arg 2 is "false":
  264. if arg 3 is "1":
  265. set {skillg1.%player%} to red stained glass pane
  266. set {skillg1n.%player%} to "&c未開放"
  267. if arg 3 is "2":
  268. set {skillg2.%player%} to red stained glass pane
  269. set {skillg2n.%player%} to "&c未開放"
  270. if arg 3 is "3":
  271. set {skillg3.%player%} to red stained glass pane
  272. set {skillg3n.%player%} to "&c未開放"
  273. if arg 3 is "4":
  274. set {skillg4.%player%} to red stained glass pane
  275. set {skillg4n.%player%} to "&c未開放"
  276. if arg 3 is "5":
  277. set {skillg5.%player%} to red stained glass pane
  278. set {skillg5n.%player%} to "&c未開放"
  279. if arg 3 is "6":
  280. set {skillg6.%player%} to red stained glass pane
  281. set {skillg6n.%player%} to "&c未開放"
  282. if arg 3 is "7":
  283. set {skillg7.%player%} to red stained glass pane
  284. set {skillg7n.%player%} to "&c未開放"
  285. if arg 3 is "8":
  286. set {skillg8.%player%} to red stained glass pane
  287. set {skillg8n.%player%} to "&c未開放"
  288. if arg 3 is "9":
  289. set {skillg9.%player%} to red stained glass pane
  290. set {skillg9n.%player%} to "&c未開放"
  291. if arg 1 is "sword":
  292. if arg 2 is "true":
  293. if arg 3 is "1":
  294. set {skills1.%player%} to lime stained glass pane
  295. set {skills1n.%player%} to "&a解放済み"
  296. if arg 3 is "2":
  297. set {skills2.%player%} to lime stained glass pane
  298. set {skills2n.%player%} to "&a解放済み"
  299. if arg 3 is "3":
  300. set {skills3.%player%} to lime stained glass pane
  301. set {skills3n.%player%} to "&a解放済み"
  302. if arg 3 is "4":
  303. set {skills4.%player%} to lime stained glass pane
  304. set {skills4n.%player%} to "&a解放済み"
  305. if arg 3 is "5":
  306. set {skills5.%player%} to lime stained glass pane
  307. set {skills5n.%player%} to "&a解放済み"
  308. if arg 3 is "6":
  309. set {skills6.%player%} to lime stained glass pane
  310. set {skills6n.%player%} to "&a解放済み"
  311. if arg 3 is "7":
  312. set {skills7.%player%} to lime stained glass pane
  313. set {skills7n.%player%} to "&a解放済み"
  314. if arg 3 is "8":
  315. set {skills8.%player%} to lime stained glass pane
  316. set {skills8n.%player%} to "&a解放済み"
  317. if arg 3 is "9":
  318. set {skills9.%player%} to lime stained glass pane
  319. set {skills9n.%player%} to "&a解放済み"
  320. if arg 2 is "false":
  321. if arg 3 is "1":
  322. set {skills1.%player%} to red stained glass pane
  323. set {skills1n.%player%} to "&c未開放"
  324. if arg 3 is "2":
  325. set {skills2.%player%} to red stained glass pane
  326. set {skills2n.%player%} to "&c未開放"
  327. if arg 3 is "3":
  328. set {skills3.%player%} to red stained glass pane
  329. set {skill3sn.%player%} to "&c未開放"
  330. if arg 3 is "4":
  331. set {skills4.%player%} to red stained glass pane
  332. set {skills4n.%player%} to "&c未開放"
  333. if arg 3 is "5":
  334. set {skills5.%player%} to red stained glass pane
  335. set {skills5n.%player%} to "&c未開放"
  336. if arg 3 is "6":
  337. set {skills6.%player%} to red stained glass pane
  338. set {skills6n.%player%} to "&c未開放"
  339. if arg 3 is "7":
  340. set {skills7.%player%} to red stained glass pane
  341. set {skills7n.%player%} to "&c未開放"
  342. if arg 3 is "8":
  343. set {skills8.%player%} to red stained glass pane
  344. set {skills8n.%player%} to "&c未開放"
  345. if arg 3 is "9":
  346. set {skills9.%player%} to red stained glass pane
  347. set {skills9n.%player%} to "&c未開放"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement