sora200507

Untitled

Jan 19th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. variables:
  2. {%player%.point} = 5
  3.  
  4. on death of player:
  5. if attacker is a player:
  6. message "<light green>+3point"
  7. add 3 to {%attacker%.point}
  8.  
  9. on rightclick with gold ingot:
  10. execute console command "/buymenu %player% menu"
  11.  
  12. command /buymenu <player> <text>:
  13. trigger:
  14. if arg 2 is "menu":
  15. open chest with 6 row named "<green>購入メニュー" to arg 1
  16. wait 1 tick
  17. format slot 1 of arg 1 with 260 named "&c食料購入メニュー" to close then run command "/buymenu %arg 1% food"
  18. format slot 2 of arg 1 with iron sword named "&c武器購入メニュー" to close then run command "/buymenu %arg 1% sword"
  19. format slot 3 of arg 1 with 307 named "&c防具購入メニュー" to close then run command "/buymenu %arg 1% armor"
  20. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  21. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  22. if arg 2 is "food":
  23. open chest with 6 row named "<green>食料購入メニュー" to arg 1
  24. wait 1 tick
  25. format slot 2 of arg 1 with 357 named "&aクッキー [1]" to run command "/pbuy 357 1 %arg 1%"
  26. format slot 11 of arg 1 with 357 named "&aクッキー×10 &e[9]" to run command "/pbuyten 357 9 %arg 1%"
  27. format slot 3 of arg 1 with 260 named "&aりんご [3]" to run command "/pbuy 260 3 %arg 1%"
  28. format slot 12 of arg 1 with 260 named "&aりんご×10 &e[27]" to run command "/pbuyten 260 27 %arg 1%"
  29. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  30. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  31. if arg 2 is "sword":
  32. open chest with 6 row named "<green>武器購入メニュー" to arg 1
  33. wait 1 tick
  34. format slot 13 of arg 1 with stone sword named "<green>石の剣 [4]" to run command "/pbuy 272 4 %arg 1%"
  35. format slot 22 of arg 1 with iron sword named "<green>鉄の剣 [30]" to run command "/pbuy 267 30 %arg 1%"
  36. format slot 31 of arg 1 with stone sword named "<green>ダイヤの剣 [400]" to run command "/pbuy 276 400 %arg 1%"
  37. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  38. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  39. if arg 2 is "armor":
  40. open chest with 6 row named "<green>防具購入メニュー" to arg 1
  41. wait 1 tick
  42. format slot 1 of arg 1 with 298 named "<green>革の帽子 [10]" to run command "/pbuy 298 10 %arg 1%"
  43. format slot 10 of arg 1 with 299 named "<green>革の上着 [30]" to run command "/pbuy 299 30 %arg 1%"
  44. format slot 19 of arg 1 with 300 named "<green>革のズボン [20]" to run command "/pbuy 300 20 %arg 1%"
  45. format slot 28 of arg 1 with 301 named "<green>革のブーツ [10]" to run command "/pbuy 301 10 %arg 1%"
  46. format slot 45 of arg 1 with {point.%arg%} of nether star named "<pink>残りポイント" to run ""
  47. format slot 53 of arg 1 with barrier named "<magenta>キャンセル" to close
  48. stop
  49.  
  50. command /pbuy <item> <number> <player>:
  51. trigger:
  52. if {%arg 3%.point} is arg 2 or {%arg 3%.point} > arg 2:
  53. remove arg 2 from {%arg 3%.point}
  54. give arg 1 to arg 3
  55. message "<yellow>購入成功!" to arg 3
  56. message "&a残りpoint &a&l%{%arg 3%.point}%&apoint" to arg 3
  57. else:
  58. message "<red>購入条件を満たしていません!" to arg 3
  59. message "&aあなたの所持してるpointは&a&l%{%arg 3%.point}%&apoint" to arg 3
  60.  
  61. command /pbuyten <item> <number> <player>:
  62. trigger:
  63. if {%arg 3%.point} is arg 2 or {%arg 3%.point} > arg 2:
  64. remove arg 2 from {%arg 3%.point}
  65. loop 10 times:
  66. give arg 1 to arg 3
  67. message "<yellow>購入成功!" to arg 3
  68. message "&a残りpoint &a&l%{%arg 3%.point}%&apoint" to arg 3
  69. else:
  70. message "<red>購入条件を満たしていません!" to arg 3
  71. message "&aあなたの所持してるpointは&a&l%{%arg 3%.point}%&apoint" to arg 3
  72.  
  73. command /pp <player> <number>:
  74. trigger:
  75. player has permission "pvp.admin"
  76. add arg 2 to {%arg 1%.point}
  77.  
  78. command /myp <player>:
  79. trigger:
  80. message "&a%arg 1%の所持してるpointは&a&l%{%arg 1%.point}%&apoint" to arg 1
Add Comment
Please, Sign In to add comment